Adjusted sf-run-analysis-raptor so that when preprocessing the files, STDERR is appended, but STDOUT is not.
authorSimon Howkins <simonh@symbian.org>
Fri, 02 Oct 2009 17:41:04 +0100
changeset 577 424a5ad9bc7d
parent 576 7be9799d1a41
child 578 75fa4158340a
Adjusted sf-run-analysis-raptor so that when preprocessing the files, STDERR is appended, but STDOUT is not.
common/build.postbuild.xml
--- a/common/build.postbuild.xml	Fri Oct 02 16:19:09 2009 +0100
+++ b/common/build.postbuild.xml	Fri Oct 02 17:41:04 2009 +0100
@@ -296,6 +296,7 @@
 
     <target name="sf-run-analysis-raptor">            
       <echo message="Preprocessing *_compile.log files"/>
+      <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/>
       <for param="logfile">
         <path>
           <fileset dir="${build.log.dir}">
@@ -306,9 +307,10 @@
         <sequential>
           <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
           <echo message="Preprocessing @{logfile}..."/>
-          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" error="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true">
+          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" errorProperty="@{logfile}" >
             <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
           </exec>
+	  <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/>
         </sequential>
       </for>