<record> the warn messages in a file, and use <loadfile> with a
<filterchain>
to set a property if there is a warn message. (So the prop isnt set if all
is
ok). Then use the unless-attribute of the target.

Jan

> -----Urspr�ngliche Nachricht-----
> Von: Robert Soesemann [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 22. Dezember 2004 10:34
> An: Ant Users List
> Betreff: Conditional flow on error
> 
> In my Ant pipeline I do XSD validation of XML document. When 
> a document
> is not valid a log of type WARN is written. Is there an easy way to
> count log messages and call tasks depending if there was any error.
> 
> What I want is to only call somne targets when there was NO validation
> error.
> 
> Can you help. Great
> Robert
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to