ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <erikhatc...@earthlink.net>
Subject Re: Find and replace task
Date Mon, 11 Jun 2001 05:37:16 GMT
Have you had a look at the built-in <replace> task?   That should do the
trick for you.

    Erik


----- Original Message -----
From: "Thomas Singer" <singer@dcs-systeme.de>
To: <ant-user@jakarta.apache.org>
Sent: Sunday, June 10, 2001 10:28 PM
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