RE: Constructing Dates on the Fly?

2004-01-15 Thread Brett Porter
You might like to try war:install/deploy-snapshot which does this automatically with a UTC timestamp on the end as the version. To get a date yourself, are you sure there isn't a jelly taglib for that? I thought there was a fmt:/ or something, after all it is mimicing a lot of JSTL. You could

Re: Constructing Dates on the Fly?

2004-01-15 Thread Keith Irwin
Ah hah! I knew if I wrote to the list it would speed my discovery. This seems to work: goal name=productionWar ant:tstamp ant:format property=DSTAMP pattern=-MM-dd/ /ant:tstamp j:set var=${maven.war.final.name} value=yo-${DSTAMP}-yo.war/ /goal Easy! :) Keith On Thu, 2004-01-15

RE: Constructing Dates on the Fly?

2004-01-15 Thread Keith Irwin
On Thu, 2004-01-15 at 15:35, Brett Porter wrote: You might like to try war:install/deploy-snapshot which does this automatically with a UTC timestamp on the end as the version. To get a date yourself, are you sure there isn't a jelly taglib for that? I thought there was a fmt:/ or something,