You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2007/08/20 04:58:31 UTC

svn commit: r567529 - /harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml

Author: smishura
Date: Sun Aug 19 19:58:31 2007
New Revision: 567529

URL: http://svn.apache.org/viewvc?rev=567529&view=rev
Log:
Create status file for: Axis, Dacapo, EHWA, Ant, Scimark, Tomcat scenarios

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=567529&r1=567528&r2=567529&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml Sun Aug 19 19:58:31 2007
@@ -151,6 +151,10 @@
     <!-- custom bootstrapper implementation -->
     <target name="bootstrap" depends="download.snapshot"/>
 
+    <condition property="build.status" value="passed" else="failed">
+        <!-- the property is passed by CC -->
+        <equals arg1="${thisbuildsuccessful}" arg2="true" />
+    </condition>
 
     <!--                     -->
     <!-- snapshot publishers -->
@@ -174,6 +178,7 @@
                 &lt;/html&gt;
             </footer>
         </concat>
+        <touch-status-file suite-dir="${snapshot.results.dir}/axis2_app" />
         <archive-result/>
     </target>
 
@@ -237,6 +242,7 @@
                 &lt;/html&gt;
             </footer>
         </concat>
+        <touch-status-file suite-dir="${snapshot.results.dir}/dacapo" />
         <archive-result/>
     </target>
 
@@ -258,6 +264,7 @@
                 &lt;/html&gt;
             </footer>
         </concat>
+        <touch-status-file suite-dir="${snapshot.results.dir}/ehwa" />
         <archive-result/>
     </target>
 
@@ -275,6 +282,7 @@
         <mkdir dir="${snapshot.results.dir}/hdk_by_hdk" />
         <copy file="${cc.execution.log.file}"
               tofile="${snapshot.results.dir}/hdk_by_hdk/index.html" />
+        <touch-status-file suite-dir="${snapshot.results.dir}/hdk_by_hdk" />
         <archive-result />
     </target>
 
@@ -297,6 +305,7 @@
                 &lt;/html&gt;
             </footer>
         </concat>
+        <touch-status-file suite-dir="${snapshot.results.dir}/scimark" />
         <archive-result/>
     </target>
 
@@ -327,6 +336,7 @@
 NO OUTPUT
 &lt;/html&gt;
         </echo>
+        <touch-status-file suite-dir="${snapshot.results.dir}/tomcat-scenario" />
         <archive-result/>
     </target>
 
@@ -337,6 +347,13 @@
             <zip destfile="${cc.log.dir}/snapshot-r${snapshot.svn.revision}.status.zip"
                  basedir="${snapshot.results.dir}"
                  update="true"/>
+        </sequential>
+    </macrodef>
+
+    <macrodef name="touch-status-file">
+        <attribute name="suite-dir" />
+        <sequential>
+            <echo file="@{suite-dir}/status.txt" message="${build.status}" />
         </sequential>
     </macrodef>