OpenSearch/distribution
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
..
archives Only ship Linux binaries for the correct architecture (#55280) 2020-04-16 09:45:52 +01:00
bwc Improve total build configuration time (#54611) (#54994) 2020-04-08 16:47:02 -07:00
docker Define aarch64 packaging test tasks (#55228) 2020-04-15 13:39:18 +01:00
licenses Add notice for bundled jdk (#40576) 2019-03-29 17:21:21 -04:00
packages Only ship Linux binaries for the correct architecture (#55280) 2020-04-16 09:45:52 +01:00
src Make windows JAVA_HOME handling consistent with linux (#55261) (#55362) 2020-04-16 16:17:41 -07:00
tools Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00
build.gradle Only ship Linux binaries for the correct architecture (#55280) 2020-04-16 09:45:52 +01:00