-
Notifications
You must be signed in to change notification settings - Fork 81
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
Include all sources by default in eclipse-sdk target #2777
base: master
Are you sure you want to change the base?
Include all sources by default in eclipse-sdk target #2777
Conversation
Could you explain this? Do we really want to exclude source of anything in the SDK? Is a default value being serialized? Does this change what is in the target platform? If not, why do we need this change? |
Regarding the source thing, it seems that currently we list source bundle (and features) explicitly in the location (sometimes) so question for me would be if we should remove the explicit ones and enable it in general. Beside that the added values are just the defaults so making it explicit what is used anyways. |
0c99e98
to
da16760
Compare
Initially this just serialized the default attributes that are added by the Target-Editor upon any modification and I wanted to avoid unrelated changes in the future if one uses the Editor.
Yes, exactly.
Good point, I have now enhanced this change to remove all explicitly listed source bundles/features and set the |
I like the removal of explicit source ius. An attribute for that is more convenient. It should be true for all locations though I think. Or? |
The unrelated charges annoyed me too. Better I can tell it to upgrade without noise. |
The main problem is that the target file is "handcrafted" especially the comments and formatting/orderings of maven target locations. PDE has special handling for IU targets to minimize that, but do not make it available to general locations and not always works well. |
Lately it was literally just a line feed change in the comment about the install location. So mostly not so annoying. 😀 |
Yes, I think so as well, but to me it looks like it's enabled for all locations now. |
I wonder if we need the source feature. Isn’t there an include all sources for the product/repository that would include the source bundles? |
Remove explicitly listed source-bundles and instead include all sources by default. Add other omitted IU-location attributes, too.
da16760
to
18d98a9
Compare
Yes that option exists and AFAICT it's enabled for the Eclipse-SDK repo. So technically we could remove all explicit sources from that feature. Besides of what we want to do with respect to the o.e.sdk bundle, I think it's a missing capability of tycho that one cannot reference source-features (maybe also not source-bundles) in a feature if those source-IUs are only included via |
Many things are of course "historical" but I think for this use-case it would be better if a feature.xml would have an attribute "include sources" that the is read by Tycho to include the sources (without a separate source feature), this could also be useful in cases where I have legal requirements to ship the source and don't want to maintain it manually. So we need a new checkbox in PDE and then Tycho can support it.
Yes that should work without a problem
It might be that this case is special indeed, but I don't see any advantage here in |
No description provided.