Update of /cvsroot/xdoclet/xdoclet2/src/java/xdoclet/util/velocity
In directory sc8-pr-cvs1:/tmp/cvs-serv22426/src/java/xdoclet/util/velocity

Modified Files:
        VelocityConfigurer.java 
Log Message:
-Improved JavaBeans support (which is the metadata layer for XDoclet configuration)
-Made tests able to run in unforked mode

Index: VelocityConfigurer.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet2/src/java/xdoclet/util/velocity/VelocityConfigurer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** VelocityConfigurer.java     5 Mar 2003 22:27:11 -0000       1.2
--- VelocityConfigurer.java     12 Mar 2003 23:41:03 -0000      1.3
***************
*** 151,157 ****
          assert getProperties() != null : "getProperties() returns null";
  
!         // use our own log system that doesn't close the appenders upon gc() (the 
velocity one does)
          getProperties().setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
              DontCloseLog4JLogSystem.class.getName());
          _velocityEngine.init(_properties);
  
--- 151,159 ----
          assert getProperties() != null : "getProperties() returns null";
  
!         // Use our own log system that doesn't close the appenders upon gc() (the 
velocity one does)
          getProperties().setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
              DontCloseLog4JLogSystem.class.getName());
+         // We want ${velocityCount} to start on 0 instead of 1.
+         getProperties().setProperty(RuntimeConstants.COUNTER_INITIAL_VALUE, "0" );
          _velocityEngine.init(_properties);
  



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to