Comments (3)
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.
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.
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)
- [Bndtools 4.0.0.REL] Error querying repository Central. java.lang.NullPointerException HOT 4
- [Bndtools 4.0.0.REL] Require-Capability: osgi.extender change the minVersion HOT 6
- Eclipse Java Editor cannot not see class inheritance from jdo-enhanced classes in Bndtool project HOT 4
- Remove dead code
- Existing Bnd Workspace import should set classpath settings for test directory in Photon
- Problem with testpath resolution in Bndtools Alpha HOT 2
- Continuous Integration tests don't run continuously HOT 2
- Add support for start levels in bndtools launcher HOT 3
- runproperties are not copied to lanucher HOT 1
- Runtime Classpath is transitive HOT 10
- report unused buildpath and testpath entries HOT 6
- ${if} macro not working correctly in some condition HOT 1
- Template Repository preference validates irrespective of Branch
- Bndrun file editor shows raw filter string HOT 8
- Impossibility to add an exact version of a bundle in bndrun file editor
- Bndrun file editor should allow for run bundles reordering
- OSGiRepository does not seem to refresh when "Refresh Repositories" or "Refresh Repositories Tree" is pushed HOT 9
- Error at end of resolve if bndrun editor closed during resolution HOT 2
- Fragment Requirements Not Shown
- On Java 11 bnd issues many HttpClient processes do download JRE classes such as `Download jrt:/java.base/java/lang/Iterable.class` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bndtools.