mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Deprecate the no-jdk distributions (#64275)
This commit adds logging to indicate that the no-jdk distributions are deprecated and will be removed in a future release.
This commit is contained in:
parent
1c0380dc21
commit
57bd64aaec
4 changed files with 32 additions and 5 deletions
|
@ -92,6 +92,10 @@ ES_DISTRIBUTION_FLAVOR=${es.distribution.flavor}
|
|||
ES_DISTRIBUTION_TYPE=${es.distribution.type}
|
||||
ES_BUNDLED_JDK=${es.bundled_jdk}
|
||||
|
||||
if [[ "$ES_BUNDLED_JDK" == "false" ]]; then
|
||||
echo "warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release" >&2
|
||||
fi
|
||||
|
||||
if [[ "$ES_DISTRIBUTION_TYPE" == "docker" ]]; then
|
||||
# Allow environment variables to be set by creating a file with the
|
||||
# contents, and setting an environment variable with the suffix _FILE to
|
||||
|
|
|
@ -29,6 +29,10 @@ set ES_DISTRIBUTION_FLAVOR=${es.distribution.flavor}
|
|||
set ES_DISTRIBUTION_TYPE=${es.distribution.type}
|
||||
set ES_BUNDLED_JDK=${es.bundled_jdk}
|
||||
|
||||
if "%ES_BUNDLED_JDK%" == "false" (
|
||||
echo "warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release" >&2
|
||||
)
|
||||
|
||||
cd /d "%ES_HOME%"
|
||||
|
||||
rem now set the path to java, pass "nojava" arg to skip setting JAVA_HOME and JAVA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue