ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duffey, Kevin" <KDuf...@marketron.com>
Subject RE: date?
Date Tue, 13 May 2003 18:56:46 GMT
Very good! Thank you. Good point on the sorting by year/mon/day stuff. I will use that format.

-----Original Message-----
From: Sauyet, Scott (OTS-HAR) [mailto:Scott_Sauyet@output.net] 
Sent: Tuesday, May 13, 2003 11:52 AM
To: 'Ant Users List'
Subject: RE: date?

How about this:

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


    <target  name="archive" depends="init" description="Zips the entire
project directory.">
        <zip basedir="."
zipfile="/archive/file-${build.date}-${build.time}.zip"/>
    </target>

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

  -- Scott

-----Original Message-----
From: Duffey, Kevin [mailto:KDuffey@marketron.com]
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?

Thanks.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
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 exchangeadmins@marketron.com
***********************************************************


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

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003
 

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

Mime
View raw message