]> source.dussan.org Git - aspectj.git/commitdiff
consolidated build script failure reports in one target
authorwisberg <wisberg>
Fri, 17 Jun 2005 06:29:51 +0000 (06:29 +0000)
committerwisberg <wisberg>
Fri, 17 Jun 2005 06:29:51 +0000 (06:29 +0000)
build/release/build.xml

index 698ea0b8118a67f71a37b4eb3aad77826aa3abec..b0f403f36c4a75d98efb40f78f7faaa3c3f1ec66 100644 (file)
@@ -77,7 +77,7 @@
            <build-aspectj vm="${max.vm}" target="all"/>
            <build-aspectj vm="${max.vm}" target="test-each-module"/>
                <build-aspectj vm="${max.vm}" target="junitreport"/>
-           <antcall target="product-tests"/>
+               <antcall target="product-tests"/>
                <!-- TODO re-enable antcall target="harness-tests"/ --> 
                <build-aspectj vm="13" target="compile-runtime-11"/>
                        
                                        location="${aj.logs.dir}/build-@{target}"/>
                                <param name="ant.properties" 
                                    value="${do.ant.props} ${aspectj.build.props}"/>
-                               <param name="resultproperty"
-                                       value="@{target}.@{vm}.result"/>
                        </antcall>
-                       <echo message="1 compile-runtime-11.13.result: ${compile-runtime-11.13.result}"/>
-                       <report-if-failed property="@{target}.@{vm}.result"
-                               text="Build failed: build-@{target} (@{vm})"/>
-                       <echo message="2 compile-runtime-11.13.result: ${compile-runtime-11.13.result}"/>
                </sequential>
     </macrodef>
     
      file/target -f ${run.ant.file} ${ant.target}
          options ${ant.verbose} ${ant.properties}
           output ${ant.output.file}
-  resultproperty ${resultproperty}
      failonerror ${failonerror}
   aspectjrt.path ${aspectjrt.path}
 </echo>
 
                <java 
                        fork="true"
-                       resultproperty="${resultproperty}"
+                       resultproperty="do-run-ant.result"
                        failonerror="${failonerror}"
                        dir="${ant.dir}"
                        jvm="${build.java.command}"
                                file="${aj.install.dir}"/>
                        <arg line="-f ${run.ant.file} ${ant.target} ${ant.verbose} ${ant.properties}"/>
                </java>
-               <report-if-failed property="${resultproperty}"
+               <condition property="do-run-ant.failed" value="true">
+                       <not><equals arg1="0" arg2="${do-run-ant.result}"/></not>                       
+               </condition>
+               <echo message="dra: do-run-ant.failed=${do-run-ant.failed} do-run-ant.result=${do-run-ant.result}"/>
+               <report-if-failed property="do-run-ant.failed"
                        text="Build failed: ${ant.output.file}"/>
        </target>