ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject RE: Saving JUnit reports to a folder based on date
Date Tue, 25 Jan 2005 22:42:39 GMT
> From: Sam Adams []
> I'm new to ant and am basically using it to make JUnit reports. I was
> just wondering if there was a way to make Ant create a new folder for
> each test based on the date.
> For example they are saves in:
>     <property name="test.reports" value="reports/" />
> I was wondering if it was possible to save them in something like:
>     <property name="test.reports" value="reports/[ddmmyyyy-hhmm]/"/>
> or something like that. I've looked in the manual but can't seem to
> what I'm looking for except using something like:
> <property name="test.reports" value="reports/${TODAY}/"/>
> but this doesn't work. I'm guessing TODAY must be set as a property
> first or something. Thanks.

See the <tstamp> task in the Ant manual. --DD

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

View raw message