Changes Report

Release History

2.0In Subversion

Release 2.0 - In Subversion

addMethod arguments can now be expressions Fixes VELOCITY-706.cbrisson
addParser generation from the .jjt file is now handled by Maven Fixes VELOCITY-819. Thanks to Jarkko Viinamäki.cbrisson
addAdd a public fields Uberspector Fixes VELOCITY-12. Thanks to Candid Dauth.cbrisson
addSupport query modification in DataSourceResourceLoader Fixes VELOCITY-814. Thanks to Darren Cruse.nbubna
addAdd clear() to ResourceCache Fixes VELOCITY-813. Thanks to Oswaldo Hernandez.nbubna
fixMake #if() return false for empty strings and empty collections Fixes VELOCITY-692.nbubna
addAdd SLF4J logging optionapetrelli
addShading of Commons Lang and Commons Collections Fixes VELOCITY-789.apetrelli
addUse Maven 2 as build systemapetrelli
fixFixed quotes escaping so that doubling single quotes only works when enclosing quotes are single quotes (and same behaviour for double quotes) Fixes VELOCITY-785. Thanks to Jarkko Viinamäki.cbrisson
fixRemoved all remaining "throws Exception" clauses and the now useless ExceptionUtils class. Fixes VELOCITY-751.nbubna
addRemove directive.if.tostring.nullcheck crutch with intent to replace testing of toString() null status with support for toBoolean() (or similar) method on objects being "#if'd". Fixes VELOCITY-731.nbubna
addRemove directive.set.null.allowed and instead always allow null to be #set to references. This also means removing all NullSetEventHandler code, since it was only in play when nulls were not allowed to be #set.nbubna
addRemove features deprecated in 1.7 ($velocityCount, $velocityHasNext, velocimacro.context.localscope, directive.evaluate.context.class and all internal supporting code (ProxyVMContext, EvaluateContext, etc). Fixes VELOCITY-704.nbubna
addAdd ability to specify default values for macro parameters, e.g.; #macro(foo bar=1) Fixes VELOCITY-697.byron
addAdd ability to place line comments next to macro parameter definitions. Fixes VELOCITY-695.byron
addBlock directives no longer require parenthesis so #@foo #end is now allowed. Also, brackets now work with Block Macros so #{@foo}bar#end works. Fixes VELOCITY-690.byron
fixRemoved all deprecations (Anakia, Texen, VelocityServlet, etc.)nbubna
addChanged macro arguments to be pass by value. Fixes VELOCITY-687.byron

Release 1.7 - 2010-11-29

fixFixed quotes escaping so that doubling single quotes only works when enclosing quotes are single quotes (and same behaviour for double quotes) Fixes VELOCITY-785. Thanks to Jarkko Viinamäki.cbrisson
addAdd access to template and directive debugging info via $/scope/.info.nbubna
fixLogManager now catches UnsupportedOperationExceptions during LogChute init. Fixes VELOCITY-766.nbubna
fixEnsure that DataSourceResourceLoader closes PreparedStatements. Fixes VELOCITY-760. Thanks to Jarkko Viinamäki.nbubna
fixMark optional dependencies as such in OSGi bundle manifest. Fixes VELOCITY-753. Thanks to Matt Ryall.nbubna

Release 1.7-beta1 - 2010-04-10

addAdd support for OSGi-ready manifests in build/release tasks. Fixes VELOCITY-694.nbubna
fixWhen comparing parameter types during method mapping, make Object always less specific than other types. Fixes VELOCITY-753.nbubna
fixAvoid NPEs in case of bad #foreach config. Fixes VELOCITY-759. Thanks to Rachid.nbubna
addUse LinkedHashMap to maintain order of VTL-created maps. Fixes VELOCITY-755.nbubna
fixTreat \ as non-special in string literals, except when specifying unicode sequences. Fixes VELOCITY-555. Thanks to Jarkko Viinamäki.nbubna
addAllow escaping of quotes (single or double) within string literals by doubling them ("" or ''). Fixes VELOCITY-555. Thanks to Jarkko Viinamäki.nbubna
fixGive #parse better log/exception messages and give IncludeEventHandler a chance to handle null #parse args. Fixes VELOCITY-758. Thanks to Jarkko Viinamäki.nbubna
fixFix $.x parsing failures (particularly helpful for jQuery users). Fixes VELOCITY-754,VELOCITY-729. Thanks to Jarkko Viinamäki.nbubna
addLog Velocimacro additions at debug level, as in pre-1.6 versions. Fixes VELOCITY-744.nbubna
addAdd removeDirective(name) and loadDirective(classname) methods to allow runtime changes to the directive set. Fixes VELOCITY-742. Thanks to Jarkko Viinamäki.nbubna
fixThrow an informative VelocityException when #define is given no parameter (instead of an ArrayIndexOutOfBoundsException). Fixes VELOCITY-727. Thanks to Jarkko Viinamäki.nbubna
fixThrow an informative VelocityException when #parse is given no args (instead of an NPE). Fixes VELOCITY-728. Thanks to Jarkko Viinamäki.nbubna
addChanged #stop to a directive implementation (get it out of the parser) and allow it to accept a message as an argument to be written to the logs for debugging purposes. Fixes VELOCITY-704.nbubna
addChange the scoping behavior of Velocity, keeping it optional (everything global scoped by default) but now providing an explicit namespace in content-containing directives (like macros, #foreach, #parse, etc.) in which references that should stay local may be kept. This is accompanied by numerous related changes, including:
  • A Scope reference can now be automatically made available within each content directive:
    • $template in Template.merge and #parse content
    • $macro in #macro
    • $foreach in #foreach
    • $evaluate in #evaluate or Velocity.evaluate(...) content
    • $define in #define
    • $<amacro> in #@<amacro> (where <amacro> is the name of a macro being called with a body)
  • For performance and compatibility these are all off by default, *except* for $foreach. The others may be enabled by setting a velocity property like:
    macro.provide.scope.control = true
  • When scopes of the same type are nested make the parent Scope available through the child (e.g. $foreach.parent or $foreach.topmost).
  • When a Scope reference overrides an existing reference that is not a Scope, make it available through the Scope (e.g. $foreach.replaced).
  • Made #break work in any of the above scopes to exit the most immediate one, unless a different scope is provided as an argument (e.g. #break($macro) or #break($foreach.topmost)).
  • Deprecated $velocityCount; please use $foreach.count or $foreach.index.
  • Deprecated $velocityHasNext; please use $foreach.hasNext, $foreach.first or $foreach.last
  • Deprecated velocimacro.context.localscope setting; please get/set local #macro references as members of the provided $macro scope control instead. (e.g. #set( $ = 'bar' ) and $ ).
  • Deprecated directive.evaluate.context.class setting; please get/set local #evaluate references as members of the provided $evaluate scope control instead. (e.g. #set( $ = 'bar' ) and $ ).
All of the deprecated features will be removed in Velocity 2.0. Fixes VELOCITY-704.
addCalling #set on a macro argument (for which a #set-able reference was passed) will no longer propagate the new value to the original reference, but merely set the value of the macro argument reference. This was an obscure, infrequently used feature and was decided to be more problematic and unpredictable than useful. Fixes VELOCITY-681.nbubna
addIn strict mode attempts to render references that evaluate to null will throw an exception. In the user wishes to suppress the exception and render nothing then the reference can be preceeded with '$!' as in $!foo. Fixes VELOCITY-688.byron
addThe non default VelocityEngine construtors now do not initialize the runtime system so that properties may be set after construction. Also fixes an Initialization race condition. Fixes VELOCITY-673.byron
fixMake velocimacro.arguments.strict=true work with block macros. Fixes VELOCITY-685. Thanks to Jarkko Viinamäki.nbubna
addAdded a property for changing escape behavior such that putting a forward slash before a reference or macro always escapes the reference or macro and absorbs the forward slash regardless if the reference or macro is defined. Fixes VELOCITY-623.byron
fixFix StringIndexOutOfBoundsException caused by #[[##x]]# (line comment on same line as end of textblock). Fixes VELOCITY-676. Thanks to Jarkko Viinamäki.nbubna
fixFix NPE caused by #@foo (w/o #end) in template. Fixes VELOCITY-675. Thanks to Jarkko Viinamäki.nbubna
addMinor performance tweaks based on Findbugs findings Fixes VELOCITY-668. Thanks to Jarkko Viinamäki.byron
fixPre 1.6 behavior of specifying #macro without parenthesis would throw a VelocityException has been restored. Fixes VELOCITY-667.byron
add#end #@bold()any valid VTL here#end) The $bodyContent reference may be renamed via a velocimacro.body.reference setting in your Fixes VELOCITY-666. Thanks to Jarkko Viinamaki.nbubna
fixAdded #[[this is included in output but not parsed]]# syntax to replace and deprecate the much more limited #literal directive (which required parse-able content). Fixes VELOCITY-661. Thanks to Jarkko Viinamaki.nbubna
addRe-implement #stop so that it stops template execution and rendering. This Also addresses a performance bottleneck detected in the old implementation. #stop is a general use directive now, and not just for debugging. Fixes VELOCITY-663.byron
addReduce performance bottleneck with the referenceInsert event handler call Fixes VELOCITY-662.byron
addBetter error reporting when toString() throw an exception when testing an #if conditional. For example #if($foo) Fixes VELOCITY-656.byron
addAdded bracketed index syntax, $foo[0], or #set($foo[0] = 1) Fixes VELOCITY-406.byron
addRemoved java.lang.Exception from throws clause of Velocity and VelocityEngine API. Also removed IOException so that all method calls use unchecked exceptions. Fixes VELOCITY-659.byron
addRemoved obsolete WebMacro conversion tool and experimental Veltag (which has been replaced by VelocityViewTag from VelocityTools).nbubna

Release 1.6.4 - 2010-05-10

fixFix double-checked locking in RuntimeInstance's optional lazy-init. Fixes VELOCITY-750.nbubna
fixFix 100% CPU loop hang under simultaneous HashMap calls in ClassMap due to classic bug in Sun's implementation. Now uses ConcurrentHashMap when available and Hashtable otherwise. Fixes VELOCITY-718.nbubna

Release 1.6.3 - 2009-12-16

fixAdd directive.if.tostring.nullcheck config switch to match past performance for those who do not need to check whether $foo.toString() returns null when doing #if( $foo ). Fixes VELOCITY-731. Thanks to Jorgen Rydenius.nbubna

Release 1.6.2 - 2009-03-19

fixFix obscure caching problem in multiple resource loader situations where resources may exist in more than one loader and appear and disappear from loaders. Fixes VELOCITY-702.nbubna
fixFix old regression from 1.4 in supporting methods declared as abstract in a public class but implemented in a non-public class. Fixes VELOCITY-701.nbubna
fixFix problem with FileResourceLoader's resourceExists() when configured w/multiple paths. Fixes VELOCITY-693.nbubna
fixFix ClassMap introspection bug introduced in 1.5, where public super-interface methods implemented in protected or private classes were unreachable. Fixes VELOCITY-689.nbubna
fixFix regression in proxying of macro argument #set calls. Note that in 1.7, calling #set on a macro argument (for which a #set-able reference was passed) will not propagate the new value to the original reference, but merely set the value of the macro argument reference. Fixes VELOCITY-681.nbubna
fixFix loss of inline macros when #evaluate is used. Fixes VELOCITY-682.nbubna
fixFix name of sources jar for maven deployment. Fixes VELOCITY-554. Thanks to Adrian Tarau.nbubna
fixPre 1.6 behavior of specifying #macro without parenthesis would throw a VelocityException has been restored. Fixes VELOCITY-667.byron
addBetter error reporting when toString() throw an exception when testing an #if conditional. For example #if($foo) Fixes VELOCITY-656.byron
fixFix $velocityHasNext so that it works in nested foreach blocks. Fixes VELOCITY-658. Thanks to Jarkko Viinamäki.byron
fixThrow an exception in strict mode when >=, <=, < or > comparisons can't be made. Fixes VELOCITY-645.byron
fixFix $velocityHasNext so it is not always true. Fixes VELOCITY-657.cbrisson

Release 1.6.1 - 2008-12-15

fixCorrect/enhance template name reporting for #include and #parse. Fixes VELOCITY-654. Thanks to Byron Foster.nbubna
fixRemoved redundant error message in ASTReference. Fixes VELOCITY-653. Thanks to Byron Foster.nbubna
fixFix limitation in new macro implementation that resisted #set calls to change references defined as arguments for the macro. Fixes VELOCITY-615. Thanks to Steve O'Hara.nbubna
fixFix vararg bugs when calling overloaded methods like get(String,String,Object[]) and get(String,List). (e.g. in VelocityStruts' MessageTool) Fixes VELOCITY-651. Thanks to Stephan Schmid.nbubna

Release 1.6 - 2008-12-01

fixFix NPE when null value is passed to array/vararg method. Fixes VELOCITY-649. Thanks to Byron Foster.nbubna
fixTrack template name in Node, to get proper template name in the exception message when a reference in a macro causes that exception. Fixes VELOCITY-644. Thanks to Byron Foster.nbubna
fixUpdate Finnish and Spanish User Guide sections on division operation. Fixes VELOCITY-352. Thanks to Gonzalo Diethelm, Joni Salonen.nbubna
fixFix classpath for XMLApp example. Fixes VELOCITY-641. Thanks to Will Glass-Husain.nbubna
fixFix references to Oro dependency to make it clear that it is only necessary for certain reference event handlers. Fixes VELOCITY-617. Thanks to Adrian Tarau.nbubna
fixRemove old Anakia/Texen docs and examples. Fixes VELOCITY-640. Thanks to Will Glass-Husain.nbubna
fixFix bug in vararg support where an array passed to a vararg method was being wrapped in another array. Fixes VELOCITY-642. Thanks to Ilkka Priha.nbubna
fixLocked down versions for reporting plugins in Maven POM. Fixes VELOCITY-638. Thanks to Benjamin Bentmann.nbubna
addAdd Maven-Ant tasks for installing and deploying Maven artifacts, including previously missing source and javadoc jars (VELOCITY-554). Fixes VELOCITY-466. Thanks to Adrian Tarau.nbubna

Release 1.6-beta2 - 2008-10-26

fixFix User Guide's Table of Contents anchor links. Fixes VELOCITY-632. Thanks to Sebb.nbubna
fixFix parser bug that prevented references from immediately preceding #set directives. Fixes VELOCITY-631. Thanks to Byron Foster.nbubna
fixRevert change made for VELOCITY-285, as it broke pass-by-name nature of macro arguments. Fixes VELOCITY-630. Thanks to Byron Foster.nbubna
fixFix line numbers in string literals. Fixes VELOCITY-629. Thanks to Byron Foster.nbubna
fixFix line number for exceptions with body of #foreach directive. Fixes VELOCITY-627. Thanks to Byron Foster.nbubna
addLog full macro stack when a RuntimeException occurs in a template. Fixes VELOCITY-626. Thanks to Byron Foster.nbubna
addFormat template and line/column numbers consistently in error and log messages. Fixes VELOCITY-622. Thanks to Byron Foster.nbubna
fixDon't override pre-configured log levels for JdkLogChute or Log4JLogChute. Fixes VELOCITY-624. Thanks to Byron Foster.nbubna
addAdd optional 'runtime.references.strict' property that has Velocity throw exceptions when it encounters undefined references or velocimacros in a template. Fixes VELOCITY-618. Thanks to Byron Foster.nbubna
addInlude Maven Ant tasks jar in downloads and add support for downloading from Maven2 repos. Fixes VELOCITY-554. Thanks to Adrian Tarau.nbubna
fixFix problem with single backslash in interpolated (double-quoted) strings. Fixes VELOCITY-585. Thanks to Jon Seymour.nbubna
fixFix escaping of bracketed directives (e.g. \#{if}($foo)$bar\#{end}). Fixes VELOCITY-616. Thanks to Alik.nbubna

Release 1.6-beta1 - 2008-09-22

addUberspectors chaining Fixes VELOCITY-588. Thanks to Vincent Massol, Sergiu Dumitriu.cbrisson
addAdd ability to set a connection timeout for URLResourceLoader. Fixes VELOCITY-585. Thanks to Tim White.nbubna
addMake it easier to override ResourceFactory.getResource(...) in ResourceManagerImpl. Fixes VELOCITY-227. Thanks to Charles Morehead.nbubna
addFix BooleanPropertyExecutor to recognize "public Boolean isFoo" properties. Fixes VELOCITY-544. Thanks to Adam Bishop, Jarkko Viinamaki.nbubna
addAdd a separate resourceExists(String name) method to ResourceLoader(s) to improve performance. Fixes VELOCITY-439. Thanks to Tassos Bassoukos, Henning Schmiedehausen.nbubna
addFix missing # and $ characters within #literal() directive output. Fixes VELOCITY-355. Thanks to Geoffrey Lowney, Dan Ertman.nbubna
addAdd support for static utility classes: context.put("math", Math.class) -> $math.sin(0) Fixes VELOCITY-102. Thanks to Juozas Baliuka, Adrian Tarau, Jim Seach.nbubna
addAdd #define directive set an unrendered block of VTL as a reference. (e.g. #define( $foo )Hello, $bar!#end #set( $bar = 'world') $foo -> Hello, world!) Fixes VELOCITY-174. Thanks to Andrew Tetlaw.nbubna
addAdd #break directive to exit #foreach loops early. Fixes VELOCITY-612. Thanks to Jarkko Viinamaki.nbubna
addFixed major performance issues with Velocimacros. Fixes VELOCITY-607. Thanks to Jarkko Viinamaki.nbubna
addRemoved many, various performance bottlenecks and concurrency issues. (Also see VELOCITY-595) Fixes VELOCITY-606. Thanks to Jarkko Viinamaki.nbubna
addNew VTL syntax $velocityHasNext within #foreach loops Fixes VELOCITY-600. Thanks to Adrian Tarau.nbubna
fixMulti-line comments in macros were rendering extra *# when evaluated. Fixes VELOCITY-580. Thanks to Marnix van Bochove.wglass
fixHave VelocityCharStream use an exponential buffer expansion rate. Fixes VELOCITY-570. Thanks to Ronald Klop.cbrisson
fixPrevent exception due to simultaneous rendering of macros. Fixes VELOCITY-566. Thanks to Etienne Massip.wglass
addNew VTL syntax allows arrays to be treated like fixed length lists. Fixes VELOCITY-533. Thanks to Christopher Schultz.nbubna
addAdded support for varargs in method calls. Fixes VELOCITY-534.nbubna
fixPrevent NPE when template is parsed simultaneously by multiple users. (may apply only to macros). Fixes VELOCITY-536. Thanks to Lei Gu, Dima Tkach.wglass
fixUsers can now include libraries of macros with #parse in a template. Fixes VELOCITY-362. Thanks to Supun Kamburugamuva.wglass
addMacro libraries can now be selected programatically when merging templates. Fixes VELOCITY-529. Thanks to Supun Kamburugamuva.wglass
fixCatch IllegalArgumentException when invoking method. Fixes VELOCITY-452. Thanks to Alexey Panchenko.wglass
fixFixed parse error for map definitions ending with a reference. Fixes VELOCITY-538.wglass
addAdd new property velocimacro.max.depth which limits max macro calling depth. Fixes VELOCITY-297. Thanks to Supun Kamburugamuva.wglass
addAdd ability to add directives programmatically Fixes VELOCITY-547. Thanks to Adam Heath.wglass
fixAllow user directives to have no content. Fixes VELOCITY-548. Thanks to Adam Heath.wglass
fixIncludeNotFound event handler was displaying "not found" template. Fixes VELOCITY-551. Thanks to Michiel Toneman.wglass
fixFix StringResourceLoader to make it possible to use more than one loader per VM. Fixes VELOCITY-541.nbubna
fixMake unicode encoding work in velocity templates. Fixes VELOCITY-520. Thanks to Stepan Koltsov.nbubna
addAdd a ServletLogChute that allows logging through the servlet API. Ported from the Velocity Tools project.nbubna
addAdd a CommonsLogLogChute that allows logging through commons-logging.nbubna
updateDeprecate integrated texen and anakia, factor it out into separate jars.wglass
addAdded new directive #evaluate() to dynamically evaluate VTL. Fixes VELOCITY-509.wglass

Release 1.5 - 2007-01-28

fixFix to SecureUberspector to work properly with #foreach and iterators. Fixes VELOCITY-516. Thanks to Vincent Massol.wglass
addMake FileResourceLoader unicode aware to allow skipping over BOM markers like those created by Windows Notepad. This is a workaround for a Java bug, where Java itself does not recognize the UTF-8 BOM as defined by the unicode standard. Fixes VELOCITY-191. Thanks to Aki Nieminen.henning

Release 1.5-beta2 - 2006-11-24

addNew StringResourceLoader can retrieve templates from repository of in-memory Strings. Fixes VELOCITY-183. Thanks to Eelco Hillenius.henning
fixRuntimeInstance.getProperty now returns value set with RuntimeInstance.setProperty, even before initialization. Fixes VELOCITY-493. Thanks to Claude Brisson.wglass
addWhen macros have incorrect number of arguments, if property "velocimacro.arguments.strict" is set to true a ParseErrorException will be thrown. Fixes VELOCITY-435.wglass
addMethodInvocationException now contains line, column, template name allowing application to produce more useful error messages. Fixes VELOCITY-414. Thanks to Matthijs Lambooy.henning
fixFixed race condition in template retrieval that caused macros to fail under simultaneous load. Fixes VELOCITY-24.henning
addNew event handler InvalidReferenceHandler allows application to catch invalid references. Sample implementation collects them in list and optionally throws exception. Fixes VELOCITY-423.wglass
addNew, optional SecureIntrospector prohibits methods that involve manipulation of classes, classloaders or reflection objects. Use this introspector to secure Velocity against a risk of template writers using reflection to perform malicious acts. Fixes VELOCITY-179.wglass
fixRemoved Serializable from InternalContextBase, because one of the members is not serializable anyway so this never worked (Found by Findbugs). Fixes VELOCITY-458.henning
fixAdd an additional pair of Executors that are smart about Map. Fixes VELOCITY-449. Thanks to Alexey Panchenko.henning
fixMethod caching now uses consistent keys. Fixes VELOCITY-453. Thanks to Alexey Panchenko.wglass
fixChange the meaning of localscope for macros to allow access to references from calling context. Fixes VELOCITY-459. Thanks to Stephen Haberman.wglass
addAdd a test for the DataSourceResource Loader.henning
addFix a problem in the DataSourceResource Loader, removing a potential security issue with SQL injection.henning
addBuild now creates the MD5 and SHA1 checksums for archives and jars.henning
fixFix a number of issues reported by running FindBugs on the Velocity source.henning

Release 1.5-beta1 - 2006-09-13

fixStop references from calling object.toString() twice. Fixes VELOCITY-438. Thanks to Stephen Haberman.wglass
updatePass through all runtime exceptions. Among other benefits, this allows plugins to throw a runtime exception to signify an application level problem in the calling application. Fixes VELOCITY-429.wglass
fixWhen #include was followed by #parse with the same file name, a ClassCastException was thrown. Fixes VELOCITY-98. Thanks to Michal Chmielewski.wglass
addWrapped exceptions now have Cause property set on JDK 1.4. (note that Velocity continues to run under JDK 1.3). Fixes VELOCITY-425. Thanks to Llewellyn Falco.wglass
fixWhen Velocity is initialized, stream was not being closed. This made it difficult to undeploy webapps on Windows with Velocity unpacked. Fixes VELOCITY-418. Thanks to Jason Weinstein.wglass
fixUpgraded to latest commons collection, fixing problem with non-recognition of configuration file encoding in rare circumstances. Fixes VELOCITY-151. Thanks to Kirk Wolf.wglass
fixThe Introspector could throw a NPE when a parameter to an overloaded method was null. Fixes VELOCITY-370. Thanks to Reggie Riser.wglass
fixIf toString() returned null in a silent reference then "null" was displayed. Fixes VELOCITY-381. Thanks to Llwellyn Falco and Dan Powell.wglass
fixcaused ParseException. Fixes VELOCITY-359.wglass
addAdded javacc task to build.xml simplifying modification process for editing syntax files. Fixes VELOCITY-222.wglass
fixVelocity Engine was throwing NPE when used without a call to init(). Now gives a more meaningful exception message. Fixes VELOCITY-374.wglass
updateFixed problem with Uberspect Info class being created incorrectly. Added template name to Info allowing better error reporting. Fixes VELOCITY-404. Thanks to Llewellyn Falco.wglass
updateNumerous improvements to the documentation. Reorganized table of contents, moved community content to the Wiki, added article on using Velocity in web applications.wglass
updateWhen testing objects in VTL for equality, if both objects are a number, use number equality. If both objects are the same class, use the equals method. New behavior: If objects are different classes, compare the String representation of both objects rather than logging an error. Fixes VELOCITY-350.wglass
fixVelocity would give error when last line of file was a ## comment. Fixes VELOCITY-272.wglass
updateAdded method to retrieve application attributes. Fixes VELOCITY-412. Thanks to Malcolm Edgar.wglass
updateVelocity now searches in the current thread's context classloader before the system classloader for all templates loaded with the ClasspathResourceLoader and for all user-defined ResourceLoaders, introspectors, event handlers, etc. A typical use for this is to have Velocity in the application container classpath while keeping templates and plugins in the webapp classpath. Fixes VELOCITY-196.wglass
updateto true. Thanks to Thomas Veith.wglass
addNew optional event handler that escapes all references. Regular expressions can be used to configure which references have HTML, JavaScript, SQL, or XML escaping.wglass
addNew optional event handler implementation that forces #parse / #include to stay in same directory as parent template. Fixes VELOCITY-154.wglass
addNew event handler to modify behavior of #parse / #include. Fixes VELOCITY-260.wglass
updateFileResourceLoader now accepts absolute path when configured to accept it. Fixes VELOCITY-144.wglass
fixString containing "##" was treated as unterminated String. Fixes VELOCITY-126.wglass
addSpruced up Geir's old URLResourceLoader and promoted it from the whiteboard to the main distribution. Fixes VELTOOLS-55. Thanks to Charles Harvey.nbubna
updateThrow Runtime exceptions from nodes up the chain. Fixes VELOCITY-424. Thanks to Malcom Edgar.henning
updateRevert the split between org.apache.velocity.runtime.parser.node.Node and org.apache.velocity.runtime.parser.Node. The parser now only uses ...parser.node.Node because this change broke custom directives. Fixes VELOCITY-426. Thanks to Malcom Edgar.henning
updateMade a lot of internal logging upgrades including: Deprecated LogSystem interface and replaced it (and all its implementations) with a new LogChute interface and implementations, added getLog() to RuntimeServices (and all its friends) to improve on and replace its now deprecated logging methods, added a JdkLogChute as a 3rd default option for those using JDK 1.4+, and added a StandardOutLogChute as final resort if other LogChute inits fail. See JIRA issues VELOCITY-403, VELOCITY-166, VELOCITY-403,VELOCITY-166,VELOCITY-78, VELOCITY-157, VELOCITY-159, VELOCITY-193. Fixes VELOCITY-403.nbubna
removeRemoved all J2EE build tasks. Now automatically detects availability of javax.sql.Datasource (in JDK 1.4+) and builds DatasourceResourceLoader when allowed. Fixes VELOCITY-401.henning
addant build now downloads the required dependency jars from ibiblio.orghenning
updateUnified template name, line and column number reporting for ParserErrorException Fixes VELOCITY-373. Thanks to Malcolm Edgar.henning
removeDropped the non-functional Velocity compiler.henning
updateStarted separating out the JavaCC generated parts of the Velocity Parser. Not yet complete to avoid user visible changes. Scheduled to be completed for 2.0henning
addContributed a maven build for Velocityhenning
fixReworked the ant build to product only two jars: velocity.jar and velocity-dep.jar.henning
removeRemoved the Configuration class and all methods that references it. This class was deprecated since Velocity 1.1 and was scheduled to be gone for Velocity 1.3 or 1.4. Now it was finally removed in 1.5.henning
addAdded support for decimal numbers. Fixes VELOCITY-242. Thanks to Peter Romianowski.wglass
fixMethodInvocationException now consistently thrown (previously was hidden when in parameter to Velocimacro). Fixes VELOCITY-284. Thanks to Mike Rettig.wglass
fixFixed problem in which foreach loop would fail to call overloaded method. Fixes VELOCITY-109.wglass
fixRemoved ERROR level log message "Can't find 'VM_global_library.vm'". Fixes VELOCITY-86.wglass
fixAnakia now generates consistent line endings based on platform. Requires upgrade to JDom 1.0. Fixes VELOCITY-348.wglass
addAnakia can now be pre-loaded with custom context values from an optional XML file. Fixes VELOCITY-190. Thanks to Peter Ryan.wglass
addDirectives can now be delimited with curly braces, for example #if($condition)something#{else}otherthing#{end}. Fixes VELOCITY-43.wglass
fixNulls now handled appropriate within #foreach. Fixes VELOCITY-254. Thanks to Christopher Reck.wglass
fixUpgraded JavaCC to version 3.2, providing JDK 1.5 compatibility. (Older version used keyword 'enum' which is reserved in JDK 1.5). Fixes VELOCITY-324. Thanks to Shinobu Kuwai.wglass
updateDatasourceResourceLoader now allows injection of Datasource, allowing it to be used in Inversion of Control (IOC) frameworks. Fixes VELOCITY-267. Thanks to Matt Raible .wglass
fix#stop now works properly. Fixes VELOCITY-218.wglass
updateClasspathResourceLoader now searches ContextClassLoader for template. Fixes VELOCITY-196. Thanks to Charles Oliver Nutter.wglass
removedeprecated Category and Priority classes in favor of the corresponding and supported Logger and Level. To update, replace necessary references, and Category.getInstance() with Logger.getLogger(). Fixes VELOCITY-164.dlr
addNew Map literal syntax. Fixes VELOCITY-152. Thanks to James Taylor.wglass
removeRemoved the long-deprecated Log4JLogSystem. Never fear, SimpleLog4JLogSystem remains.dlr
updatefor your cache to less than 1.dlr
updateTook dan's modified SimpleLog4jLogSystem, and renamed Log4JLogSystem, and put back old version of SimpleLog4JLogSystem, as deprecated. That way we can move forward with an up-to-date version that uses Logger, and for one release, be backwards compatile for the Category-using log4j crowd. Thanks to Daniel Rall.geirm
removeDeprecated class in favor of the various format classes in the Velocity Tools library.wglass
removeDeprecated the org.apache.velocity.servlet.VelocityServlet class in favor of from the Velocity Tools library. Servlet interaction is more a core competency of the Velocity Tools package than of Velocity's core.dlr
fixFix to BaseTestCase as suggested by Will Glass-Husain to handle line endings Fixes VELOCITY-185. Thanks to wglass.geirm
updateParameterized cache and mod time control in TexenTask based on patch from Henning. Thanks to henning.
fixFix to DatasourceResourceLoader - stop using the old Runtime singleton as would leak a little memory for each instance of VelocityEngine created. Hunted down by Will Glass-Husain. Fixes VELOCITY-150. Thanks to wglass.geirm
fixSimplePool now removes elements from pool on a get(). NOTE : Previously, it left the reference to the object in the pool. Fixes VELOCITY-161. Thanks to wglass.geirm
fixFixes problem with single line comment embedded in a multi-line comment. Fixes VELOCITY-61. Thanks to wglass.geirm
fixChange for VELOCITY-221 and partial for VELOCITY-148, allowing newlines in directives. Fixes VELOCITY-221.geirm
updateChange to finish request VELOCITY-148, allowing '+' as a string concat. We'll have to see how the community likes it. Fixes VELOCITY-148.geirm
fixDidn't allow formal reference notation as first arg to foreach. Fixes VELOCITY-239.geirm
updateTo make using w/ XML easier allow alternative logical operators 'and', 'or', 'lt', 'gt', 'le', 'ge', 'eq', 'ne', 'not'.geirm
updateAllow newlines in strings.geirm
fixTiny fix to VelocityWriter to prevent a NPE if someone passes it a null Fixes VELOCITY-148.geirm
fixAnakia changes to accomodate finalization of JDOM API. In AnakiaJDOMFactory, AnakiaTask, and OutputWrappergeirm
updateAdded template, line and column info to MIEs thrown by ASTMethodgeirm