Skip to content

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

Merged
0utplay merged 1 commit intoCloudNetService:nightlyfrom
0xIO32:nightly
Mar 17, 2023
Merged

fix: allow repetition of jvm options and command line arguments#1163
0utplay merged 1 commit intoCloudNetService:nightlyfrom
0xIO32:nightly

Conversation

@0xIO32
Copy link
Contributor

@0xIO32 0xIO32 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