geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r429667 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GenericGeronimoServer.java
Date Tue, 08 Aug 2006 14:44:22 GMT
Author: sppatel
Date: Tue Aug  8 07:44:21 2006
New Revision: 429667

URL: http://svn.apache.org/viewvc?rev=429667&view=rev
Log:
fix regression, instance props not saving

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

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GenericGeronimoServer.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GenericGeronimoServer.java?rev=429667&r1=429666&r2=429667&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GenericGeronimoServer.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GenericGeronimoServer.java
Tue Aug  8 07:44:21 2006
@@ -17,6 +17,7 @@
 
 import java.io.IOException;
 import java.net.URL;
+import java.util.Map;
 import java.util.jar.Attributes;
 import java.util.jar.JarFile;
 import java.util.jar.Manifest;
@@ -100,23 +101,23 @@
 	}
 
 	public void setAdminID(String value) {
-		getServerInstanceProperties().put(PROPERTY_ADMIN_ID, value);
+		setInstanceProperty(PROPERTY_ADMIN_ID, value);
 	}
 
 	public void setAdminPassword(String value) {
-		getServerInstanceProperties().put(PROPERTY_ADMIN_PW, value);
+		setInstanceProperty(PROPERTY_ADMIN_PW, value);
 	}
 
 	public void setRMINamingPort(String value) {
-		getServerInstanceProperties().put(PROPERTY_RMI_PORT, value);
+		setInstanceProperty(PROPERTY_RMI_PORT, value);
 	}
 
 	public void setHTTPPort(String value) {
-		getServerInstanceProperties().put(PROPERTY_HTTP_PORT, value);
+		setInstanceProperty(PROPERTY_HTTP_PORT, value);
 	}
 
 	public void setConsoleLogLevel(String value) {
-		getServerInstanceProperties().put(PROPERTY_LOG_LEVEL, value);
+		setInstanceProperty(PROPERTY_LOG_LEVEL, value);
 	}
 
 	public String discoverDeploymentFactoryClassName(IPath jarPath) {
@@ -136,6 +137,12 @@
 	 */
 	public void setDefaults(IProgressMonitor monitor) {
 		setConsoleLogLevel(CONSOLE_INFO);
+	}
+	
+	private void setInstanceProperty(String name, String value) {
+		Map map = getServerInstanceProperties();
+		map.put(name, value);
+		setServerInstanceProperties(map);
 	}
 
 }



Mime
View raw message