OpenSearch/qa/os/src/test/java/org/elasticsearch/packaging
Ryan Ernst 742b69a7dc
Make windows JAVA_HOME handling consistent with linux (#55261) (#55362)
In bash, checking for whether an env variable exists uses the -z test,
against a stringified env var, so that the test is actually whether the
env var is empty, but not necessarily undefined. We use this to test
whether JAVA_HOME is set, to determine whether the bundled jdk should be
used. In windows, this test is an actual "undefined" check. This commit
brings the behavior on two systems in sync, opting to allow for an empty
JAVA_HOME in windows to indicate the bundled jdk should be used.

closes #55134
2020-04-16 16:17:41 -07:00
..
test Make windows JAVA_HOME handling consistent with linux (#55261) (#55362) 2020-04-16 16:17:41 -07:00
util Autoformat :qa:os and :benchmarks (#52816) 2020-02-28 14:48:04 +00:00