-
Notifications
You must be signed in to change notification settings - Fork 19
OtherFeatures
paradigmatic edited this page Jul 11, 2011
·
3 revisions
Configurations can be created from the current system properties or the environement variables:
val sysProp = Configuration.systemProperties
val sep = sysProp[String]("line.separator") // sep == "\n"
val env = Configuration.environment
val homeDir = env("HOME", "/tmp") // home == "/home/paradigmatic"
A configuration can be exported to a nice string, by using the method format
:
val env = Configuration.environment
println( env format myFmt )
where myFmt
is an instance of type ExportFormat
. This argument is optional, if ommitted BlockFormat
will be used by default.