RE: trying to grep in file for a certain string

2005-11-21 Thread Mikael Petterson (KI/EAB)
Yepp that worked! Thanks! Cheers, //mikael -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: den 21 november 2005 19:04 To: Ant Users List Subject: RE: trying to grep in file for a certain string Oops, wrap the with a --- "Mikael Petterson (KI/EAB)&quo

RE: trying to grep in file for a certain string

2005-11-21 Thread Ninju Bohra
mikael > > -Original Message- > From: Ninju Bohra [mailto:[EMAIL PROTECTED] > Sent: den 21 november 2005 18:23 > To: Ant Users List > Subject: Re: trying to grep in file for a certain string > > > Not quite sure what is wrong with your path... but if you are only s

Re: trying to grep in file for a certain string

2005-11-21 Thread Dominique Devienne
On 11/21/05, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: > Your script did not work since I got the following error: > > The type doesn't support the nested "contains" element. Probably may need a nested that contains the . Either that, or you're using an older version of Ant. --DD > F

RE: trying to grep in file for a certain string

2005-11-21 Thread Mikael Petterson (KI/EAB)
ying to grep in file for a certain string Not quite sure what is wrong with your path... but if you are only setting the property to contol the task you can nest a condition with the task and avoid the property. Building on the task to read the file you can do the following: Short an

Re: trying to grep in file for a certain string

2005-11-21 Thread Ninju Bohra
Not quite sure what is wrong with your path... but if you are only setting the property to contol the task you can nest a condition with the task and avoid the property. Building on the task to read the file you can do the following: Short and sweet, Ninju --- "Mikael Petterson (KI/EA

AW: trying to grep in file for a certain string

2005-11-21 Thread Jan.Materne
November 2005 17:46 >An: user@ant.apache.org >Betreff: trying to grep in file for a certain string > >Hi, > >I am trying to check if a file called TestSummary.txt does NOT >contains the string "Number of failures = 0". >If it does not contain "Number of fail

Re: trying to grep in file for a certain string

2005-11-21 Thread Dominique Devienne
> I am trying to check if a file called TestSummary.txt does NOT contains the > string "Number of failures = 0". > If it does not contain "Number of failures = 0" then I need to set a property > called test.status.failed. > When I try to test the ant script below I get: indeed doesn't support n

trying to grep in file for a certain string

2005-11-21 Thread Mikael Petterson (KI/EAB)
Hi, I am trying to check if a file called TestSummary.txt does NOT contains the string "Number of failures = 0". If it does not contain "Number of failures = 0" then I need to set a property called test.status.failed. When I try to test the ant script below I get: type doesn't support the nes