public abstract class AbstractCommand {
protected static Configuration overrideConfiguration(Configuration config) throws Exception {
String configFile = System.getProperty("junithelper.configProperties");
if (configFile != null) {
config = new ConfigurationLoader().load(configFile);
}
String extensionConfig = System.getProperty("junithelper.extensionConfigXML");
if (extensionConfig != null) {
config.extConfiguration = new ExtConfigurationLoader().load(extensionConfig);
} else if (new File(config.extensionConfigXML).exists()) {