mirror of https://github.com/apache/maven.git
o account for there being no tests
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
feeeacc13d
commit
2cf870015c
|
@ -46,7 +46,10 @@ runTests()
|
|||
CP=$1
|
||||
fi
|
||||
|
||||
if [ -f $5 ]
|
||||
then
|
||||
"${JAVACMD}" -classpath "$CP" TestRunnerBooter "$2" "$3" $4 $5 $6
|
||||
fi
|
||||
}
|
||||
|
||||
compile()
|
||||
|
|
|
@ -9,7 +9,6 @@ import javax.xml.parsers.SAXParserFactory;
|
|||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.InputStream;
|
||||
import java.io.Serializable;
|
||||
import java.io.Writer;
|
||||
import java.util.ArrayList;
|
||||
|
@ -19,6 +18,7 @@ import java.util.List;
|
|||
public class Bootstrapper
|
||||
{
|
||||
private ArtifactDownloader downloader;
|
||||
|
||||
private BootstrapPomParser bootstrapPomParser;
|
||||
|
||||
private List dependencies;
|
||||
|
@ -76,15 +76,19 @@ public class Bootstrapper
|
|||
|
||||
writeFile( "bootstrap.libs", libs.toString() );
|
||||
|
||||
int size;
|
||||
|
||||
unitTests = bootstrapPomParser.getUnitTests();
|
||||
|
||||
if ( unitTests != null )
|
||||
{
|
||||
StringBuffer tests = new StringBuffer();
|
||||
|
||||
tests.append( unitTests.getDirectory() );
|
||||
|
||||
tests.append( "@" );
|
||||
|
||||
int size = unitTests.getIncludes().size();
|
||||
size = unitTests.getIncludes().size();
|
||||
|
||||
// If there are no includes specified then we want it all.
|
||||
if ( size == 0 )
|
||||
|
@ -131,6 +135,7 @@ public class Bootstrapper
|
|||
tests.append( "\n" );
|
||||
|
||||
writeFile( "bootstrap.tests.excludes", tests.toString() );
|
||||
}
|
||||
|
||||
resources = bootstrapPomParser.getResources();
|
||||
|
||||
|
|
Loading…
Reference in New Issue