Allow to specify the test on the command line
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Dec 2010 16:15:16 +0000 (16:15 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Dec 2010 16:15:16 +0000 (16:15 +0000)
ant -Dtest.name=**/TestMax** test
Without the parameter, the default is all tests as specified before

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1051540 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 6e3303f..05e1bae 100644 (file)
--- a/build.xml
+++ b/build.xml
   <property name="catalina-jmx-remote-src.jar" value="${tomcat.extras.sources}/catalina-jmx-remote-src.jar"/>
   <property name="tomcat-embed-log4j-src.jar" value="${tomcat.embed.sources}/tomcat-embed-logging-log4j-src.jar"/>
 
+  <!-- Tests To Run -->
+  <property name="test.name" value="**/Test*.java"/>
   <!-- Classpaths -->
   <path id="compile.classpath">
     <pathelement location="${jdt.jar}"/>
                    haltonfailure="${test.haltonfailure}">
           <fileset dir="test" >
             <!-- Include all by default -->
-            <include name="**/Test*.java" />
+            <include name="${test.name}" />
             <!-- Exclude helper classes -->
             <exclude name="**/Tester*.java" />
             <!-- Exclude the tests known to fail -->