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

add-open flag for archetype #3851

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

Conversation

ebarboni
Copy link
Contributor

@ebarboni ebarboni commented Mar 24, 2022

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

@ebarboni ebarboni requested a review from mbien March 24, 2022 20:31
Copy link
Member

@mbien mbien left a 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.

nbbuild/build.xml Outdated Show resolved Hide resolved
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Maven [ci] enable "build tools" tests Platform [ci] enable platform tests (platform/*) labels Mar 25, 2022
@mbien mbien added this to the NB14 milestone Mar 25, 2022
@ebarboni
Copy link
Contributor Author

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.

@ebarboni ebarboni added the do not merge Don't merge this PR, it is not ready or just demonstration purposes. label Mar 25, 2022
@ebarboni
Copy link
Contributor Author

@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.

@ebarboni
Copy link
Contributor Author

#3862 needs also the jvm version for flags

@ebarboni
Copy link
Contributor Author

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.

@ebarboni ebarboni force-pushed the addopentoarchetype branch from 687e572 to e4e9651 Compare April 4, 2022 09:17
@ebarboni ebarboni removed the do not merge Don't merge this PR, it is not ready or just demonstration purposes. label Apr 4, 2022
@ebarboni ebarboni requested a review from mbien April 5, 2022 11:38
Comment on lines +49 to +50
NbmWizardIterator.AddOpenFFlag=@@metabuild.jms-fflags@@
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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'?

Copy link
Contributor Author

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

@neilcsmith-net neilcsmith-net modified the milestones: NB14, NB15 Apr 20, 2022
@neilcsmith-net neilcsmith-net modified the milestones: NB15, NB16 Jul 18, 2022
@neilcsmith-net
Copy link
Member

@ebarboni status of this one?

@ebarboni
Copy link
Contributor Author

later :D it needs also archetype side rewrite, I need to resync with @mbien

@neilcsmith-net neilcsmith-net removed this from the NB16 milestone Oct 11, 2022
@mbien
Copy link
Member

mbien commented Oct 11, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Maven [ci] enable "build tools" tests Platform [ci] enable platform tests (platform/*)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants