Dave Reynolds wrote: > On 22/02/12 11:52, Andy Seaborne wrote: > >> PS >> Plan B1 is use Velocity but that seems to need an external file and has >> issues with unnecessary dependencies. > >> Velocity : I didn't find out how to control velocity without an external >> file like tools.xml; to use velocity-tools I either ended up with a lot >> of extra stuff, or had to tune the maven excludes to avoid pulling in >> struts (this is fixed in Velocity tools 2.1 but it's not out yet and >> Fuseki needs non-snapshots to release with). I may revisit this if I >> have time. > > FWIW I use velocity quite a lot on its own, never tried or needed > velocity-tools.
+1 It would be good to know exactly what's the problem Andy had. We might solve/go around it and just use Velocity: http://repo1.maven.org/maven2/org/apache/velocity/velocity/1.7-beta1/ > Using it that way doesn't bring in struts and doesn't need an external > config file. > > I tend to use the non-singleton model so create my own instance of > VelocityEngine and use VelocityEngine.setProperty to set things like > logging configuration. Details in [1]. Though I've used the singleton > model as well in the past. Paolo > > Dave > > [1] > http://velocity.apache.org/engine/releases/velocity-1.7/developer-guide.html >