Properties

scala.util.Properties
object Properties

Loads library.properties from the jar.

Attributes

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

Members list

Value members

Inherited methods

Attributes

Inherited from:
PropertiesTrait (hidden)

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)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

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)

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)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

The default end of line character.

The default end of line character.

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)
def osName: String

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)
def propOrNull(name: String): String | Null

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

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.

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)

Attributes

Inherited from:
PropertiesTrait (hidden)
def tmpDir: String

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

Attributes

Inherited from:
PropertiesTrait (hidden)

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)

Concrete fields

Scala manifest attributes.

Scala manifest attributes.

Attributes

Inherited fields

Attributes

Inherited from:
PropertiesTrait (hidden)

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)
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)
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)
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)
protected val propFilename: String

The name of the properties file

The name of the properties file

Attributes

Inherited from:
PropertiesTrait (hidden)

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)
lazy protected val scalaProps: Properties

The loaded properties

The loaded properties

Attributes

Inherited from:
PropertiesTrait (hidden)

A verbose alternative to versionNumberString.

A verbose alternative to versionNumberString.

Attributes

Inherited from:
PropertiesTrait (hidden)