net.thucydides.core.util
Class PropertiesFileLocalPreferences

Package class diagram package PropertiesFileLocalPreferences
java.lang.Object
  extended by net.thucydides.core.util.PropertiesFileLocalPreferences
All Implemented Interfaces:
LocalPreferences

public class PropertiesFileLocalPreferences
extends 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.


Constructor Summary
PropertiesFileLocalPreferences(EnvironmentVariables environmentVariables)
           
 
Method Summary
 File getHomeDirectory()
           
 void loadPreferences()
           
 void setHomeDirectory(File homeDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesFileLocalPreferences

@Inject
public PropertiesFileLocalPreferences(EnvironmentVariables environmentVariables)
Method Detail

getHomeDirectory

public File getHomeDirectory()

setHomeDirectory

public void setHomeDirectory(File homeDirectory)

loadPreferences

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


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.