mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-30 09:58:12 -07:00
14 lines
536 B
Kotlin
14 lines
536 B
Kotlin
package com.beust.kobalt
|
|
|
|
public class SystemProperties {
|
|
companion object {
|
|
val javaBase = System.getProperty("java.home") ?:
|
|
(System.getenv("JAVA_HOME") ?: throw IllegalArgumentException("JAVA_HOME not defined"))
|
|
val javaVersion = System.getProperty("java.version")
|
|
val homeDir = System.getProperty("user.home")
|
|
val tmpDir = System.getProperty("java.io.tmpdir")
|
|
val currentDir = System.getProperty("user.dir")
|
|
val username = System.getProperty("user.name")
|
|
}
|
|
}
|
|
|