use of org.iobserve.stages.general.ConfigurationException in project iobserve-analysis by research-iobserve.
the class EvaluationMain method checkParameters.
@Override
protected boolean checkParameters(final JCommander commander) throws ConfigurationException {
try {
if (!this.baselineModelLocation.canRead()) {
EvaluationMain.LOGGER.error("reading baseline failed: {}", this.baselineModelLocation.getCanonicalPath());
commander.usage();
return false;
}
if (!this.testModelLocation.canRead()) {
EvaluationMain.LOGGER.error("reading test model failed: {}", this.testModelLocation.getCanonicalPath());
commander.usage();
return false;
}
return true;
} catch (final IOException e) {
throw new ConfigurationException(e);
}
}
Aggregations