On 11/24/10 4:10 PM, Stefan Seelmann wrote:
Hi guys,
I committed the change below. It allows to use the schema loaders in
embedded environments (especially in Apache Directory Studio, but
should also work for web applications).
The idea is to have a fixed-named schema index file
"META-INF/apacheds-schema.index" that contains all resource paths to
the schema LDIF files. The ResourceMap class then can read that file
form its class loader to get all resources. Thanks to Owen Jacobson
for the idea.
Currently the index file is in the repository. I'm going to write a
Maven plugin to create that file automatically during the build. The
Maven plugin should bind to the generate-resource phase. The
alternative would be to use the exec plugin that executes something
like
find src/main/resources/schema -name "*.ldif" | sed
's:src/main/resources/::'>
target/classes/META-INF/apacheds-schema.index
but that wouldn't work on Windows.
If anyone has a better idea how to avoid a new Maven plugin, please tell.
Isn't it possible to do that using a ant task in maven ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com