Fix #2551: scripted mode ignores quotation

This commit is contained in:
ekrich 2017-02-14 10:08:23 -05:00
parent 6b5f0980e8
commit b97d68a214
2 changed files with 7 additions and 1 deletions

View File

@ -49,7 +49,7 @@ object Script {
val append = Load.transformSettings(Load.projectScope(currentRef), currentRef.build, rootProject, scriptSettings ++ embeddedSettings)
val newStructure = Load.reapply(session.original ++ append, structure)
val arguments = state.remainingCommands.drop(1)
val arguments = state.remainingCommands.drop(1).map(e => s""""${e.commandLine}"""")
val newState = arguments.mkString("run ", " ", "") :: state.copy(remainingCommands = Nil)
Project.setProject(session, newStructure, newState)
}

View File

@ -0,0 +1,6 @@
### Bug fixes
- Fixes scripted mode ignores quotation. [#2551][2551] by [@ekrich][@ekrich]
[2551]: https://github.com/sbt/sbt/issues/2551
[@ekrich]: https://github.com/ekrich