ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Funk" <>
Subject Replace without a token
Date Fri, 07 Feb 2003 10:04:24 GMT

Im looking for a "replacement" task that replaces a certain substring in 
a file with a given value, regardless of what is in the certain substring.

    private static final int level = 3;
should be replaced by:
    private static final int level = 4;

the information i could give are the begin delimiter and the end 
delimiter, something like
<myreplacement file="....." begindelimiter="private static final int 
level = " enddelimiter=";" value="4">

Is there a task out there that does that for me, or maybe there is a 
reason why there isn't one.

Thanks a lot & "Frohes Schaffen"


View raw message