Eduard Witteveen <[EMAIL PROTECTED]> wrote:
> On Tue, 2002-10-01 at 19:55, Michiel Meeuwissen wrote:
> > I want to propose to make 'resources' of this. This is very easy to do:
> > I changed XMLEntityResolver and now after failing to find the DTD
> > in config/dtd, it simply opens it using getResourceAsStream("/dtd"+dtdName).
> > I can now place the dtd's in WEB-INF/classes/dtd. Of course I can also
> > place them in mmbase.jar now if I want to.
> I think this would be a good thing. But i want to have a config in which
> i can tell were there resources can be found (may be multiple, so you
> could use the WEB-INF/config/dtd WEB-INF/myapplication/dtd(for
> application specific dtd's) and WEB-INF/lib/mmbase.jar) and in which
> order they will be searched.
I would say: lets keep things simple. Fetching 'resource' can be easily done
with the ClassLoader, and I don't feel like overriding anything there to
make it possible to put resources in WEB-INF/myapplicions or somethings like
that. Please simply put them in WEB-INF/classes/nl/omroep/myapplications and
everything goes all right.
Of course we can make a fall back machanism with abritrary directories in
WEB_INF (simply opened as files), but I think having simply one (using mmbase
config directory) is complicated enough.
IMHO using resources is more than acute enough to distinguish private,
third-party and mmbase resources.
Michiel
--
Michiel Meeuwissen
Mediapark, C 107 tel. +31 (0)35 6772979