maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dfabul...@apache.org
Subject svn commit: r597192 - /maven/surefire/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
Date Wed, 21 Nov 2007 19:49:22 GMT
Author: dfabulich
Date: Wed Nov 21 11:49:20 2007
New Revision: 597192

URL: http://svn.apache.org/viewvc?rev=597192&view=rev
Log:
[SUREFIRE-378] Provide built-in support for junit:junit-dep artifact

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

Modified: maven/surefire/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java?rev=597192&r1=597191&r2=597192&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
(original)
+++ maven/surefire/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
Wed Nov 21 11:49:20 2007
@@ -541,6 +541,11 @@
             addArtifact( surefireBooter, surefireArtifact );
 
             junitArtifact = (Artifact) projectArtifactMap.get( junitArtifactName );
+            // SUREFIRE-378, junit can have an alternate artifact name
+            if ( junitArtifact == null && "junit:junit".equals( junitArtifactName
) )
+            {
+                junitArtifact = (Artifact) projectArtifactMap.get( "junit:junit-dep" );
+            }
 
             // TODO: this is pretty manual, but I'd rather not require the plugin > dependencies
section right now
             testNgArtifact = (Artifact) projectArtifactMap.get( testNGArtifactName );



Mime
View raw message