Author: crossley
Date: Thu Aug  3 18:47:55 2006
New Revision: 428590

URL: http://svn.apache.org/viewvc?rev=428590&view=rev
Log:
Define the source before trying to report about it.
I have been experimenting with using the new "properties" system in Cocoon-2.2.
However, forrest compilation reported problems in loadXMLPropertiesFromURI()
because it was trying to report a debug message about a null source.
Why did this not surface before?

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/viewvc/forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java?rev=428590&r1=428589&r2=428590&view=diff
==============================================================================
--- forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java 
(original)
+++ forrest/trunk/main/java/org/apache/forrest/conf/ForrestConfModule.java Thu 
Aug  3 18:47:55 2006
@@ -255,10 +255,9 @@
         Source source = null;
         InputStream in = null;
         try {
-            if (debugging())
-                debug("Searching for forrest.properties.xml in" + 
source.getURI());
-
             source = m_resolver.resolveURI(propertiesStringURI);
+            if (debugging())
+                debug("Searching for forrest.properties.xml in " + 
source.getURI());
 
             DocumentBuilderFactory factory = 
DocumentBuilderFactory.newInstance();
             DocumentBuilder builder = factory.newDocumentBuilder();