ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JWM" <>
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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message