ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JWM" <techst...@malcolms.com>
Subject Generating rotating file name?
Date Thu, 02 Mar 2006 06:42:51 GMT
I need to generate a 4-cycle rotating file name based on the day (first day
= "file.1", second day = "file.2, .. fifth day = "file.1" (repeating).

Basically I need to generate a string that is "Julian date mod 4" to append
to my base filename.  <Tstamp> with the DateFormatter gives me a lot of
options.  But I don't see this one.

Is there a way to get a numeric value (i.e. Julian date from tstamp) and do
a 'mod' operation on it to get a new property?

Is there a better way to get a rotating string that increments each day,
then repeats after a specified max?

Thx



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


Mime
View raw message