--- a/doc/api/helium/target-sf-run-analysis-raptor.html Tue Oct 06 17:31:14 2009 +0100
+++ b/doc/api/helium/target-sf-run-analysis-raptor.html Thu Oct 08 19:36:20 2009 +0100
@@ -82,7 +82,7 @@
<h2>Target sf-run-analysis-raptor</h2>
<p><b>Location</b></p>
-<p> <tt class="docutils literal"><a href="/D:/maintools/sf-config/common/build.postbuild.xml#L294">D:\maintools\sf-config\common\build.postbuild.xml:294:</a></tt>
+<p> <tt class="docutils literal"><a href="/d:/maintools/sf-config/common/build.postbuild.xml#L303">d:\maintools\sf-config\common\build.postbuild.xml:303:</a></tt>
</p>
<p><b>Conditional execution</b></p>
@@ -117,6 +117,9 @@
<tr>
<td>perl</td>
</tr>
+ <tr>
+ <td>perl</td>
+ </tr>
</table>
</p>
@@ -163,6 +166,7 @@
<pre>
<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}">
@@ -171,11 +175,12 @@
</fileset>
</path>
<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">
+ <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}" 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>
@@ -188,7 +193,6 @@
</path>
<sequential>
<echo message="Extracting whatlog info from @{whatlogfile}..."/>
- <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --releaseable --log=@{whatlogfile} --basedir=${build.log.dir} --append"/>
<exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
<arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
<arg value="--releaseable"/>
@@ -209,7 +213,6 @@
<sequential>
<echo message="Extracting error info from @{raptorlogfile}..."/>
<propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/>
- <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --error --warning --unreciped --recipe --config=${raptorconfig} --log=@{raptorlogfile} --basedir=${build.log.dir}/raptorbits --append"/>
<exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
<arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
<arg value="--error"/>
@@ -219,12 +222,11 @@
<arg value="--config=${raptorconfig}"/>
<arg value="--log=@{raptorlogfile}"/>
<arg value="--basedir=${build.log.dir}/raptorbits"/>
- <arg value="--append"/>
</exec>
</sequential>
</for>
- <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/summarize.pl --raptorbitsdir=${build.log.dir}/raptorbits --outputdir=${build.log.dir}"/>
+ <echo message="Summarizing Raptor data"/>
<exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
<arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/>
<arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/>
@@ -244,6 +246,15 @@
</exec>
</sequential>
</for>
+
+ <!-- Cook the raptor analysis further to produce something in the right format for the BRAG system -->
+ <exec executable="perl" output="${build.log.dir}/summary/Raptor_BRAG.xml" logError="yes">
+ <arg value="${sf.common.config.dir}/tools/brag/raptorToBRAG.pl"/>
+ <arg value="--raptorsummary"/>
+ <arg value="${build.log.dir}/raptorbits/summary.csv"/>
+ </exec>
+ <!-- And copy the XSL so the output can be transformed by a browser -->
+ <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
</target>
</pre>