You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Dave Bryson <da...@miceda-data.com> on 2001/03/06 00:44:35 UTC

Classpathloader

Hey all,

I just added a testcase for the classpath loader.  I really don't see the 
need for the Jarloader at this point ( unless you want to tap into remote
Jars).  From now on I'm going to check with Geir to see what he has laying
around before I do any work :-) ! 

If you notice the test case grabs templates from two separate jars.

The only problem i may see is that template directories in the jar do NOT start
with / and the classpath loader doesn't compensate for that. So if the requested
template looks like this -> /template/test1.vm the request will fail.

Jason,

What i'd like to do next is convert the forum demo to a small Turbine app and
put the template in a Jar - unless you have another app in mind - Admin? 

later,
-- 
Dave Bryson
daveb@miceda-data.com
----------------------


Re: Classpathloader

Posted by Jason van Zyl <jv...@periapt.com>.
Dave Bryson wrote:

> Hey all,
>
> I just added a testcase for the classpath loader.  I really don't see the
> need for the Jarloader at this point ( unless you want to tap into remote
> Jars).  From now on I'm going to check with Geir to see what he has laying
> around before I do any work :-) !
>
> If you notice the test case grabs templates from two separate jars.
>
> The only problem i may see is that template directories in the jar do NOT start
> with / and the classpath loader doesn't compensate for that. So if the requested
> template looks like this -> /template/test1.vm the request will fail.
>
> Jason,
>
> What i'd like to do next is convert the forum demo to a small Turbine app and
> put the template in a Jar - unless you have another app in mind - Admin?

The Forum Demo would be great! The more the better, I'm going to
try and get Flux (Turbine admin app) in a JAR but we'll see how that
goes :-)

>
>
> later,
> --
> Dave Bryson
> daveb@miceda-data.com
> ----------------------

--
jvz.

Jason van Zyl
jvanzyl@periapt.com

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine