ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shyam Koppikar" <vkopp...@tds.net>
Subject Re: Timestamped Files
Date Fri, 28 Sep 2001 03:28:48 GMT

----- Original Message -----
From: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, September 27, 2001 3:56 PM
Subject: Re: Timestamped Files


> Use the <tstamp> task.   It will provide you with Ant properties you can
use
> in your zipfile attribute.  I'm assuming you are wanting to name the file
> with a date in it (it wasn't clear what you meant by "have a timestamp in
> it").
>
>     Erik
>
>
> ----- Original Message -----
> From: "g d" <coolxml@hotmail.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Thursday, September 27, 2001 3:10 PM
> Subject: Timestamped Files
>
>
> > Hey:
> > I want to create timestamped files.
> >
> > In the code below, the zip file that gets created has to have a
timestamp
> in
> > it. How can I achieve that. Thanks in advance
> >
> > <?xml version="1.0"? encoding="iso-8859-1"?>
> > <project name="package" default="package" basedir=".">
> > <target name="init">
> > </tstamp>
> > <property name="dist.dir" value="./dist"/>
> > </target>
> >
> > <target name="package" depends="init">
> >   <zip zipfile="${dist.dir}/package.zip" basedir="."
> >        excludes="${dist.dir}/*,${dist.dir}/**"/>
> > </target>
> >
> > </project>
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
> >
> >
>


Mime
View raw message