directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <>
Subject Re: Schema Index and Maven plugin was: Re: svn commit: r1038592 - in /directory/shared/trunk/ldap-schema/src/main: java/org/apache/directory/shared/ldap/schema/ldif/extractor/impl/ resources/META-INF/ resources/META-INF/
Date Wed, 24 Nov 2010 15:21:18 GMT
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 ?

Emmanuel L├ęcharny

View raw message