ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: Get the modification time of a file into a property.
Date Thu, 23 Mar 2006 19:55:48 GMT
> 1. If lastrun.txt exists, get the modification time into a property.
> 2. Extract the documents based on the property if it exists. If property
> does not exist, just get everything.
> 3. Touch the file lastrun.txt
> I don't know how to accomplish step 1. I could write a wrapper script to
> get the value and pass it into Ant, but I would prefer to do this within
> Ant.

In your shoes, I'd write a little <script>, and access directly All you need is a script engine, like
rhino.jar, in ANT_HOME/lib or in CLASSPATH. See at the dependencies
section of the manual for the <script> task. --DD

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message