harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r574522 - /harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml
Date Tue, 11 Sep 2007 09:13:36 GMT
Author: smishura
Date: Tue Sep 11 02:13:35 2007
New Revision: 574522

URL: http://svn.apache.org/viewvc?rev=574522&view=rev
Log:
Improve struts publisher - copy execution log in case if there no html junit reports

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=574522&r1=574521&r2=574522&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml Tue Sep 11 02:13:35
2007
@@ -339,7 +339,7 @@
         <touch-status-file />
         <archive-result />
     </target>
-    
+
     <target name="publish-reliability">
         <mkdir dir="${snapshot.results.dir}/reliability" />
         <junitreport todir="${results.dir}/reliability/last">
@@ -368,16 +368,34 @@
         <archive-result/>
     </target>
 
-    <target name="publish-struts_test">
-        <mkdir dir="${snapshot.results.dir}/struts_test" />
+    <!-- Struts testing scenario -->
+    <target name="publish-struts_test"
+            depends="-struts_test-copy-execution-log,-struts_test-copy-html-report">
+        <archive-result />
+    </target>
+    <target name="-struts_test-copy-html-report"
+            if="struts_test.has.html"
+            depends="-struts_test-init">
         <copy todir="${snapshot.results.dir}/struts_test">
             <fileset dir="${results.dir}/struts_test/test-results/html">
                 <include name="**" />
             </fileset>
         </copy>
-        <archive-result/>
+    </target>
+    <target name="-struts_test-copy-execution-log"
+            unless="struts_test.has.html"
+            depends="-struts_test-init">
+        <copy-execution-log />
+        <touch-status-file />
+    </target>
+    <target name="-struts_test-init">
+        <mkdir dir="${snapshot.results.dir}/struts_test" />
+        <available property="struts_test.has.html"
+                   file="${results.dir}/struts_test/test-results/html"
+                   type="dir" />
     </target>
 
+    <!-- Tomcat testing scenario -->
     <target name="publish-tomcat-scenario">
         <mkdir dir="${snapshot.results.dir}/tomcat-scenario" />
 



Mime
View raw message