Stream: committers
Topic: DSTU2 Build
Keith Boone (May 27 2016 at 13:36):
I want to build an IG on top of the DSTU2 build. I checked out from http://gforge.hl7.org/svn/fhir/dstu2-last/build, but when I went to build it failed on Translations.java. After fixing that, it tells me:
[java] java.lang.Exception: Set up is not correct for the DSTU2 fork [java] at org.hl7.fhir.tools.implementations.java.JavaGenerator.generate(JavaGenerator.java:126) [java] at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:1838) [java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:607) [java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:458) [java] ERROR: Unable to process warnings: Set up is not correct for the DSTU2 fork
What am I doing wrong?
Keith Boone (May 27 2016 at 13:43):
Looks like there's some special code in here for DSTU2 build:
public void generate(Definitions definitions, String destDir, String implDir, String version, Date genDate, Logger logger, String svnRevision) throws Exception {
if (!implDir.equals("c:\\work\\org.hl7.fhir.dstu2\\build\\implementations\\java\\"))
throw new Exception("Set up is not correct for the DSTU2 fork");
// the implementation is moved into the main trunk, but maintained from here implDir = "c:\\work\\org.hl7.fhir\\build\\implementations\\java\\";
I'm thinking if I comment that out it might work.
Keith Boone (May 27 2016 at 13:47):
Nope
Keith Boone (May 27 2016 at 15:33):
Nevermind, grabbed it from tagged version.
Grahame Grieve (May 27 2016 at 21:12):
nope. hmm, I'll have to figure out how to do that correctly.
Grahame Grieve (Oct 15 2016 at 22:01):
The DSTU2 build will soon be unsupported, and it's probably soon going to cease to function
Last updated: Apr 12 2022 at 19:14 UTC