geirm 01/03/20 09:15:11
Modified: src/java/org/apache/velocity/runtime/resource/loader
ClasspathResourceLoader.java
Log:
Added log messages for initialization, and removed the log message if it
couldn't find a resource - that is delegated to the ResourceManager now
Revision Changes Path
1.3 +5 -4
jakarta-velocity/src/java/org/apache/velocity/runtime/resource/loader/ClasspathResourceLoader.java
Index: ClasspathResourceLoader.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/resource/loader/ClasspathResourceLoader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ClasspathResourceLoader.java 2001/03/20 00:55:03 1.2
+++ ClasspathResourceLoader.java 2001/03/20 17:15:04 1.3
@@ -104,7 +104,7 @@
* work just fine.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
- * @version $Id: ClasspathResourceLoader.java,v 1.2 2001/03/20 00:55:03 jon Exp $
+ * @version $Id: ClasspathResourceLoader.java,v 1.3 2001/03/20 17:15:04 geirm Exp $
*/
public class ClasspathResourceLoader extends ResourceLoader
{
@@ -112,8 +112,10 @@
/**
* This is abstract in the base class, so we need it
*/
- public void init(Configuration configuration)
+ public void init(Configuration configuration)
{
+ Runtime.info("ClasspathResourceLoader : initialization starting.");
+ Runtime.info("ClasspathResourceLoader : initialization complete.");
}
/**
@@ -146,8 +148,7 @@
* log and convert to a general Velocity ResourceNotFoundException
*/
- Runtime.error("ClasspathResourceLoader Error : exception : " + fnfe );
- throw new ResourceNotFoundException( fnfe.getMessage() );
+ throw new ResourceNotFoundException( fnfe.getMessage() );
}
return result;