Val properties = System.getProperties().asScalaįor ((k,v) <- properties) println(s"key: $k, value: $v")Īll of the output is shown below, though I trimmed some long output. Val environmentVars = System.getenv().asScalaįor ((k,v) <- environmentVars) println(s"key: $k, value: $v") Just now I wrote this little Scala 3 / Dotty application to print out all system environment variables and def EnvironmentVariables = ![]() ![]() While working with the sbt and Mill build tools recently, and updating Scala and Java versions like crazy, I’ve been trying to verify some things in my Scala applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |