ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fyler, Cody A" <CodyFy...@financial.wellsfargo.com>
Subject RE: Creating drone files...
Date Tue, 13 Jan 2004 16:17:56 GMT
Would there be someway to grab the timestamp of the old file and use that
for the touch task?

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Tuesday, January 13, 2004 10:14 AM
To: Ant Users List
Subject: RE: Creating drone files...


Except he wants to preserve the timestamps of the
original files...


use lines="0" on a tailfilter (and, of course,
preservelastmodified on the copy).

-Matt


--- "Fyler, Cody A"
<CodyFyler@financial.wellsfargo.com> wrote:
> Couldn't you delete the file, then run the touch
> task to create a new empty
> version of the file?
> 
> -----Original Message-----
> From: Ciramella, EJ [mailto:ECiramella@emptoris.com]
> Sent: Tuesday, January 13, 2004 9:48 AM
> To: 'Ant Users List'
> Subject: RE: Creating drone files...
> 
> 
> What I mean by truncate is simply remove all
> content.  I was looking at
> that, but I couldn't figure out how many lines were
> in each file.
> 
> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Tuesday, January 13, 2004 2:35 AM
> To: user@ant.apache.org
> Subject: Re: Creating drone files...
> 
> 
> On Mon, 12 Jan 2004, EJ Ciramella
> <ECiramella@emptoris.com> wrote:
> 
> > I have a list of files that I would like to create
> duplicates of in
> > another directory.  I want to truncate them but
> keep their
> > timestamp.
> 
> I'm not sure what you mean by "truncate".  Take a
> look at <headfilter>
> or <tailfilter> in <copy> (Ant 1.6 required).
> 
> Stefan
> 
>
---------------------------------------------------------------------
> 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
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
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


Mime
View raw message