Merge pull request #2961 from ekrich/wip13/fix-2551

Fix #2551: scripted mode ignores quotation
This commit is contained in:
eugene yokota 2017-03-09 14:44:59 -05:00 committed by GitHub
commit cc19d51f1d
2 changed files with 7 additions and 1 deletions

View File

@ -42,7 +42,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}"""")
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