SystemProperties

org.specs2.main.SystemProperties
See theSystemProperties companion object

Get systems properties prefixed with specs2

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SystemProperties.type

Members list

Concise view

Value members

Concrete methods

def getIf[T](p: String, value: => T): Option[T]

Attributes

Returns:

the value Some(T) if the property is defined

def getIfElse[T](p: String, v1: => T)(v2: => T): T

Attributes

Returns:

the value Some(T) if the property is defined

def getOrElse(p: String, defaultValue: String): String

Attributes

Returns:

the value of the system property p or a default value

def getProperty(p: String): Option[String]

Attributes

Returns:

the value of the system property p

def getPropertyAs[T](p: String)(using evidence$1: FromString[T]): Option[T]

Attributes

Returns:

the value of the system property p as a given type

def isDefined(p: String): Boolean

Attributes

Returns:

true if a property is defined

Concrete fields

val specs2Prefix: String