Skip to content

Commit

Permalink
Build: Fix jrunscript command to quote correctly on windows (#23539)
Browse files Browse the repository at this point in the history
As noted
in #22898 (comment)
  • Loading branch information
rjernst authored Mar 11, 2017
1 parent 3d82549 commit 57c1d5f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ class BuildPlugin implements Plugin<Project> {
/** Runs the given javascript using jjs from the jdk, and returns the output */
private static String runJavascript(Project project, String javaHome, String script) {
ByteArrayOutputStream output = new ByteArrayOutputStream()
script = script.replace('"', '\\"') // gradle/groovy does not properly escape the double quote for windows
project.exec {
executable = new File(javaHome, 'bin/jrunscript')
args '-e', script
Expand Down

0 comments on commit 57c1d5f

Please sign in to comment.