How do I replace certain label (say @VERSION@ ) in a file with the current date using ANT
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Murali_Vemulapalli
Posted On:   Saturday, October 6, 2001 01:57 PM

I would like to replace all the tags, (say, @VERSION@) in a file with the current date.

I am using ANT 1.4

How can I do this? Any suggestions or sample code is greatly appreciated.

Re: How do I replace certain label (say @VERSION@ ) in a file with the current date using ANT

Posted By:   Erik_Hatcher  
Posted On:   Sunday, October 7, 2001 08:10 AM

To get the current date into an Ant property, use the task. Then use . Alternatively if you want to leave the original file intact, use the task with filtering="true".

Re: How do I replace certain label (say @VERSION@ ) in a file with the current date using ANT

Posted By:   Adam_Tybor  
Posted On:   Saturday, October 6, 2001 02:07 PM

you might try checking out the replace task, and using a property for the current date. I am not sure if there is an easier way or not, I am just a novice.


Adam

About | Sitemap | Contact