Two questions? My script is looping through a txt file that is the report my
database build tool created. <property
name="report.error" value="false" /> <foreach
item="Line" property="report.line" in="c:\program
files\DB Ghost\Reports\ValidateSQLFW.txt"> <do> <property
unless="${report.error}" name="report.error"
value="${string::contains(report.line, 'ERROR')}" /> <echo
message="${report.line}" if="${report.error}" /> <property
if="${report.error}" name="report.error" value="${not
string::contains(report.line, '/ERROR')}" /> </do> </foreach> This works ok… but, if while scanning the file, after
I find and echo the error messages, I want to build to fail. 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. (BTW: This is not a real XML file, if it were I would use
XMLPEEK.) Thanks in advance for the help, I know this list will
provide. Bob |
- Re: [Nant-users] How to cause the build to fail ? Bob Archer
- Re: [Nant-users] How to cause the build to fail ? Gary Feldman
- RE: [Nant-users] How to cause the build to fail ? Bob Archer