Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core
In directory sc8-pr-cvs1:/tmp/cvs-serv6530
Modified Files:
VariableProcessor.java
Log Message:
No more velocity.log - now uses the same log4j category as babeldoc. Additionally the global velocity macros are now found.
Index: VariableProcessor.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/VariableProcessor.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** VariableProcessor.java 27 Jun 2003 02:19:57 -0000 1.7
--- VariableProcessor.java 7 Aug 2003 21:12:25 -0000 1.8
***************
*** 67,70 ****
--- 67,71 ----
import org.apache.velocity.VelocityContext;
+ import org.apache.velocity.runtime.RuntimeConstants;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.context.Context;
***************
*** 100,103 ****
--- 101,109 ----
Velocity.setProperty("classpath.resource.loader.class",
"org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
+ Velocity.setProperty( RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
+ "org.apache.velocity.runtime.log.SimpleLog4JLogSystem" );
+ Velocity.setProperty("runtime.log.logsystem.log4j.category", "babeldoc");
+ Velocity.setProperty("velocimacro.library",
+ "core/VM_global_library.vm");
Velocity.init();
|