Code Monkey home page Code Monkey logo

Comments (3)

angelos avatar angelos commented on July 21, 2024

Right, I've done some digging, and this doesn't seem all that easy. In BndContainerInitializer, we find calculateEntries which should also include the embeddded jars if they are on the bundle's classpath. Eclipse's IPath doesn't seem to understand paths inside a jar (that is, the "!" notation doesn't work).

How about extracting these jars to a temporary directory? Or is there some way in which we can add single classes (or packages) to the list of classpathentries, so we can work with the declared exports after digging around in the bundle?

from bndtools.

njbartlett avatar njbartlett commented on July 21, 2024

I think on balance it's best not to try to fix this. Embedded JARs are never going to be understood by javac for offline builds, so if I add support for them in Eclipse it will just create inconsistency between the Eclipse and offline builds. Also they create runtime problems in PojoSR.

Best to avoid embedded JARs altogether, or at least use them for private packages only.

from bndtools.

angelos avatar angelos commented on July 21, 2024

Okay, sounds reasonable. We have now resorted to repackaging the jars we get in, before placing them in our CNF repository (such as, flatten the jar, and include the source or javadoc in OSGI-OPT).

from bndtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.