[英]How to add parameters to run SBT in Ammonite?
I want to run this SBT
command in Ammonite: 我想在Ammonite中运行此
SBT
命令:
sbt -mem 3000 clean compile docker:publishLocal
I tried a few things like: 我尝试了一些类似的事情:
%.sbt("-mem 3000", 'clean, 'test)(pwd)
Which gives this exception: 这给出了这个例外:
[error] Expected symbol
[error] Not a valid command: -
[error] Expected end of input.
[error] Expected '--'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected 'addPluginSbtFile'
[error] -mem 3000
[error] ^
How is this done? 怎么做?
I recently had to the same thing, and i can tell you that is not fun when those "random" errors happen. 我最近不得不做同样的事情,当那些“随机”错误发生时,我可以告诉你这并不有趣。
// I had to put the full path where sbt is, like this
val SBT = "C:\\Program Files (x86)\\sbt\\bin\\sbt.bat"
%(SBT, "-mem", "3000", "clean", "compile", "docker:publishLocal")(pwd)
with this the solution is: 与此解决方案是:
%.sbt("-mem", "3000", 'clean, 'test)(pwd)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.