geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r383644 - /geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/InstallPluginDependenciesMojo.java
Date Mon, 06 Mar 2006 20:15:13 GMT
Author: sppatel
Date: Mon Mar  6 12:15:07 2006
New Revision: 383644

URL: http://svn.apache.org/viewcvs?rev=383644&view=rev
Log:
fix split regexp

Modified:
    geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/InstallPluginDependenciesMojo.java

Modified: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/InstallPluginDependenciesMojo.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/InstallPluginDependenciesMojo.java?rev=383644&r1=383643&r2=383644&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/InstallPluginDependenciesMojo.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/InstallPluginDependenciesMojo.java
Mon Mar  6 12:15:07 2006
@@ -179,8 +179,8 @@
 			version = getBundleVersion(bundle);
 		} else if (INSTALL_TYPE_SNAPSHOT_VERSIONED.equalsIgnoreCase(versionType)) {
 			version = getBundleVersion(bundle);
-			version = version.split("[0-9].[0-9].[0-9]")[0];
-			version = version + "-SNAPSHOT";
+			String mmrq[] = version.split("\\.");  //assumes plugin version is major.minor.revision.qualifier
+			version = mmrq[0] + "." + mmrq[1] + "." + mmrq[2] + "-SNAPSHOT";
 		}
 
 		if (!isBundleJar)



Mime
View raw message