maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r312919 - /maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Date Tue, 11 Oct 2005 17:24:19 GMT
Author: brett
Date: Tue Oct 11 10:24:13 2005
New Revision: 312919

URL: http://svn.apache.org/viewcvs?rev=312919&view=rev
Log:
put back surefire, junit dependencies. Needed to run tests.

Modified:
    maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java

Modified: maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java?rev=312919&r1=312918&r2=312919&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
(original)
+++ maven/components/trunk/maven-plugins/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Tue Oct 11 10:24:13 2005
@@ -268,14 +268,17 @@
             surefireBooter.addClassPathUrl( classpathElement );
         }
 
-//        for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
-//        {
-//            Artifact artifact = (Artifact) i.next();
-//
-//            getLog().debug( artifact.getFile().getAbsolutePath() );
-//
-//            surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
-//        }
+        for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
+        {
+            Artifact artifact = (Artifact) i.next();
+
+            if ( "junit".equals( artifact.getArtifactId() ) || "surefire".equals( artifact.getArtifactId()
) )
+            {
+                getLog().debug( artifact.getFile().getAbsolutePath() );
+
+                surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
+            }
+        }
 
         addReporters(surefireBooter);
         



Mime
View raw message