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

Build: Fix jrunscript command to quote correctly on windows #23539

Merged
merged 2 commits into from
Mar 11, 2017

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Mar 10, 2017

As noted
in #22898 (comment)

@rjernst rjernst added v5.4.0 v6.0.0-alpha1 :Delivery/Build Build or test infrastructure labels Mar 10, 2017
@uschindler
Copy link
Contributor

I'd just add the following line to runJavascript():

script = script.replace('"', '\\"')

and leave the rest intact.

@uschindler
Copy link
Contributor

(actually this is a bug in Groovy/Gradle when executing subprocesses. It misses to escape correctly. ANT knows better. Maybe use Ant's exec with args instead. Or use ProcessBuilder directly

@uschindler
Copy link
Contributor

+1

@rjernst rjernst merged commit 57c1d5f into elastic:master Mar 11, 2017
@rjernst rjernst deleted the jrunscript_windows branch March 11, 2017 18:15
@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
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v5.4.0 v6.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants