add a flag skipTests to be able to skip test execution and not tests compilation

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@989573 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2010-08-26 09:46:46 +00:00
parent e75d39f41a
commit 9c801ca1df
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ Do you want to continue?</input>
<property name="maven.repo.local" value="${user.home}/.m2/repository" /> <property name="maven.repo.local" value="${user.home}/.m2/repository" />
<property name="maven.debug" value="-e" /> <property name="maven.debug" value="-e" />
<property name="maven.test.skip" value="false" /> <property name="maven.test.skip" value="false" />
<property name="skipTests" value="false" />
<property name="surefire.useFile" value="true" /> <property name="surefire.useFile" value="true" />
<property name="maven.test.redirectTestOutputToFile" value="${surefire.useFile}" /> <property name="maven.test.redirectTestOutputToFile" value="${surefire.useFile}" />
<echo>maven.home = ${maven.home}</echo> <echo>maven.home = ${maven.home}</echo>
@ -233,6 +234,7 @@ Do you want to continue?</input>
<arg value="clean" /> <arg value="clean" />
<arg value="install" /> <arg value="install" />
<arg value="-Dmaven.test.skip=${maven.test.skip}" /> <arg value="-Dmaven.test.skip=${maven.test.skip}" />
<arg value="-DskipTests=${skipTests}" />
<arg value="-Dmaven.repo.local=${maven.repo.local}" /> <arg value="-Dmaven.repo.local=${maven.repo.local}" />
<arg value="-Dsurefire.useFile=${surefire.useFile}" /> <arg value="-Dsurefire.useFile=${surefire.useFile}" />
<arg value="-Dmaven.test.redirectTestOutputToFile=${maven.test.redirectTestOutputToFile}" /> <arg value="-Dmaven.test.redirectTestOutputToFile=${maven.test.redirectTestOutputToFile}" />