-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDE: Product Start sometimes triggers unwanted manifest changes #1403
Comments
This is actually not unexpected/unwanted but exactly what Even though many people miss use that feature, it is made and described in the help as a way to add arbitrary bundles to the class-path that then are automatically added to the manifest on run (either as require bundle or import package) once you use a class from them. There are alternatives but it depends on the use-case and some are not functional anymore, I planned to work on them but haven't had time recently to finish the work. |
Hmm, if that was the expected behavior, this feature doesn't seem to work consistently... As I wrote: after a eclipse restart the additional bundles are not added automatically to the manifest.... My usecase are optional dependencies like spotbugs or test dependencies which I don't want to see in the final manifest. Is there a better way to accomplish this? |
Also I think it is really not okay, if a product launch has side effects to files I have under version control. If I wanted that I could directly add the dependencies to the manifest myself. |
There is a feature but is is currently broken: then there are some efforts here:
as mentioned there is much room for improvements. |
You need to read further down ;-) As you add them to the |
Ok, got it. Thank you for explaining. Manually clicking on "add dependency" seems fine. But still, I think it is pretty weird that a product launch occasionally will trigger this feature automatically. |
I have now created beside that yes the feature is confusing and is better not used at all but currently is kept for legacy reasons. |
I encountered a weird effect: I have a bundle which uses spotbugs-annotations (or a similar optional dependency) via additional.bundles in the build.properties.
When I launch the eclipse product, in which the bundle is included, the manifest of the bundle is changed and the spotbugs dependency is added automatically as non-optional package import.
This behavior can only be stopped with an eclipse restart.
I have a suspicion that this is somehow related to some cleanup manifests actions I did previously.
(Tested with Eclipse 6/24)
The text was updated successfully, but these errors were encountered: