2008/10/10 David Leangen <[EMAIL PROTECTED]>

>
> Great, thank you, Stuart!
>
> One question below...
>
> >         I need to do some work with LDAP queries and filters, so I'm
> >         looking for
> >         a good open-source library that handles this.
> >
> > Hi David,
> >
> > are you looking for something that builds LDAP queries/filters or
> > parses them?
>
> > for parsing you could re-use some of the code here:
> >
> >
> http://svn.apache.org/repos/asf/felix/trunk/framework/src/main/java/org/apache/felix/framework/util/ldap
>
> I guess it would be just too fine-grained for Felix to consider moving
> this out to its own bundle?
>
> Or, I wonder if there's some kind of maven trick I can use so I can
> build my own bundle just with this package... as the maven guru, can you
> suggest something?


no trick needed - just add the framework bundle as a dependency:

  <dependency>
    <groupId>org.apache.felix</groupId>
    <artifactId>org.apache.felix.framework</artifactId>
    <version>1.2.1</version>
    <scope>compile</scope>
    <optional>true</optional>
  </dependency>

then use the Embed-Dependency feature:

  <Embed-Dependency>

org.apache.felix.framework;inline=org/apache/felix/framework/util/ldap/**
  </Embed-Dependency>

to pull in the classes, as documented on the Felix website

or you could use Private-Package / Export-Package to do the same thing:

  <Private-Package>
    org.apache.felix.framework.util.ldap.*
  </Private-Package>

should be very straightforward - however, note that this isn't part of
Felix's public API ;)

Thank you!
> =dml
>
>
>
>


-- 
Cheers, Stuart

Reply via email to