net.thucydides.core.util
Class PropertiesFileLocalPreferences
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesFileLocalPreferences
@Inject
public PropertiesFileLocalPreferences(EnvironmentVariables environmentVariables)
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.