geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r511538 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoRuntimeDelegate.java
Date Sun, 25 Feb 2007 16:17:25 GMT
Author: sppatel
Date: Sun Feb 25 08:17:21 2007
New Revision: 511538

URL: http://svn.apache.org/viewvc?view=rev&rev=511538
Log:
calculate installableruntime id's assuming naming convention

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoRuntimeDelegate.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoRuntimeDelegate.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoRuntimeDelegate.java?view=diff&rev=511538&r1=511537&r2=511538
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoRuntimeDelegate.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoRuntimeDelegate.java
Sun Feb 25 08:17:21 2007
@@ -185,30 +185,14 @@
 	 * @return
 	 */
 	public String getInstallableTomcatRuntimeId() {
-		String version = getRuntime().getRuntimeType().getVersion();
-		if ("1.0".equals(version)) {
-			return "org.apache.geronimo.runtime.tomcat.10";
-		} else if ("1.1".equals(version)) {
-			return "org.apache.geronimo.runtime.tomcat.11";
-		} else if ("1.2".equals(version)) {
-			return "org.apache.geronimo.runtime.tomcat.12";
-		}
-		return null;
+		return "org.apache.geronimo.runtime.tomcat." + getRuntime().getRuntimeType().getVersion().replaceAll("\\.",
"");
 	}
 
 	/**
 	 * @return
 	 */
 	public String getInstallableJettyRuntimeId() {
-		String version = getRuntime().getRuntimeType().getVersion();
-		if ("1.0".equals(version)) {
-			return "org.apache.geronimo.runtime.jetty.10";
-		} else if ("1.1".equals(version)) {
-			return "org.apache.geronimo.runtime.jetty.11";
-		} else if ("1.2".equals(version)) {
-			return "org.apache.geronimo.runtime.jetty.12";
-		}
-		return null;
+		return "org.apache.geronimo.runtime.jetty." + getRuntime().getRuntimeType().getVersion().replaceAll("\\.",
"");
 	}
 
 	/**



Mime
View raw message