work on comparison functionality

This commit is contained in:
Grahame Grieve 2020-08-06 07:39:29 +10:00
parent 1e7eb4aa1b
commit 56e4f5b756
1 changed files with 7 additions and 5 deletions

View File

@ -161,11 +161,13 @@ public class Validator {
System.out.println("Specified destination (-dest parameter) is not valid: \"" + dest + "\")");
else {
// first, prepare the context
String txLog = Params.getTerminologyServerLog(args);
String v = Common.getVersion(args);
cliContext = Params.loadCliContext(args);
if (cliContext.getSv() == null) {
cliContext.setSv(determineVersion(cliContext));
}
String v = VersionUtilities.getCurrentVersion(cliContext.getSv());
String definitions = VersionUtilities.packageForVersion(v) + "#" + v;
ValidationEngine validator = Common.getValidationEngine(v, definitions, txLog);
Params.checkIGFileReferences(args);
ValidationEngine validator = ValidationService.getValidator(cliContext, definitions);
ComparisonService.doLeftRightComparison(args, dest, validator);
}
} else {