ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: <touch> takes no property
Date Wed, 27 Apr 2005 15:19:54 GMT
Hello Gilbert,

read the manual.

it says something about the format of the date understood by touch.

in ant 1.6.0 it says :

specifies the new modification time of the file in the format MM/DD/YYYY
HH:MM AM_or_PM or MM/DD/YYYY HH:MM:SS AM_or_PM.

ant 1.6.3 can accept other patterns which you specify yourself.
(the ant 1.6.3beta1 is available for download, the release itself should
come soon).
see http://ant.apache.org/manual/CoreTasks/touch.html

Cheers,

Antoine
> 
> Hi,
> 
> buildfile excerpt =
> 
> 
> <!-- check if datetimestamp equals now / antcontrib-->		
> 		
> <if>
> <equals arg1="${now}" arg2="${datetimestamp}" />
> 	<then>
> 	kick off my script
> 	</then>
> 	<else>
> 	<!-- touch the file with value of ${datetimestamp} putting the
> file
>                   at the right place in queue -->
> 		<touch file="myfile" datetime="${termin}"/>
> 	</else>
> </if>
> 
> 
> Problem = the touch task takes no property.
> 
> BUILD FAILED
> C:\CC_ANT~2\build.xml:72: Unparseable date: "27.04.05/09:34"

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message