ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Jackson" <foamd...@gmail.com>
Subject Re: Creating file containing current date in its filename
Date Tue, 15 Jul 2008 09:16:09 GMT
Hi,

You can use the Tstamp [1] task to store the date in a property, then
read this in the zip task:


<tstamp>
    <format property="tstamped-file-name" pattern="dd-MMM-yy" locale="en,UK"/>
  </tstamp>

<zip destfile="${tstamped-file-name}.zip"
     ...
  />


Thanks,
Kev
[1] http://ant.apache.org/manual/CoreTasks/tstamp.html

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


Mime
View raw message