ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EJ Ciramella <>
Subject Condition contains question
Date Wed, 22 Jun 2005 23:06:45 GMT
I'm trying the following:

   <loadfile property="grinder.results" srcFile="grinderpass.csv"/>
   <echo message="${grinder.results}"/>
   <condition property="hasfailed">
     <contains string="FAIL" substring="${grinder.results}"  
   <fail if="hasfailed" message="${grinder.results}"/>

But even when the file only contains "FAIL" this still goes through  

[loadfile] loading /home/source/engineering/main/grinderpass.csv into  
property grinder.results
[loadfile] file size = 5
Setting project property: grinder.results -> FAIL
[loadfile] loaded 5 characters
[loadfile] grinder.results := FAIL
      [echo] FAIL
Condition false; not setting hasfailed

When run in debug/verbose mode.  Is it looking at the string "$ 
{grinder.results}" or the value of this property?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message