forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r477750 - /forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
Date Tue, 21 Nov 2006 17:10:47 GMT
Author: rgardler
Date: Tue Nov 21 09:10:46 2006
New Revision: 477750

URL: http://svn.apache.org/viewvc?view=rev&rev=477750
Log:
We need logging...

Modified:
    forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java

Modified: forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java?view=diff&rev=477750&r1=477749&r2=477750
==============================================================================
--- forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
(original)
+++ forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/Controller.java
Tue Nov 21 09:10:46 2006
@@ -42,6 +42,7 @@
 import org.apache.forrest.core.plugin.BaseOutputPlugin;
 import org.apache.forrest.core.plugin.PassThroughInputPlugin;
 import org.apache.forrest.core.reader.IReader;
+import org.apache.log4j.Logger;
 import org.springframework.beans.factory.NoSuchBeanDefinitionException;
 import org.springframework.context.support.AbstractXmlApplicationContext;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
@@ -64,6 +65,8 @@
  * 
  */
 public class Controller implements IController {
+	
+	Logger log = Logger.getLogger(Controller.class);
 
 	private final String sourceURLExtension = ".forrestSource";
 
@@ -98,9 +101,11 @@
 			throws URISyntaxException, SAXException, IOException {
 		final File file = new File(contextPath);
 		if (file.exists()) {
+			log.info("Using Spring Context definition in " + contextPath);
 			this.context = new FileSystemXmlApplicationContext(file
 					.getAbsolutePath());
 		} else {
+			log.info("Using default spring context definition");
 			this.context = new ClassPathXmlApplicationContext(
 					"defaultForrestContext.xml");
 		}



Mime
View raw message