From 5ec721cb29e405b1cb4ccbc3d7c174c223cc1ea1 Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Thu, 22 Sep 2005 14:59:00 +0000 Subject: [PATCH] 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 --- .../java/org/apache/maven/test/SurefirePlugin.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java b/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java index d2d9d37e3f..c38a2bfb13 100644 --- a/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java +++ b/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java @@ -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" );