Class PropertiesFileLocalPreferences

java.lang.Object
net.thucydides.core.util.PropertiesFileLocalPreferences
All Implemented Interfaces:
LocalPreferences

public class PropertiesFileLocalPreferences
extends java.lang.Object
implements LocalPreferences
Loads Thucydides preferences from a local file called thucydides.properties. Thucydides options can be loaded from the thucydides.properties file in the home directory, in the working directory, or on the classpath. There can be multiple thucydides.properties files, in which case values from the file in the working directory override values on the classpath, and values in the home directory override values in the working directory. Values can always be overridden on the command line.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String TYPESAFE_CONFIG_FILE  
  • Constructor Summary

    Constructors
    Constructor Description
    PropertiesFileLocalPreferences​(EnvironmentVariables environmentVariables)  
  • Method Summary

    Modifier and Type Method Description
    java.io.File getHomeDirectory()  
    void loadPreferences()  
    void setHomeDirectory​(java.io.File homeDirectory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPESAFE_CONFIG_FILE

      public static final java.lang.String TYPESAFE_CONFIG_FILE
      See Also:
      Constant Field Values
  • Constructor Details

    • PropertiesFileLocalPreferences

      @Inject public PropertiesFileLocalPreferences​(EnvironmentVariables environmentVariables)
  • Method Details

    • getHomeDirectory

      public java.io.File getHomeDirectory()
    • setHomeDirectory

      public void setHomeDirectory​(java.io.File homeDirectory)
    • loadPreferences

      public void loadPreferences() throws java.io.IOException
      Specified by:
      loadPreferences in interface LocalPreferences
      Throws:
      java.io.IOException