You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2012/12/03 19:27:25 UTC
svn commit: r1416624 -
/airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/ServerSettings.java
Author: lahiru
Date: Mon Dec 3 18:27:24 2012
New Revision: 1416624
URL: http://svn.apache.org/viewvc?rev=1416624&view=rev
Log:
new paramter to airavata-server.properties to handle embedded tomecat.
Modified:
airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/ServerSettings.java
Modified: airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/ServerSettings.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/ServerSettings.java?rev=1416624&r1=1416623&r2=1416624&view=diff
==============================================================================
--- airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/ServerSettings.java (original)
+++ airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/ServerSettings.java Mon Dec 3 18:27:24 2012
@@ -36,6 +36,8 @@ public class ServerSettings {
private static final String SYSTEM_USER="system.user";
private static final String SYSTEM_USER_PASSWORD="system.password";
private static final String SYSTEM_USER_GATEWAY="system.gateway";
+ private static final String TOMCAT_PORT = "tomcat.port";
+
static{
URL url = ServerSettings.class.getClassLoader()
@@ -88,4 +90,8 @@ public class ServerSettings {
public static String getSystemUserGateway() throws ServerSettingsException{
return getSetting(SYSTEM_USER_GATEWAY);
}
+
+ public static String getTomcatPort() {
+ return properties.getProperty(TOMCAT_PORT);
+ }
}