RE: Replace Question

2006-12-19 Thread Master, Tariq \(Abbeywood\)
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

AW: Replace Question

2006-12-18 Thread Jan.Materne
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

Re: Replace Question

2006-12-15 Thread Andrew Goktepe
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

Replace Question

2006-12-14 Thread Fenlason, Josh
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.