Properties

scala.util.Properties
object Properties

Loads library.properties from the jar.

Attributes

Source
Properties.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Properties.type

Members list

Value members

Inherited methods

def clearProp(name: String): String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

This is the default text encoding, overridden (unreliably) with JAVA_OPTS="-Dfile.encoding=Foo"

This is the default text encoding, overridden (unreliably) with JAVA_OPTS="-Dfile.encoding=Foo"

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def envOrElse(name: String, alt: => String): String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def envOrNone(name: String): Option[String]

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def envOrSome(name: String, alt: => Option[String]): Option[String]

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def isJavaAtLeast(version: Int): Boolean

Compares the given specification version to the major version of the platform.

Compares the given specification version to the major version of the platform.

Value parameters

version

a specification major version number

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def isJavaAtLeast(version: String): Boolean

Compares the given specification version to the specification version of the platform.

Compares the given specification version to the specification version of the platform.

Value parameters

version

a specification version number (legacy forms acceptable)

Attributes

Returns

true if the specification version of the current runtime is equal to or higher than the version denoted by the given string.

Throws

NumberFormatException if the given string is not a version string

Example

// In this example, the runtime's Java specification is assumed to be at version 8.
isJavaAtLeast("1.8")            // true
isJavaAtLeast("8")              // true
isJavaAtLeast("9")              // false
isJavaAtLeast("9.1")            // false
isJavaAtLeast("1.9")            // throws
Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

The default end of line character.

The default end of line character.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def main(args: Array[String]): Unit

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def osName: String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def propIsSet(name: String): Boolean

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def propIsSetTo(name: String, value: String): Boolean

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def propOrElse(name: String, alt: => String): String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def propOrEmpty(name: String): String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def propOrFalse(name: String): Boolean

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def propOrNull(name: String): String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def scalaPropOrElse(name: String, alt: => String): String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def setProp(name: String, value: String): String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

This is the encoding to use reading in source files, overridden with -encoding.

This is the encoding to use reading in source files, overridden with -encoding. Note that it uses "prop" i.e. looks in the scala jar, not the system properties.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
def tmpDir: String

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

The version of the Scala runtime, or the empty string if unknown.

The version of the Scala runtime, or the empty string if unknown.

Note that the version of the Scala library need not correlate with the version of the Scala compiler used to emit either the library or user code.

For example, Scala 3.0 and 3.1 use the Scala 2.13 library, which is reflected in this version string. For the Dotty version, see dotty.tools.dotc.config.Properties.versionNumberString.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

Concrete fields

Scala manifest attributes.

Scala manifest attributes.

Attributes

Source
Properties.scala

Inherited fields

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

The version of the Scala runtime, if this is a snapshot.

The version of the Scala runtime, if this is a snapshot.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
lazy val isLinux: Boolean

Returns true iff the underlying operating system is a Linux distribution.

Returns true iff the underlying operating system is a Linux distribution.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
lazy val isMac: Boolean

Returns true iff the underlying operating system is a version of Apple Mac OSX.

Returns true iff the underlying operating system is a version of Apple Mac OSX.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
lazy val isWin: Boolean

Returns true iff the underlying operating system is a version of Microsoft Windows.

Returns true iff the underlying operating system is a version of Microsoft Windows.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
protected val propFilename: String

The name of the properties file

The name of the properties file

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

The version of the Scala runtime, if this is not a snapshot.

The version of the Scala runtime, if this is not a snapshot.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala
lazy protected val scalaProps: Properties

The loaded properties

The loaded properties

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala

A verbose alternative to versionNumberString.

A verbose alternative to versionNumberString.

Attributes

Inherited from:
PropertiesTrait (hidden)
Source
Properties.scala