[MNG-562] Implement -Dmaven.test.skip=true

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@209755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2005-07-08 13:01:15 +00:00
parent d6f5f354e3
commit 267dcf5d02
1 changed files with 12 additions and 0 deletions

View File

@ -44,6 +44,11 @@ import java.util.StringTokenizer;
public class SurefirePlugin
extends AbstractMojo
{
/**
* Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
* @parameter expression=${maven.test.skip}"
*/
private boolean skip;
/**
* @parameter expression="${basedir}"
@ -124,6 +129,13 @@ public class SurefirePlugin
public void execute()
throws MojoExecutionException
{
if ( skip )
{
getLog().info( "Tests are skipped." );
return;
}
// ----------------------------------------------------------------------
// Setup the surefire booter
// ----------------------------------------------------------------------