Help on writing an ant script that compare date of a file with now!!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, June 2, 2006 02:47 AM

I need a tool that continiously looks if a file is modified within the last 3 minutes. If not, I have to run some scripts.

Someone told me to write this in ANT, but I haven't got a clue how to start.
Can someone help me???

Re: Help on writing an ant script that compare date of a file with now!!

Posted By:   Anonymous  
Posted On:   Tuesday, June 6, 2006 02:03 AM


  1. create a fileset which checks the tstamps (,,)
  2. create a property from that ()
  3. use a conditional target ()

Maybe you have to tune a little bit around the and setting the property if not file is in the fileset. could help then.
About | Sitemap | Contact