Improvement: allow multi config file support

This commit is contained in:
Laurent Clouet
2018-12-18 22:53:01 +01:00
parent dba0b9160b
commit 39b9830879
4 changed files with 26 additions and 16 deletions

View File

@@ -40,6 +40,7 @@ public class Configuration {
CPU_GPU, CPU, GPU
} // accept job for ...
private String configFilePath;
public File workingDirectory;
public File storageDirectory; // for permanent storage (binary archive)
public boolean userHasSpecifiedACacheDir;
@@ -64,6 +65,7 @@ public class Configuration {
private String hostname;
public Configuration(File cache_dir_, String login_, String password_) {
this.configFilePath = null;
this.login = login_;
this.password = password_;
this.proxy = null;
@@ -93,6 +95,14 @@ public class Configuration {
public String toString() {
return String.format("Configuration (workingDirectory '%s')", this.workingDirectory.getAbsolutePath());
}
public String getConfigFilePath() {
return this.configFilePath;
}
public void setConfigPath(String val) {
this.configFilePath = val;
}
public String login() {
return this.login;