ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sauyet, Scott (OTS-HAR)" <>
Subject RE: date?
Date Tue, 13 May 2003 18:51:30 GMT
How about this:

    <target name="init">
            <format pattern="MMddyyyy" property=""/>
		<format pattern="hhmmss" property="build.time"/>

    <target  name="archive" depends="init" description="Zips the entire
project directory.">
        <zip basedir="."

But if you want to be able to sort these easily, a yyyyMMdd format might be
more useful.

  -- Scott

-----Original Message-----
From: Duffey, Kevin []
Sent: Tuesday, May 13, 2003 2:44 PM
To: Ant Users List
Subject: date?

Is there any way to get the date? I would like to drop a completed build as
an archive in a /archive/file-<date>-<version> manner. The version I think I
can get from the PropertyFile task I run to maintain the build number. I was
hoping to apply a date in the form of 06062003 (mmddyyyy) and 173514
(hhmmss) format. Is that possible?


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003

The information contained in this e-mail message may be 
confidential and  protected from disclosure. If you are 
not the intended recipient, any dissemination, distribution
or copying is strictly prohibited. If you think that you 
have received this e-mail message in error,
please e-mail the sender at

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

View raw message