The <copy> task with filtering="yes" and a <filter> defined would work,
just copy a file_containing_BUILD_DATE.raw file to
file_containing_BUILD_DATE.java
in your init target.

-Peter

> -----Original Message-----
> From: Thomas Singer [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 10, 2001 10:29 PM
> To: [EMAIL PROTECTED]
> Subject: Find and replace task
> 
> 
> Hello,
> 
> does anybody knows of an easy-to-use find-and-replace task, 
> that I could use
> to solve following problem:
> 
> Before compiling I want to modify Java-Source-Code, so the 
> current date
> (build date) is in there:
> 
> ...
>     private final String BUILD_DATE = "2001-06-11";
> ...
> 
> 
> I know, that I can do that using properties, but I want to do 
> it that way,
> because it's harder to hack around (it's used for time-limited stuff).
> 
> Regards
> Thomas Singer
> 

Reply via email to