Fix surefire classpath creation. plugin artifacts must be in classpath after project artifact.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2005-09-22 14:59:00 +00:00
parent 40dffa09db
commit 5ec721cb29
1 changed files with 5 additions and 5 deletions

View File

@ -226,17 +226,17 @@ public class SurefirePlugin
surefireBooter.addClassPathUrl( classesDirectory.getPath() );
for ( Iterator i = classpathElements.iterator(); i.hasNext(); )
{
surefireBooter.addClassPathUrl( (String) i.next() );
}
for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
{
Artifact artifact = (Artifact) i.next();
surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
}
for ( Iterator i = classpathElements.iterator(); i.hasNext(); )
{
surefireBooter.addClassPathUrl( (String) i.next() );
}
surefireBooter.addReport( "org.codehaus.surefire.report.ConsoleReporter" );
surefireBooter.addReport( "org.codehaus.surefire.report.FileReporter" );