Allow multiple patterns in testmatchpattern and testnotmatchpattern

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@190649 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
carlos committed 2005-06-14 19:12:23 +00:00
1 parent 87561a5003
commit c81a5563ed
3 files changed
+18 -4

No files matched your search

+13 -2
View File
@@ -366,10 +366,21 @@
<batchtest todir="${maven.test.reportsDirectory}">
<fileset dir="${maven.test.searchdir}">
<include name="${testmatchpattern}"/>
<!-- includes -->
<u:tokenize var="includeItems" delim=",">${testmatchpattern}</u:tokenize>
<j:forEach var="include" items="${includeItems}">
<include name="${include}"/>
</j:forEach>
<!-- excludes -->
<j:if test="${context.getVariable('testnotmatchpattern') != null}">
<exclude name="${testnotmatchpattern}"/>
<u:tokenize var="excludeItems" delim=",">${testnotmatchpattern}</u:tokenize>
<j:forEach var="exclude" items="${excludeItems}">
<exclude name="${exclude}"/>
</j:forEach>
</j:if>
</fileset>
</batchtest>
+1
View File
@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.7-SNAPSHOT" date="in CVS">
<action dev="carlos" type="update">Allow multiple patterns in testmatchpattern and testnotmatchpattern</action>
<action dev="carlos" type="add">Added testnotmatchpattern that can be used in test:match</action>
<action dev="carlos" type="fix" issue="MPTEST-48">Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match</action>
<action dev="brett" type="update">Deprecate dependency handle</action>
+4 -2
View File
@@ -255,14 +255,16 @@ maven.test.search.classdir=true
<td>testmatchpattern</td>
<td>Yes (required in test:match)</td>
<td>
Ant pattern used in test:match goal to specify the tests that should run
List of ant patterns (spared by commas) used in test:match goal to specify the
tests that should run
</td>
</tr>
<tr>
<td>testnotmatchpattern</td>
<td>Yes</td>
<td>
Ant pattern used in test:match goal to specify the tests that shouldn't run
List of ant patterns (spared by commas) used in test:match goal to specify the
tests that shouldn't run
</td>
</tr>