jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r611143 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
Date Fri, 11 Jan 2008 11:17:03 GMT
Author: jukka
Date: Fri Jan 11 03:16:57 2008
New Revision: 611143

URL: http://svn.apache.org/viewvc?rev=611143&view=rev
Log:
JCR-1304: Support system properties in ${...} vars in XML config files

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfig.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfig.java?rev=611143&r1=611142&r2=611143&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
Fri Jan 11 03:16:57 2008
@@ -132,7 +132,7 @@
      */
     public static RepositoryConfig create(InputSource xml, String home)
             throws ConfigurationException {
-        Properties variables = new Properties();
+        Properties variables = new Properties(System.getProperties());
         variables.setProperty(
                 RepositoryConfigurationParser.REPOSITORY_HOME_VARIABLE, home);
         RepositoryConfigurationParser parser =
@@ -408,7 +408,7 @@
             if (!homeDir.exists()) {
                 homeDir.mkdir();
             }
-            Properties variables = new Properties();
+            Properties variables = new Properties(parser.getVariables());
             variables.setProperty(
                     RepositoryConfigurationParser.WORKSPACE_HOME_VARIABLE,
                     homeDir.getPath());



Mime
View raw message