Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

How to pass system properites in comand line to scala 3 executable

With scala 2 it was possible to pass system properties in the command line using -D<propname>=<propvalue> like in the following example: $scala -Dpath.to.folder=/opt/myfolder Scala v3 ...
Alessandro Caproni's user avatar
2 votes
2 answers
4k views

Pass System Property to `sbt console`?

Borrowing from this helpful answer, I tried to pass -Dfoo=bar to sbt console. Given an SBT project having only a build.sbt: $cat build.sbt scalaVersion := "2.11.8" fork := true I attempted: $sbt '...
Kevin Meredith's user avatar
2 votes
1 answer
1k views

How to set an system property in build.sbt, and read it in scala application code?

I tried to set some system properties in "build.sbt", then read it in my scala application. In build.sbt: name := "hello" version := "1.0" scalaVersion := "2.11.0" fork := true javaOptions := ...
Freewind's user avatar
  • 198k
13 votes
3 answers
21k views

How do I set a system property for my project in sbt?

I'm sure I'm missing something really simple... I want to set the system property java.awt.headless to true for my sbt project. Reading the page on properties I think that I need to use system or ...
pr1001's user avatar
  • 21.9k