mirror of https://github.com/apache/maven.git
Making sure there is always a filter present, to prevent malfunctioning
plugin configuration code disabling running any tests. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@232500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
88d49cb04f
commit
59128be85b
|
@ -99,12 +99,12 @@ public class SurefirePlugin
|
||||||
/**
|
/**
|
||||||
* @parameter
|
* @parameter
|
||||||
*/
|
*/
|
||||||
private List includes = new ArrayList( Collections.singletonList( "**/*Test.java" ) );
|
private List includes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @parameter
|
* @parameter
|
||||||
*/
|
*/
|
||||||
private List excludes = new ArrayList( Collections.singletonList( "**/Abstract*Test.java" ) );
|
private List excludes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The project whose project files to create.
|
* The project whose project files to create.
|
||||||
|
@ -179,15 +179,13 @@ public class SurefirePlugin
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// defaults here, qdox doesn't like the end javadoc value
|
// defaults here, qdox doesn't like the end javadoc value
|
||||||
if ( includes == null )
|
if ( includes == null || includes.size() == 0 )
|
||||||
{
|
{
|
||||||
includes = new ArrayList();
|
includes = new ArrayList( Collections.singletonList( "**/*Test.java" ) );
|
||||||
includes.add( "**/*Test.java" );
|
|
||||||
}
|
}
|
||||||
if ( excludes == null )
|
if ( excludes == null || excludes.size() == 0 )
|
||||||
{
|
{
|
||||||
excludes = new ArrayList();
|
excludes = new ArrayList( Collections.singletonList( "**/Abstract*Test.java" ) );
|
||||||
excludes.add( "**/Abstract*Test.java" );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
surefireBooter.addBattery( "org.codehaus.surefire.battery.DirectoryBattery",
|
surefireBooter.addBattery( "org.codehaus.surefire.battery.DirectoryBattery",
|
||||||
|
|
Loading…
Reference in New Issue