geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r329133 - /geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
Date Fri, 28 Oct 2005 07:00:03 GMT
Author: djencks
Date: Fri Oct 28 00:00:00 2005
New Revision: 329133

URL: http://svn.apache.org/viewcvs?rev=329133&view=rev
Log:
GERONIMO-1116 alternate config.xml location

Modified:
    geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java

Modified: geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java?rev=329133&r1=329132&r2=329133&view=diff
==============================================================================
--- geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
(original)
+++ geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/configuration/LocalAttributeManager.java
Fri Oct 28 00:00:00 2005
@@ -65,6 +65,9 @@
  */
 public class LocalAttributeManager implements ManageableAttributeStore, PersistentConfigurationList,
GBeanLifecycle {
     private final static Log log = LogFactory.getLog(LocalAttributeManager.class);
+
+    private final static String CONFIG_FILE_PROPERTY = "org.apache.geronimo.config.file";
+    
     private final static String BACKUP_EXTENSION = ".bak";
     private final static String TEMP_EXTENSION = ".working";
     private final static int SAVE_BUFFER_MS = 5000;
@@ -84,7 +87,7 @@
     private boolean kernelFullyStarted;
 
     public LocalAttributeManager(String configFile, boolean readOnly, ServerInfo serverInfo)
{
-        this.configFile = configFile;
+        this.configFile = System.getProperty(CONFIG_FILE_PROPERTY, configFile);
         this.readOnly = readOnly;
         this.serverInfo = serverInfo;
     }



Mime
View raw message