-
Notifications
You must be signed in to change notification settings - Fork 875
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
use default javac release option for the NetBeans build #5455
Conversation
Sorry i misclicked and marked it as ready by accident. |
haha. looks like most tests except those few I ran locally are red. Going to take another look. |
Think we might have a little bit of work to do! 😄 I only searched for Maybe it would be better for now to keep the setting pattern used in a few with - javac.target=${default.javac.target} Could expand that to set javac.source=${default.javac.release}
javac.target=${default.javac.release} |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
excludes: - nbi/ - webcommon/cordova/ - java/java.j2seproject/copylibstask/ - java/javawebstart/AntTasks/
6c02012
to
ed595e0
Compare
the reason for that is because the custom javac ant task is mapping the properties in a non-standard way: but we are getting there. The good thing is that all values are now basically the same. i saw this in the log Line 116 in 410710e
I did set source/target to 1.8 for the current test run. going to try to get the default release property in too so that we can use it for all the other javac calls, e.g |
That is a n artifact of the NetBeans build itself, so the task is not set in stone and could be changed. |
lets try this first: #7188 |
follow up to #5122
attempt to remove project specific
javac.source/target/release
properties and sets them tojavac.default.release
in common.xml so that projects can still overwrite the default where required (example would be java/java.disco).skipped some paths which used build-impl.xml (or other custom builds) instead of the NB infrastructure:
full build is working locally and CV tests are green too (tested with JDK 19), ran only rudimentary manual tests.
this created an interesting problem I didn't anticipate:
NetBeans doesn't know anymore what javac level the projects have when they are opened. Have to find a fix for that.
but first lets see if a full test run is green / what is missing.