harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r887327 - /harmony/enhanced/classlib/trunk/make/build-test.xml
Date Fri, 04 Dec 2009 19:23:47 GMT
Author: hindessm
Date: Fri Dec  4 19:23:46 2009
New Revision: 887327

URL: http://svn.apache.org/viewvc?rev=887327&view=rev
Log:
Add a gen.report option (default="true") that can be overriden to
save generation time in situations where the html report is not used.
That is, hudson builds can use "-Dgen.report=false".

Modified:
    harmony/enhanced/classlib/trunk/make/build-test.xml

Modified: harmony/enhanced/classlib/trunk/make/build-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/make/build-test.xml?rev=887327&r1=887326&r2=887327&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/make/build-test.xml (original)
+++ harmony/enhanced/classlib/trunk/make/build-test.xml Fri Dec  4 19:23:46 2009
@@ -27,6 +27,20 @@
     <property name="tests.output" location="build/test_report" />
     <import file="${basedir}/make/properties.xml" />
 
+    <property name="gen.report" value="true" />
+    <condition property="do.full.report" value="true">
+        <and>
+            <equals arg1="${gen.report}" arg2="true" />
+            <not><equals arg1="${short.report}" arg2="true" /></not>
+        </and>
+    </condition>
+    <condition property="do.short.report" value="true">
+        <and>
+            <equals arg1="${gen.report}" arg2="true" />
+            <equals arg1="${short.report}" arg2="true" />
+        </and>
+    </condition>
+
     <property name="tests.support.output" location="build/test_support" />
     <property name="support.dir" location="support"/>
     <property name="tests.depends.jars" location="deploy/jdk/jre/lib/boot" />
@@ -71,7 +85,7 @@
 
     <property name="report.dir" value="${tests.output}/html"/>
 
-    <target name="full-report" unless="short.report" >
+    <target name="full-report" if="do.full.report" >
         <delete dir="${report.dir}" />
         <junitreport todir="${tests.output}">
             <fileset dir="${tests.output}">
@@ -85,7 +99,7 @@
         <echo message="The test report is in ${display-location}"/>
     </target>
 
-    <target name="short-report" if="short.report" >
+    <target name="short-report" if="do.short.report">
         <delete dir="${report.dir}" />
         <junitreport todir="${tests.output}">
             <fileset dir="${tests.output}" includes="TEST*-*.xml">



Mime
View raw message