我試圖用某些參數運行SBT項目。從命令行將參數傳遞給scala sbt時出錯
sbt -Dbootstrap=true run
但是,我得到以下錯誤。
Warning: invalid system property 'bootstrap'
[error] Not a valid command: true (similar: start)
[error] Not a valid project ID: true
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: true (similar: run, runner, target)
[error] true
[error] ^
我試着在build.sbt添加scalacOptions += "-feature"
,無效的系統屬性「引導」走了,但錯誤仍在持續。
你想用此係統屬性設置啓動應用程序? –
是的,我需要運行這個屬性集。 –