trait PropertiesTrait

Constructors

Members

val copyrightString : String
[+] val developmentVersion : Option [ String ]

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 ident...

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.

protected val propFilename : String

The name of the properties file

The name of the properties file

[+] val releaseVersion : Option [ String ]

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...

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").

@sharable protected lazy val scalaProps : Properties

The loaded properties

The loaded properties

val versionString : String

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.

def clearProp ( name: String ) : String
def encodingString : String

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"

def envOrElse ( name: String , alt: String ) : String
def envOrNone ( name: String ) : Option [ String ]
[+] def isJavaAtLeast ( version: String ) : Boolean

Can the java version be determined to be at least as high as the argument? Hard to properly future proof this but at the rate 1.7 is going we can leave

Can the java version be determined to be at least as high as the argument? Hard to properly future proof this but at the rate 1.7 is going we can leave the issue for our cyborg grandchildren to solve.

def isMac : Boolean
def isWin : Boolean

Some derived values.

Some derived values.

def javaClassPath : String

Various well-known properties.

Various well-known properties.

def javaHome : String
def javaVendor : String
def javaVersion : String
def javaVmInfo : String
def javaVmName : String
def javaVmVendor : String
def javaVmVersion : String
def jdkHome : String
def lineSeparator : String

The default end of line character.

The default end of line character.

def main ( args: Array [ String ] ) : Unit
def osName : String
protected def pickJarBasedOn : Class [ Nothing <: Any ]
protected def propCategory : String
def propIsSet ( name: String ) : Boolean
def propIsSetTo ( name: String , value: String ) : Boolean
def propOrElse ( name: String , alt: String ) : String
def propOrEmpty ( name: String ) : String
def propOrFalse ( name: String ) : Boolean
def propOrNone ( name: String ) : Option [ String ]
def propOrNull ( name: String ) : String
private def quietlyDispose ( action: => Unit , disposal: => Unit ) : Unit
def scalaCmd : String
def scalaHome : String
def scalaPropOrElse ( name: String , alt: String ) : String
def scalaPropOrEmpty ( name: String ) : String
def scalaPropOrNone ( name: String ) : Option [ String ]
def scalacCmd : String
def setProp ( name: String , value: String ) : String
[+] def sourceEncoding : String

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 pro...

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.

def sourceReader : String
def tmpDir : String
def userDir : String
def userHome : String
def userName : String
def versionMsg : String
def versionNumberString : String

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

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