DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30728>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30728 Recorder doesnt recieve the proper taskFinished event Summary: Recorder doesnt recieve the proper taskFinished event Product: Ant Version: 1.7Alpha (nightly) Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If the output of an external tool contains the string "ERROR" the build should fail. So the output is catched via <recorder> and evaluated with <loadfile> and <contains>. But <loadfile> couldnt load because the <recorder> hasnt flushed ... Running with -debug shows that the taskFinished Event wasnt recieved. Tested with "Apache Ant version 1.7alpha compiled on July 15 2004" Discussion started at: http://marc.theaimsgroup.com/?l=ant- user&m=109283506013782&w=2 Example: <?xml version="1.0" encoding="ISO-8859-1"?> <project name="test" basedir="." default="myexec"> <target name="myexec"> <echo>Ant-Version: ${ant.version}</echo> <record name="log.txt" action="start"/> <echo message="ERROR"/> <record name="log.txt" action="stop"/> <echo file="log.txt" append="true"> </echo> <loadfile property="log.property" srcfile="log.txt"/> <condition property="log.error"> <contains string="${log.property}" substring="ERROR"/> </condition> <echo>File</echo> <echo>============================================</echo> <concat><fileset dir="." includes="log.txt"/></concat> <echo>============================================</echo> <echo>log.property = ${log.property}</echo> <echo>log.error = ${log.error}</echo> <fail if="log.error"/> </target> </project> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]