ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob van Oostrum <rob.vanoost...@blastradius.com>
Subject RE: how to timestamp a copied file using ANT
Date Mon, 22 Mar 2004 21:43:00 GMT
you'll have to be more specific about what it is you want then ... 

<tstamp>
  <format property="timestamp" pattern="yyyMMdd_hhmm" />
</tstamp>

if you're talking about a collection of files you'll want to look at <mapper
type="regexp" /> and map work the ${timestamp} into the to-mapping somehow
...

> -----Original Message-----
> From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com]
> Sent: Monday, March 22, 2004 4:39 PM
> To: Ant Users List
> Subject: RE: how to timestamp a copied file using ANT
> 
> 
> I have looked at the <tstamp> but iam not been able to figure 
> out ....how to use in my case.
>  
> As iam doing a copy of all the files from a directory to 
> another directory ....am confused in adding a TIMESTAMP.
>  
> any ideas ?
>  
> 
> Rob van Oostrum <rob.vanoostrum@blastradius.com> wrote:
> look at and append the property value to the target filename ...
> 
> > -----Original Message-----
> > From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com]
> > Sent: Monday, March 22, 2004 4:08 PM
> > To: Ant Users List
> > Subject: how to timestamp a copied file using ANT
> > 
> > 
> > 
> > Hi,
> > 
> > Iam copying a file from one directory to another after my 
> > build is about to completed.
> > 
> > 
> > 
> > 
> > 
> > ----doing something here......
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > But apart from doing the copy, i also wanted to add a 
> > timestamp to the copied file .............
> > 
> > Does somebody know how to do this....Please advise.
> > 
> > 
> > 
> > Thanks, shailesh
> > 
> > 
> > Do you Yahoo!?
> > Yahoo! Finance Tax Center - File online. File on time.
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> 

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


Mime
View raw message