You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Martin Funk <ma...@hrs.de> on 2003/02/07 11:04:24 UTC
Replace without a token
Hello!
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.
example:
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"
Martin