You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2010/12/21 17:15:16 UTC

svn commit: r1051540 - /tomcat/trunk/build.xml

Author: fhanik
Date: Tue Dec 21 16:15:16 2010
New Revision: 1051540

URL: http://svn.apache.org/viewvc?rev=1051540&view=rev
Log:
Allow to specify the test on the command line
ant -Dtest.name=**/TestMax** test
Without the parameter, the default is all tests as specified before


Modified:
    tomcat/trunk/build.xml

Modified: tomcat/trunk/build.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1051540&r1=1051539&r2=1051540&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Tue Dec 21 16:15:16 2010
@@ -141,6 +141,8 @@
   <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}"/>
@@ -1063,7 +1065,7 @@
                    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 -->



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org