Gary...

Yea... I knew I would need to have another property... it was the fail
task that was the missing link! 

I'll try the < thing.

Thanks!

Bob


-----Original Message-----
From: Gary Feldman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 06, 2004 6:28 PM
To: Bob Archer; [EMAIL PROTECTED]
Subject: Re: [Nant-users] How to cause the build to fail ?

----- Original Message ----- 
From: "Bob Archer" <[EMAIL PROTECTED]>
Sent: Thursday, May 06, 2004 5:36 PM

...
> My script is looping through a txt file that is the report my database
> build tool created.
...
>This works ok... but, if while scanning the file, after I find and echo
>the error messages, I want to build to fail.

Use a second property that just flips to true on the first error, and
stays
there.  Then, when the loop is over, use that property as the if test
for a
<fail> task.

>Also, I want to actually search for <ERROR> and </ERROR> but "Not a
>valid attribute character" is the error I get. I tried escaping them
>with a back slash, that didn't work either.

Try using &lt; and &gt; .

Gary





-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to