maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r398628 - /maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
Date Mon, 01 May 2006 15:48:08 GMT
Author: brett
Date: Mon May  1 08:48:06 2006
New Revision: 398628

URL: http://svn.apache.org/viewcvs?rev=398628&view=rev
Log:
fix resolution problem with snapshot providers. Bump testNG requirement to 4.7 final.

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

Modified: maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java?rev=398628&r1=398627&r2=398628&view=diff
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
(original)
+++ maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
Mon May  1 08:48:06 2006
@@ -407,6 +407,7 @@
         SurefireBooter surefireBooter = new SurefireBooter();
 
         Artifact surefireArtifact = (Artifact) pluginArtifactMap.get( "org.apache.maven.surefire:surefire-booter"
);
+        surefireArtifact.isSnapshot(); // TODO: this is ridiculous, but it fixes getBaseVersion
to be -SNAPSHOT if needed
 
         if ( surefireArtifact == null )
         {
@@ -426,7 +427,7 @@
 
             if ( testNgArtifact != null )
             {
-                VersionRange range = VersionRange.createFromVersionSpec( "[4.7-SNAPSHOT,)"
);
+                VersionRange range = VersionRange.createFromVersionSpec( "[4.7,)" );
                 if ( !range.containsVersion( testNgArtifact.getSelectedVersion() ) )
                 {
                     throw new MojoFailureException(



Mime
View raw message