Package org.savantbuild.parser.groovy
Class GlobalConfiguration
java.lang.Object
groovy.lang.GroovyObjectSupport
org.savantbuild.parser.groovy.GlobalConfiguration
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class GlobalConfiguration
extends groovy.lang.GroovyObjectSupport
This class loads an optional global configuration file named config.properties in the XDG config directory
($XDG_CONFIG_HOME/savant/ or ~/.config/savant/). This is a dynamic Groovy object that fails if lookups fail. This
ensures that values from the configuration that the project depends on exist.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String property) voidsetProperty(String property, Object newValue) Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
invokeMethod
-
Field Details
-
properties
-
-
Constructor Details
-
GlobalConfiguration
public GlobalConfiguration()
-
-
Method Details
-
getProperty
-
setProperty
-