FHIR Chat · Building the IG publisher · committers

Stream: committers

Topic: Building the IG publisher


view this post on Zulip Sean McIlvenna (Oct 03 2016 at 17:37):

I'm looking for some guidance on building just the ig publisher with the latest changes... When I run "ant Publisher" I'm getting compilation errors

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 17:50):

A lot of "Cannot find symbol" errors...

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 17:50):

Going to delete the repo and re-get. maybe that will help

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 18:03):

ok.. that didn't make a difference

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 18:03):

still getting a ton of errors

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 18:04):

build-errors.txt

view this post on Zulip Grahame Grieve (Oct 03 2016 at 19:43):

obviously something I did last night completely doesn't work... but not obvious quite what

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:14):

:) thinking the "build error" thread solved the problem

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:15):

a different question, though...

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:15):

how would I go about building JUST the "ig publisher" jar

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:15):

?

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:16):

I've traced the build.xml in the root to a build.xml under the tools/org.hl7.fhir.igtools directory

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:16):

Is that build.xml setup to run only what's needed to compile the ig publisher jar?

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:16):

or, ideally, is there a quicker way to compile just the ig publisher jar via eclipse?

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:17):

you can't

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:18):

you need all the rest of the build to happen, since the jar doesn't just contain java code

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:23):

Once I do the initial build, is there a way to just re-run the ig publisher part?

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:25):

I don't understand that

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:26):

what are you trying to do?

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:29):

I'd like to try to make a few changes to the ig publisher, but don't want to have to re-build everything to test them

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:29):

mainly logging/tracing

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:29):

build takes a long time... so it seems inneficient to implement a small set of changes, rebuild, wait 30 minutes, find out it didn't work, rinse and repeat

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:30):

then you should use eclipse, and run the IG publisher directly

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:30):

no need to build a jar in this case.

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:31):

what you have to do to get that to work is hack line 560 in Publisher.java

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:34):

I see...
context = SimpleWorkerContext.fromPack("C:\\work\\org.hl7.fhir\\build\\publish\\igpack.zip");
Make that equal my own location

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:35):

yes.

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:35):

I'll give that a shot, thanks

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:49):

Maybe consider setting that line to:
context = SimpleWorkerContext.fromPack(System.getProperty("ig_pack_zip"));
or something like that

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:49):

then it could be an environment-specific property so we don't have to modify code

view this post on Zulip Grahame Grieve (Oct 03 2016 at 22:52):

no we just have to modify our environments. I don't think that's better

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:56):

are there instructions on using fhir-build with eclipse?

view this post on Zulip Sean McIlvenna (Oct 03 2016 at 22:56):

I think I found it: http://wiki.hl7.org/index.php?title=FHIR_Java_Setup
?

view this post on Zulip Grahame Grieve (Oct 03 2016 at 23:00):

well that looks old and incomplete

view this post on Zulip Grahame Grieve (Oct 03 2016 at 23:01):

not that I can find anything better

view this post on Zulip Sean McIlvenna (Oct 04 2016 at 15:35):

Yah, you are right...

view this post on Zulip Sean McIlvenna (Oct 04 2016 at 15:36):

Some of the projects it says to import don't exist anymore

view this post on Zulip Grahame Grieve (Oct 04 2016 at 19:33):

/org.hl7.fhir.convertors
/org.hl7.fhir.dstu2
/org.hl7.fhir.dstu2016may
/org.hl7.fhir.dstu3
/org.hl7.fhir.igtools
/org.hl7.fhir.rdf
/org.hl7.fhir.tools
/org.hl7.fhir.ui
/org.hl7.fhir.utilities

view this post on Zulip Grahame Grieve (Oct 04 2016 at 19:33):

that's the projects you need

view this post on Zulip Grahame Grieve (Oct 04 2016 at 19:33):

can you update that page?

view this post on Zulip yiwang (Oct 04 2016 at 20:18):

(deleted)


Last updated: Apr 12 2022 at 19:14 UTC