ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
Subject Re: trying to grep in file for a certain string
Date Mon, 21 Nov 2005 17:49:58 GMT
On 11/21/05, Mikael Petterson (KI/EAB) <mikael.petterson@ericsson.com> wrote:
> Your script did not work since I got the following error:
>
> The <fail> type doesn't support the nested "contains" element.

Probably may need a nested <condition> that contains the <contains>.
Either that, or you're using an older version of Ant. --DD

> From: Ninju Bohra [mailto:ninju_bohra@yahoo.com]
> <loadfile property="test.results" srcFile="${reg.test.file}"/>
> <fail message="Regression tests failed!">
>   <contains string="${test.results}" substring="${msg}"/>
> </fail>
>
> Short and sweet,

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


Mime
View raw message