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

Feature to add VM options in addition to VM properties #40

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

anishthecoder
Copy link
Contributor

@anishthecoder anishthecoder commented Feb 2, 2022

For Java 17, sometimes the launch configuration needs to add VM options such as --add-opens. Currently, there is no method to specify such options that get passed on directly to the launcher. This is a proposal for such an addition.

anishthecoder and others added 5 commits January 28, 2022 21:35
The argument index for `String.format` starts from `1`. In Java 11, index `0` defaulted to the first argument provided in the order. However, in Java 17, this throws `IllegalFormatArgumentIndexException`
anishthecoder-feature-1

Conflicts:
	maven-osgi-package-plugin/src/main/java/at/bestsolution/maven/osgi/pack/ProductPackagePlugin.java
Comment on lines +80 to +81
product.launcherArgs.vmOptions.stream().collect(Collectors.joining(" "))
+ product.launcherArgs.vmProperties.entrySet().stream()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to add a forced space between those entries if vmOptions is not empty

Comment on lines +98 to +99
product.launcherArgsWin.vmOptions.stream().collect(Collectors.joining(" "))
+ product.launcherArgsWin.vmProperties.entrySet().stream()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to add a forced space between those entries if vmOptions is not empty

Comment on lines +115 to +116
product.launcherArgsOSX.vmOptions.stream().collect(Collectors.joining(" "))
+ product.launcherArgsOSX.vmProperties.entrySet().stream()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to add a forced space between those entries if vmOptions is not empty

Comment on lines +132 to +133
product.launcherArgsLinux.vmOptions.stream().collect(Collectors.joining(" "))
+ product.launcherArgsLinux.vmProperties.entrySet().stream()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to add a forced space between those entries if vmOptions is not empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants