You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by jd...@apache.org on 2004/11/04 00:31:38 UTC
cvs commit: maven-components/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test SurefirePlugin.java
jdcasey 2004/11/03 15:31:37
Modified: maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test
SurefirePlugin.java
Log:
o Added null check to the loop which adds classpath elements to the surefire test.
Revision Changes Path
1.16 +5 -2 maven-components/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Index: SurefirePlugin.java
===================================================================
RCS file: /home/cvs/maven-components/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- SurefirePlugin.java 30 Sep 2004 15:46:38 -0000 1.15
+++ SurefirePlugin.java 3 Nov 2004 23:31:37 -0000 1.16
@@ -173,7 +173,10 @@
for ( int i = 0; i < classpathElements.length; i++ )
{
- surefireBooter.addClassPathUrl( classpathElements[i] );
+ if(classpathElements[i] != null)
+ {
+ surefireBooter.addClassPathUrl( classpathElements[i] );
+ }
}
surefireBooter.addReport( "org.codehaus.surefire.report.ConsoleReporter" );