You can use <tstamp/> (which is an ant tag). It set 2 properties DSTAMP and
TSTAMP with date and time (see ant documentation for more details)
Ex:
<tstamp/>
<property name="log.filename" value="log-${DSTAMP}.${TSTAMP}.log"/>
-----Message d'origine-----
De : James CE Johnson [mailto:[EMAIL PROTECTED]
Envoy� : mercredi 16 juillet 2003 16:27
� : [EMAIL PROTECTED]
Objet : Getting current date/time?
Hey all,
Is there any way for my maven.xml to fetch the current date/time so that I
can subsequently write (using <echo...) it to a file?
Thanks,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]