Applied maven.test.skip patch from Jim Crossley.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113159 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
werken 2003-03-20 14:45:18 +00:00
parent 529a9507f2
commit aa822e2e4b
3 changed files with 10 additions and 1 deletions

View File

@ -60,7 +60,7 @@
description="Test the application" description="Test the application"
prereqs="test:compile"> prereqs="test:compile">
<j:if test="${unitTestSourcesPresent == 'true'}"> <j:if test="${unitTestSourcesPresent == 'true' and context.getVariable('maven.test.skip') != 'true'}">
<taskdef <taskdef
name="junit" name="junit"

View File

@ -9,3 +9,4 @@ maven.junit.dir = ${basedir}
maven.junit.usefile = true maven.junit.usefile = true
maven.test.dest = ${maven.build.dir}/test-classes maven.test.dest = ${maven.build.dir}/test-classes
maven.test.reportsDirectory = ${maven.build.dir}/test-reports maven.test.reportsDirectory = ${maven.build.dir}/test-reports
maven.test.skip = false

View File

@ -47,6 +47,14 @@
<code>${maven.build.dir}/test-classes</code>. <code>${maven.build.dir}/test-classes</code>.
</td> </td>
</tr> </tr>
<tr>
<td>maven.test.skip</td>
<td>Yes</td>
<td>
Set this to 'true' to bypass unit tests entirely. Its use
is NOT RECOMMENDED, but quite convenient on occasion.
</td>
</tr>
<tr> <tr>
<td>maven.test.source</td> <td>maven.test.source</td>
<td>Yes</td> <td>Yes</td>