[MNG-510]. Fix classpath order.

Thanks to Kenney Westerhof

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@193164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2005-06-23 15:22:57 +00:00
parent a66df4b205
commit 70a13f3f56
2 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Maven Surefire Plugin</name>
<version>2.0-alpha-3</version>
<version>2.0-alpha-4-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>

View File

@ -193,16 +193,17 @@ public class SurefirePlugin
}
}
surefireBooter.addClassPathUrl( new File( classesDirectory ).getPath() );
surefireBooter.addClassPathUrl( new File( testClassesDirectory ).getPath() );
for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
{
Artifact artifact = (Artifact) i.next();
surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
}
surefireBooter.addClassPathUrl( new File( classesDirectory ).getPath() );
surefireBooter.addClassPathUrl( new File( testClassesDirectory ).getPath() );
for ( Iterator i = classpathElements.iterator(); i.hasNext(); )
{
surefireBooter.addClassPathUrl( (String) i.next() );