velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: Loading multiple jars
Date Sat, 03 Mar 2001 14:13:41 GMT
Jason van Zyl wrote:
> 
> On Fri, 2 Mar 2001, Dave Bryson wrote:
> 
>
> > What I'd like to do is this:
> >
> > resource.loader.1.resource.path = jar:file:test.jar!/,jar:file:template.jar!/
> >
> > But this means i need to change the ResourceManager ( see line: 166 )
> > to look for "resource.path" and use:
> >
> > VelocityResources.getVector(property);  - instead of getString()
> >
> > This should also be beneficial to loading multi paths in FileResourceLoader.
> > Any objections to this? Or is there a better way that i'm missing?
> 
> I am just changing that code now, I was trying to
> have it ready for you by the time you got it :-)

I guess I don't understand why this wouldn't simply be left to the
loader implementation, since I assume that loaders can have different
property sets anyway.

If a loader can support multiple 'nodes' (jars, files, datasources,
hamsters...), then it deals with that itself in its own init().

geir


-- 
Geir Magnusson Jr.                               geirm@optonline.com
Developing for the web?  See http://jakarta.apache.org/velocity/

Mime
View raw message