forgot why they were wrapped in an array list...

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@233443 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-08-19 07:11:44 +00:00
parent cc276e2e2a
commit 4e79a1aa80
1 changed files with 3 additions and 2 deletions

View File

@ -180,13 +180,14 @@ public class SurefirePlugin
else
{
// defaults here, qdox doesn't like the end javadoc value
// Have to wrap in an ArrayList as surefire expects an ArrayList instead of a List for some reason
if ( includes == null || includes.size() == 0 )
{
includes = Arrays.asList( new String[] { "**/*Test.java", "**/*TestCase.java" } );
includes = new ArrayList( Arrays.asList( new String[] { "**/*Test.java", "**/*TestCase.java" } ) );
}
if ( excludes == null || excludes.size() == 0 )
{
excludes = Arrays.asList( new String[] { "**/Abstract*Test.java", "**/Abstract*TestCase.java" } );
excludes = new ArrayList( Arrays.asList( new String[] { "**/Abstract*Test.java", "**/Abstract*TestCase.java" } ) );
}
surefireBooter.addBattery( "org.codehaus.surefire.battery.DirectoryBattery",