Author: rgardler
Date: Thu Dec 22 02:45:56 2005
New Revision: 358554

URL: http://svn.apache.org/viewcvs?rev=358554&view=rev
Log:
Allow user to override project properties in a local.forrest.properties.xml 
file (part of FOR-588)

Modified:
    forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java

Modified: forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java
URL: 
http://svn.apache.org/viewcvs/forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java?rev=358554&r1=358553&r2=358554&view=diff
==============================================================================
--- forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java 
(original)
+++ forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java Thu 
Dec 22 02:45:56 2005
@@ -133,6 +133,18 @@
 
                String forrestPropertiesStringURI;
 
+               // get the values from local.forrest.properties.xml
+               try {
+                       forrestPropertiesStringURI = projectHome
+                                       + SystemUtils.FILE_SEPARATOR + 
"local.forrest.properties.xml";
+
+                       filteringProperties = 
loadXMLPropertiesFromURI(filteringProperties,
+                                       forrestPropertiesStringURI);
+               } catch (FileNotFoundException e) {
+                       if (debugging())
+                               debug("Unable to find 
local.forrest.properties.xml, ignoring.");
+               }
+
                // get the values from forrest.properties.xml
                try {
                        forrestPropertiesStringURI = projectHome


Reply via email to