-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Add missing bundles to Demo App for Java 11 compatibility #1007
Conversation
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
I do not know if the setting comes from Eclipse IDE itself or from the Bndtools plugin but for me it seems that with the recent version spaces are used. |
I opted for tabs because when dragging/dropping bundles or hitting the Resolve button in the Bnd editor it replaces spaces with tabs on my machine. I also see spaces being used when hitting tab on a new line without indentation. But when I press enter at the end of a line that already has tabs it will indent using tabs. |
Okay, thanks for clarification. |
Both are working for me. When running from IDE on Java 11 I saw a similar warning like you fixed in #1001 for Java 9.
|
The warnings will be gone when adding some add-opens using:
However that doesn't work with Java 8. It would be nice to keep it all in one file instead of creating a second file for Java 9+. I see there's a if macro instruction that may help. Perhaps it can check the value of |
0e00bdd
to
4164042
Compare
Did you see
|
Yes I tried that but unfortunately it didn't work. I've also asked this as question in the bndtools-users group: https://groups.google.com/forum/#!topic/bndtools-users/GQb-50si8cc |
Apparently the Java version isn't available so the only remaining option is to move the extra VM parameters to a separate file for Java 9+. |
cf15f64
to
7099521
Compare
The Demo App can be used with both Java 8 and Java 11 when adding the same runrequires as used with itest projects. The PR also makes the indentation more consistent by using tabs instead of spaces everywhere in app.bndrun. Add add-opens for Java 9+ in separate bndrun file. Signed-off-by: Wouter Born <[email protected]>
7099521
to
8355436
Compare
Can we merge this @openhab/distro-maintainers? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 The warnings are gone when running from app-java9plus.bndrun
. I am fine with merging.
Thanks! Now I can spend my time on other things instead of fixing merge conflicts. :-) |
Signed-off-by: Wouter Born <[email protected]>
The Demo App can be used with both Java 8 and Java 11 when adding the same runrequires as used with itest projects.
The PR also makes the indentation more consistent by using tabs instead of spaces everywhere in app.bndrun.
Related to #768