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 Details

  • Constructor Details

    • GlobalConfiguration

      public GlobalConfiguration()
  • Method Details

    • getProperty

      public Object getProperty(String property)
    • setProperty

      public void setProperty(String property, Object newValue)