ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Adams" <>
Subject Re: Using echo
Date Thu, 30 Aug 2001 14:12:38 GMT
See D:\Dev\tools\ant\docs\manual\CoreTasks\tstamp.html

You need to use include the <tstamp/> tag in an initialization target, a target that's
called before any other targets are run.  
See  D:\Dev\tools\ant\docs\manual\using.html for more info - do a search for tstamp 
to find the section I'm referring to.

<echo message="${DSTAMP}"/>
<echo message="${TSTAMP}"/>
<echo message="${TODAY}"/>

Running the above lines in an ant script produces:

[echo] 20010830
[echo] 1003
[echo] August 30 2001

>>> 08/30/01 09:47AM >>>

Is it possible to use echo to dump a timestamp to stdout?

Michael Laccetti
Developer, Eldan Software

View raw message