Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bat scripts to work with JAVA_HOME with parentheses Backports #40770

Merged
merged 3 commits into from
Apr 4, 2019

Conversation

pgomulka
Copy link
Contributor

@pgomulka pgomulka commented Apr 3, 2019

backports :
Migrate systemd packaging tests from bats to java (#39954)
Bat scripts to work with JAVA_HOME with parentheses (#39712)
Link to SYSTEM_JAVA_HOME on windows (#40806)

@pgomulka pgomulka added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts backport labels Apr 3, 2019
@pgomulka pgomulka self-assigned this Apr 3, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@pgomulka pgomulka changed the base branch from 7.x to 7.0 April 4, 2019 06:47
pgomulka and others added 3 commits April 4, 2019 08:52
)

Migrating systemd bats tests from bats to java dsl. This also covers
partially the sysv, but more must be added

relates elastic#32143
the elasticsearch.bat and elasticsearch-env.bat won't work if JAVA
contains parentheses. This seems to be the limitation of FOR /F IN
(command) DO syntax.
The JAVA variable present in a command contains a path to a binary to
start elasticsearch (with spaces & parens). We can workaround the
problem of spaces and parentheses in this path by referring this
variable with a CALL command.
Note that executing binaries with CALL is an undocumented behaviour (but works)
closes elastic#38578
closes elastic#38624
closes elastic#33405
closes elastic#30606
We don't always have java home defined in packaging tests, as we want to
use the bundled jdk most of the time. This commit fixes the java home
with special characters test to link to SYSTEM_JAVA_HOME on windows.

closes elastic#40797
@pgomulka pgomulka force-pushed the bp/7.0/39712-windows-java branch from 7169f84 to 7fe0faa Compare April 4, 2019 06:54
@pgomulka pgomulka changed the title Bat scripts to work with JAVA_HOME with parentheses backport(#39712) Bat scripts to work with JAVA_HOME with parentheses Backports Apr 4, 2019
@pgomulka pgomulka merged commit e15e337 into elastic:7.0 Apr 4, 2019
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants