harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r571023 - /harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml
Date Thu, 30 Aug 2007 03:03:02 GMT
Author: smishura
Date: Wed Aug 29 20:03:01 2007
New Revision: 571023

URL: http://svn.apache.org/viewvc?rev=571023&view=rev
Log:
Add 'copy-execution-log' macros

Modified:
    harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml

Modified: harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml?rev=571023&r1=571022&r2=571023&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml Wed Aug 29 20:03:01
2007
@@ -257,8 +257,8 @@
 
     <target name="publish-ehwa">
         <mkdir dir="${snapshot.results.dir}/ehwa" />
-        <copy file="${cc.execution.log.file}"
-              tofile="${snapshot.results.dir}/ehwa/index.html" />
+
+        <copy-execution-log />
         <touch-status-file />
         <archive-result/>
     </target>
@@ -323,8 +323,8 @@
 
     <target name="publish-hdk_by_hdk">
         <mkdir dir="${snapshot.results.dir}/hdk_by_hdk" />
-        <copy file="${cc.execution.log.file}"
-              tofile="${snapshot.results.dir}/hdk_by_hdk/index.html" />
+
+        <copy-execution-log />
         <touch-status-file />
         <archive-result />
     </target>
@@ -332,22 +332,7 @@
     <target name="publish-scimark">
         <mkdir dir="${snapshot.results.dir}/scimark" />
 
-        <concat destfile="${snapshot.results.dir}/scimark/index.html">
-            <header trimleading="yes" filtering="no">
-                &lt;html&gt;
-            </header>
-
-            <fileset file="${results.dir}/scimark/score.txt" />
-            <filterchain>
-                <tokenfilter>
-                    <replaceregex pattern="(.*)" replace="\1&lt;br/&gt;" />
-                </tokenfilter>
-            </filterchain>
-
-            <footer trimleading="yes" filtering="no">
-                &lt;/html&gt;
-            </footer>
-        </concat>
+        <copy-execution-log />
         <touch-status-file />
         <archive-result/>
     </target>
@@ -374,11 +359,8 @@
 
     <target name="publish-tomcat-scenario">
         <mkdir dir="${snapshot.results.dir}/tomcat-scenario" />
-        <echo file="${snapshot.results.dir}/tomcat-scenario/index.html">
-&lt;html&gt;
-NO OUTPUT
-&lt;/html&gt;
-        </echo>
+
+        <copy-execution-log />
         <touch-status-file />
         <archive-result/>
     </target>
@@ -407,6 +389,13 @@
         <sequential>
             <echo file="${snapshot.results.dir}/${projectname}/status.txt"
                   message="${build.status}" />
+        </sequential>
+    </macrodef>
+
+    <macrodef name="copy-execution-log">
+        <sequential>
+            <copy file="${cc.execution.log.file}"
+                  tofile="${snapshot.results.dir}/${projectname}/index.html" />
         </sequential>
     </macrodef>
 



Mime
View raw message