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

fix: allow repetition of jvm options and command line arguments #1163

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

MarkusTieger
Copy link
Contributor

@MarkusTieger MarkusTieger commented Mar 14, 2023

Motivation

On my server I wanted to add the following JVM Options: "--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED", but noticed that duplicated elements e.g. "--add-opens" were removed automatically and thus this was not possible.

Modification

I've modified the eu.cloudnetservice.driver.service.ProcessConfiguration Class to use a LinkedList instead of a LinkedHashSet

Result

Now duplicated Elements in the jvmOptions and processParameters will now accept duplicated elements.

@derklaro derklaro requested a review from 0utplay March 15, 2023 08:11
@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release in: driver An issue/pull request releated to the driver module code t: fix A pull request introducing a fix for a bug. labels Mar 15, 2023
@derklaro derklaro added this to the 4.0.0-RC9 milestone Mar 15, 2023
@derklaro derklaro changed the title Fixed Bug for duplicated JVM Options and Process Parameters fix: allow repetition of jvm options and command line arguments Mar 15, 2023
@0utplay
Copy link
Member

0utplay commented Mar 17, 2023

Thanks!

@0utplay 0utplay merged commit 63a657c into CloudNetService:nightly Mar 17, 2023
derklaro pushed a commit that referenced this pull request Apr 17, 2023
### Motivation
On my server I wanted to add the following JVM Options: "--add-opens
java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.lang.reflect=ALL-UNNAMED", but noticed that duplicated
elements e.g. "--add-opens" were removed automatically and thus this was
not possible.

### Modification
I've modified the eu.cloudnetservice.driver.service.ProcessConfiguration
Class to use a LinkedList instead of a LinkedHashSet

### Result
Now duplicated Elements in the jvmOptions and processParameters will now
accept duplicated elements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: driver An issue/pull request releated to the driver module code t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants