velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <cla...@renegat.net>
Subject Re: Mixing Jar and ClassResourceLoader
Date Sun, 09 Mar 2008 13:21:16 GMT
You have to put the complete pathname to your jar file, that is,
something like:

jar:file:/var/www/mysite/WEB-INF/lib/cimande-1.3.jar


  Claude

Le dimanche 09 mars 2008 à 19:53 +0700, Frans Thamura a écrit :
> hi claude,
> 
> i do several experiment, and try to use jar:file:/WEB-INF/lib/cimande-
> 1.3.jar
> 
> where the cimande-1.3.jar is my java bytecode + template
> 
> take a look my velocity.propierties below
> 
> i dont get how to use jar :)
> 
> 
> i fixed my properties to Classpath for class, and still not working
> 
> 
> i will try to see the source code, i feel this like a bugs, or a missing
> documentation, so i cannot implement it here
> 
> 
> resource.loader=jar,class
> class.resource.loader.description = Velocity Classpath Resource Loader
> class.resource.loader.class =
> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> class.resource.loader.cache = false
> class.resource.loader.modificationCheckInterval=2
> class.resource.loader.path=/
> 
> 
> # # and finally, for the loader we call 'jar', use the JarResourceLoader #
> and specify two jars to load from #
> jar.resource.loader.description = Velocity Jar Resource Loader
> jar.resource.loader.class =
> org.apache.velocity.runtime.resource.loader.JarResourceLoader
> jar.resource.loader.path = jar:file:/WEB-INF/lib/cimande-1.3.jar


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message