All Questions
Tagged with system-properties scala
4 questions
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 ...
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 '...
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 := ...
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 ...