Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match
Added testnotmatchpattern that can be used in test:match git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@190026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
85c8560e3c
commit
b858a1ad69
4 files changed
+25
-7
No files matched your search
+12
-4
@@ -307,11 +307,16 @@
|
||||
|
||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||
|
||||
<j:if test="${context.getVariable('testmatch') != null}">
|
||||
<echo>[deprecated] testmatch property is deprecated, please use testmatchpattern instead</echo>
|
||||
<j:set var="testmatchpattern" value="**/${testmatch}.*"/>
|
||||
</j:if>
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${empty(testmatch)}">
|
||||
<j:when test="${empty(testmatchpattern)}">
|
||||
<echo>
|
||||
You must define the test case to run via -Dtestmatch=pattern
|
||||
Example: maven -Dtestmatch=*Foo* test:match
|
||||
You must define the test case to run via -Dtestmatchpattern=pattern
|
||||
Example: maven -Dtestmatchpattern=*Foo* test:match
|
||||
</echo>
|
||||
</j:when>
|
||||
|
||||
@@ -361,7 +366,10 @@
|
||||
|
||||
<batchtest todir="${maven.test.reportsDirectory}">
|
||||
<fileset dir="${maven.test.searchdir}">
|
||||
<include name="**/${testmatch}.*"/>
|
||||
<include name="${testmatchpattern}"/>
|
||||
<j:if test="${context.getVariable('testnotmatchpattern') != null}">
|
||||
<exclude name="${testnotmatchpattern}"/>
|
||||
</j:if>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
|
||||
|
||||
Reference in new issue
Block a user