scala.util.Properties
Loads library.properties
from the jar.
Value Members From scala.util.Properties
val ScalaCompilerVersion: Name
Scala manifest attributes.
(defined at scala.util.Properties)
Value Members From scala.util.PropertiesTrait
def clearProp(name: String): String
(defined at scala.util.PropertiesTrait)
def envOrElse(name: String, alt: String): String
(defined at scala.util.PropertiesTrait)
def envOrNone(name: String): Option[String]
(defined at scala.util.PropertiesTrait)
def envOrSome(name: String, alt: Option[String]): Option[String]
(defined at scala.util.PropertiesTrait)
def isJavaAtLeast(version: String): Boolean
Compares the given specification version to the specification version of the
platform.
- version
- a specification version of the form “major.minor”
- returns
true
iff the specification version of the current runtime is equal to or
higher than the version denoted by the given string.
- Definition Classes
- Exceptions thrown
- NumberFormatException if the given string is not a version string
Example:
(defined at scala.util.PropertiesTrait)
def main(args: Array[String]): Unit
(defined at scala.util.PropertiesTrait)
def propIsSet(name: String): Boolean
(defined at scala.util.PropertiesTrait)
def propIsSetTo(name: String, value: String): Boolean
(defined at scala.util.PropertiesTrait)
def propOrElse(name: String, alt: String): String
(defined at scala.util.PropertiesTrait)
def propOrEmpty(name: String): String
(defined at scala.util.PropertiesTrait)
def propOrFalse(name: String): Boolean
(defined at scala.util.PropertiesTrait)
def propOrNone(name: String): Option[String]
(defined at scala.util.PropertiesTrait)
def propOrNull(name: String): String
(defined at scala.util.PropertiesTrait)
def scalaPropOrElse(name: String, alt: String): String
(defined at scala.util.PropertiesTrait)
def scalaPropOrEmpty(name: String): String
(defined at scala.util.PropertiesTrait)
def scalaPropOrNone(name: String): Option[String]
(defined at scala.util.PropertiesTrait)
def setProp(name: String, value: String): String
- Definition Classes
- PropertiesTrait
(defined at scala.util.PropertiesTrait)
Full Source: