commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r905681 - /commons/proper/lang/branches/LANG_2_X/build.xml
Date Tue, 02 Feb 2010 15:57:53 GMT
Author: sebb
Date: Tue Feb  2 15:57:47 2010
New Revision: 905681

URL: http://svn.apache.org/viewvc?rev=905681&view=rev
Log:
-Dtest.entry allows running a single test

Modified:
    commons/proper/lang/branches/LANG_2_X/build.xml

Modified: commons/proper/lang/branches/LANG_2_X/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/build.xml?rev=905681&r1=905680&r2=905681&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/build.xml (original)
+++ commons/proper/lang/branches/LANG_2_X/build.xml Tue Feb  2 15:57:47 2010
@@ -82,8 +82,10 @@
         <mkdir dir="${build.home}/test-reports"/>
         <junit printsummary="true" showoutput="true" fork="yes" haltonfailure="${test.failonerror}">
             <classpath refid="test.classpath"/>
-            <formatter type="plain"/>
-            <batchtest fork="yes" todir="${build.home}/test-reports">
+            <formatter type="plain" usefile="true" />
+            <!-- If test.entry is defined, run a single test, otherwise run all valid
tests -->
+            <test name="${test.entry}" todir="${build.home}/test-reports" if="test.entry"/>
+            <batchtest fork="yes" todir="${build.home}/test-reports" unless="test.entry">
                 <fileset dir="${test.home}">
                     <include name="**/*Test.java"/>
                     <exclude name="**/Abstract*Test.java"/>



Mime
View raw message