Author: nbubna
Date: Thu Dec 31 22:48:19 2009
New Revision: 894953
URL: http://svn.apache.org/viewvc?rev=894953&view=rev
Log:
VELOCITY-744 log vm additions at debug level
Modified:
velocity/engine/trunk/src/changes/changes.xml
velocity/engine/trunk/src/java/org/apache/velocity/runtime/VelocimacroFactory.java
Modified: velocity/engine/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/velocity/engine/trunk/src/changes/changes.xml?rev=894953&r1=894952&r2=894953&view=diff
==============================================================================
--- velocity/engine/trunk/src/changes/changes.xml (original)
+++ velocity/engine/trunk/src/changes/changes.xml Thu Dec 31 22:48:19 2009
@@ -26,6 +26,14 @@
<body>
<release version="1.7" date="In Subversion">
+ <action type="add" dev="nbubna" issue="VELOCITY-744">
+ Log Velocimacro additions at debug level, as in pre-1.6 versions.
+ </action>
+
+ <action type="add" dev="nbubna" issue="VELOCITY-742" due-to="Jarkko
Viinamäki">
+ Add removeDirective(name) and loadDirective(classname) methods to allow
runtime changes to the directive set.
+ </action>
+
<action type="fix" dev="nbubna" issue="VELOCITY-727" due-to="Jarkko
Viinamäki">
Throw an informative VelocityException when #define is given no parameter
(instead of an ArrayIndexOutOfBoundsException).
</action>
Modified:
velocity/engine/trunk/src/java/org/apache/velocity/runtime/VelocimacroFactory.java
URL:
http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/VelocimacroFactory.java?rev=894953&r1=894952&r2=894953&view=diff
==============================================================================
---
velocity/engine/trunk/src/java/org/apache/velocity/runtime/VelocimacroFactory.java
(original)
+++
velocity/engine/trunk/src/java/org/apache/velocity/runtime/VelocimacroFactory.java
Thu Dec 31 22:48:19 2009
@@ -462,7 +462,11 @@
{
vmManager.addVM(name, macroBody, argArray, sourceTemplate,
replaceAllowed);
}
- return(true);
+ if (log.isDebugEnabled())
+ {
+ log.debug("added VM "+name+": source="+sourceTemplate);
+ }
+ return true;
}