ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Vogel <pvo...@arsin.com>
Subject RE: Find and replace task
Date Mon, 11 Jun 2001 05:36:16 GMT
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:singer@dcs-systeme.de]
> Sent: Sunday, June 10, 2001 10:29 PM
> To: ant-user@jakarta.apache.org
> 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
> 

Mime
View raw message