Properties

object Properties extends PropertiesTrait

Loads library.properties from the jar.

Loads library.properties from the jar.

class Object
trait Matchable
class Any

Value members

Inherited methods

def clearProp(name: String): String
Inherited from
PropertiesTrait

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"

Inherited from
PropertiesTrait
def envOrElse(name: String, alt: => String): String
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
def envOrSome(name: String, alt: => Option[String]): Option[String]
Inherited from
PropertiesTrait
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 Params
version

a specification major version number

Inherited from
PropertiesTrait
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 Params
version

a specification version number (legacy forms acceptable)

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

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

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

Inherited from
PropertiesTrait

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.

Inherited from
PropertiesTrait

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.

Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait

The default end of line character.

The default end of line character.

Inherited from
PropertiesTrait
def main(args: Array[String]): Unit
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
def propIsSet(name: String): Boolean
Inherited from
PropertiesTrait
def propIsSetTo(name: String, value: String): Boolean
Inherited from
PropertiesTrait
def propOrElse(name: String, alt: => String): String
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
def propOrNull(name: String): String
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
def scalaPropOrElse(name: String, alt: => String): String
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
def setProp(name: String, value: String): String
Inherited from
PropertiesTrait

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.

Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait
Inherited from
PropertiesTrait

Either the development or release version if known, otherwise the empty string.

Either the development or release version if known, otherwise the empty string.

Inherited from
PropertiesTrait

Concrete fields

Scala manifest attributes.

Scala manifest attributes.

Inherited fields

The development Scala version, if this is not a final release.

The development Scala version, if this is not a final release. The precise contents are not guaranteed, but it aims to provide a unique repository identifier (currently the svn revision) in the fourth dotted segment if the running version was built from source.

Returns

Some(version) if this is a non-final version, None if this is a final release or the version cannot be read.

Inherited from
PropertiesTrait
protected val propFilename: String

The name of the properties file

The name of the properties file

Inherited from
PropertiesTrait

The numeric portion of the runtime Scala version, if this is a final release.

The numeric portion of the runtime Scala version, if this is a final release. If for instance the versionString says "version 2.9.0.final", this would return Some("2.9.0").

Returns

Some(version) if this is a final release build, None if it is an RC, Beta, etc. or was built from source, or if the version cannot be read.

Inherited from
PropertiesTrait
lazy protected val scalaProps: Properties

The loaded properties

The loaded properties

Inherited from
PropertiesTrait

The version number of the jar this was loaded from plus "version " prefix, or "version (unknown)" if it cannot be determined.

The version number of the jar this was loaded from plus "version " prefix, or "version (unknown)" if it cannot be determined.

Inherited from
PropertiesTrait