Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
escape comma
Browse files Browse the repository at this point in the history
  • Loading branch information
nonylene committed Apr 26, 2016
1 parent 4c25e38 commit ed84e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified GradleExternalBuildPlugin.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions src/net/nonylene/gradle/external/ExternalBeforeRunTaskTool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class ExternalBeforeRunTaskTool(val tasks: List<String>, val commandLineArgument
workingDirectory = state.workingDirectory

val tasks = tasks.fold(StringBuilder()) { builder, text ->
builder.append(text)
builder.append(text.replace(",", "\\,"))
.append(',')
}.toString()

val args = commandLineArguments.fold(StringBuilder()) { builder, text ->
builder.append(text)
builder.append(text.replace(",", "\\,"))
.append(',')
}.toString()

Expand Down

0 comments on commit ed84e23

Please sign in to comment.