Skip to content
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

Do not wrap source bundles #1140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Dec 17, 2022

Currently m2e wraps source into new artifacts having performance and space implications and can be confusing because users expect the file to be on a different location.

Due to the recent changes in PDE this is no longer required an we can remove this workaround.

See eclipse-pde/eclipse.pde#425

This will require a new PDE release ...

Currently m2e wraps source into new artifacts having performance and
space implications and can be confusing because users expect the file to
be on a different location.

Due to the recent changes in PDE this is no longer required an we can
remove this workaround.

See eclipse-pde/eclipse.pde#425
@github-actions
Copy link

Test Results

0 tests   - 610   0 ✔️  - 602   0s ⏱️ - 8m 49s
0 suites  -   98   0 💤  -     7 
0 files    -   98   0  -     1 

Results for commit f119a9a. ± Comparison against base commit cc3426f.

Copy link
Contributor

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's a good change, and think that is actually to not have sources as bundles since they are not meant to be installed in a OSGi Runtime. And better performance and less code is also beneficial.

However I wonder if it will then still work to reference the sources-(not bundles any-more) in a Feature? In general I would recommend to not include sources in a Feature, but there might be cases where it is needed. And since it used to be possible I think there are people that do it.

It might work to add a corresponding element manually in the text of the source-tab of the Feature-Editor. But that will then show warnings in the IDE. Tycho probably can still handle this since it is not changed.
That is probably a more general issue in PDE?

@laeubi
Copy link
Member Author

laeubi commented Dec 18, 2022

If thats important to anyone this needs to be fixed at PDE, the target platform still promotes this as a TargetBundle so PDE has all it needs to know to use this, that is the part here:

fInfo.setSymbolicName(sourceTarget.getSymbolicName() + ".source");
fInfo.setVersion(sourceTarget.getVersion());

@akurtakov
Copy link
Contributor

Is there a plan for this to be finished (if it's still needed at all?)?

@laeubi
Copy link
Member Author

laeubi commented Oct 1, 2024

Yes this is still on my list but with low priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants