OpenSearch/distribution/tools
William Brafford 8d8a918bcf
Avoid extra whitespace in parsed JVM options (#57769) (#62138)
The windows service script does a little munging of the parsed JVM
option string, converting whitespaces to semicolons. We recently added
an optional Java 14 JDK flag to our system JVM flags. On earlier JDKs,
the windows service batch script would encounter a double whitespace
when this option was missing and convert it into double semicolons.
Double semicolons, in turn, don't work in the arguments to the windows
service command, and led to a lot of JVM options being dropped,
including "es.path.conf", which is required for startup.

This commit puts in a double defense. First, it removes any empty-string
options from the system options list in the Java Options Parser code.
Second, it munges out double semicolons if they do appear in the parsed
option output.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 09:51:12 -04:00
..
java-version-checker Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00
keystore-cli Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
launchers Avoid extra whitespace in parsed JVM options (#57769) (#62138) 2020-09-09 09:51:12 -04:00
plugin-cli Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00