Michiel Meeuwissen wrote:
> Before creating a new hack proposal I want to collect opinions about the
> following issue.
>
> In the configuration directory of MMBase are currently some things which are
> not to be considered 'configuration' at all. The most clear example is the
> 'dtd' subdirectory.
>
> 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 want to ask, before collecting negative votes because of this, what you
> find a good directory for these kind of 'non-class' resources. I think it
> must at least be prefixed with 'org/mmbase', for example:
> WEB-INF/classes/org/mmbase/resources/dtd
Sounds ok.
> The same thing also applies for certain XML's in the config directory, for
> example the xml's in the 'databases' subdirectory. It is also possible to
> fetch those as resources. This is a little bit more work (e.g. the new
> DatabaseLookup class must be changed to work with InputSources rather then
> with Files), so I have not done this yet, but I'll be glad to if this is
> considerd to be a good idea.
>
I'm not sure if the databases.xml's must be treated as resources.
Because people can use these to change their type-mappings.
Gerard