-
Notifications
You must be signed in to change notification settings - Fork 867
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-open flag for archetype #3851
base: master
Are you sure you want to change the base?
Conversation
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.
LGTM + tested it and it works great. good job.
it add flag like this '''-J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED''' maybe we should have the without -J version too. |
@mbien add the two properties for maven user will be easy to get both I guess even if user doesn't want them at the end. Easier to delete than to create. |
#3862 needs also the jvm version for flags |
wait PR to be merged and git checkout build.xml and default.xml. Idea of @matthiasblaesing was my first intention but did'nt proper understand where to put things. |
687e572
to
e4e9651
Compare
NbmWizardIterator.AddOpenFFlag=@@metabuild.jms-fflags@@ |
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.
do we really need two properties? Is there nothing which could add the -J
for the mavenproject.conf?
I assume the updated archetype will insert the properties to surefire configuration/argline etc?
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.
I would prefers having both and let maven user choose. On nbm-application you may need both and avoid the maven-antrun-plugin.
Not 100% sure
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.
just a thought: would it be possible to make the launcher smarter so that it could use something like:
-J'-flag1 -flag2 -flag3' or -JVM_FLAGS='-flag1 -flag2 -flag3'?
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.
It's a more heavy change, for windows it would be there https://github.com/apache/netbeans-native-launchers unsure on how it works on mac
@ebarboni status of this one? |
later :D it needs also archetype side rewrite, I need to resync with @mbien |
maybe we should just add a comment to the maven template (which links to our JMS file) and call it a day, since this ended up more difficult than anticipated :) (i really don't like the fact that this would need two properties, one with -J and one without) |
Attempt to pass the add open flags to archetype linked to use for apache/netbeans-mavenutils-archetype-nbm-archetype#9
I should alter nbbuild/build.xml to populate branding so it can be used for replacement in the module