fix version loading issue for context

This commit is contained in:
Grahame Grieve 2019-02-07 07:50:58 +11:00
parent cef1965346
commit 43fb41270d
1 changed files with 2 additions and 1 deletions

View File

@ -153,6 +153,7 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon
public static SimpleWorkerContext fromPackage(NpmPackage pi, IContextResourceLoader loader) throws FileNotFoundException, IOException, FHIRException {
SimpleWorkerContext res = new SimpleWorkerContext();
res.setAllowLoadingDuplicates(true);
res.version = pi.getNpm().get("version").getAsString();
res.loadFromPackage(pi, loader);
return res;
}
@ -523,7 +524,7 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon
@Override
public String getVersion() {
return version+"-"+revision;
return version;
}