ginal Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 18 December 2006 13:35
To: user@ant.apache.org
Subject: AW: Replace Question
Jan
>-Ursprüngliche Nachricht-
>Von: Andrew Goktepe [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 15. Dezember 2006 16:09
>A
Jan
>-Ursprüngliche Nachricht-
>Von: Andrew Goktepe [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 15. Dezember 2006 16:09
>An: Ant Users List
>Betreff: Re: Replace Question
>
>If you are running Ant 1.6.3 or later, you ca
If you are running Ant 1.6.3 or later, you can use the
condition:
The skip.replacement property will be set if the file already contains the
replacement text. You can then run conditionally on this property.
You could also use ant-contrib with to combine t
I want to add a line to a file, but only if the file doesn't already
contain that line. I can add the line fine, but I can't figure out how
to do it conditionally. Is this possible? Here's what I have so far.
Any suggestions would be greatly appreciated. Thanks in advance.