ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RADEMAKERS Tanguy <tanguy.rademak...@swift.com>
Subject Re: how to timestamp a copied file using ANT
Date Tue, 23 Mar 2004 15:06:49 GMT
Shailesh,

Do you want to add a timestamp to the file names, or do you want to 
change the last modified property of the files?

/t

Shailesh Sharma wrote:

>Honestly - I have no clue what you are suggesting.
> 
>All i want is this:
> 
>I have 2 files (or more) in a folder called say "from" and when iam copying these 2 file
into a folder called say "to" ....i wanted to add timestamp to the copied files.
> 
>any simple and easy way in ANT ???
> 
>
>
>Rob van Oostrum <rob.vanoostrum@blastradius.com> wrote:
>you'll have to be more specific about what it is you want then ... 
>
>
>
>
>
>if you're talking about a collection of files you'll want to look at 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 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 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
>
>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