ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alec Fernandez" <Alec.Fernan...@sas.com>
Subject RE: Fail if file does not contains a string?
Date Thu, 08 Nov 2007 19:00:34 GMT
You could use <loadfile> to read the file into a property then use the
contains <condition> in the condition task to check for the string.

If the file is big then you probably want to use a filterchain to subset
it.

-Alec

-----Original Message-----
From: Rob Wilson [mailto:netplay@gmail.com] 
Sent: Thursday, November 08, 2007 1:51 PM
To: Ant Users List
Subject: Fail if file does not contains a string?

Is it possible to fail ant if a file does not contain a string?

Cheers,
Rob.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message