Stream: committers
Topic: Building the IG publisher
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
Sean McIlvenna (Oct 03 2016 at 17:50):
A lot of "Cannot find symbol" errors...
Sean McIlvenna (Oct 03 2016 at 17:50):
Going to delete the repo and re-get. maybe that will help
Sean McIlvenna (Oct 03 2016 at 18:03):
ok.. that didn't make a difference
Sean McIlvenna (Oct 03 2016 at 18:03):
still getting a ton of errors
Sean McIlvenna (Oct 03 2016 at 18:04):
Grahame Grieve (Oct 03 2016 at 19:43):
obviously something I did last night completely doesn't work... but not obvious quite what
Sean McIlvenna (Oct 03 2016 at 22:14):
:) thinking the "build error" thread solved the problem
Sean McIlvenna (Oct 03 2016 at 22:15):
a different question, though...
Sean McIlvenna (Oct 03 2016 at 22:15):
how would I go about building JUST the "ig publisher" jar
Sean McIlvenna (Oct 03 2016 at 22:15):
?
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
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?
Sean McIlvenna (Oct 03 2016 at 22:16):
or, ideally, is there a quicker way to compile just the ig publisher jar via eclipse?
Grahame Grieve (Oct 03 2016 at 22:17):
you can't
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
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?
Grahame Grieve (Oct 03 2016 at 22:25):
I don't understand that
Grahame Grieve (Oct 03 2016 at 22:26):
what are you trying to do?
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
Sean McIlvenna (Oct 03 2016 at 22:29):
mainly logging/tracing
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
Grahame Grieve (Oct 03 2016 at 22:30):
then you should use eclipse, and run the IG publisher directly
Grahame Grieve (Oct 03 2016 at 22:30):
no need to build a jar in this case.
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
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
Grahame Grieve (Oct 03 2016 at 22:35):
yes.
Sean McIlvenna (Oct 03 2016 at 22:35):
I'll give that a shot, thanks
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
Sean McIlvenna (Oct 03 2016 at 22:49):
then it could be an environment-specific property so we don't have to modify code
Grahame Grieve (Oct 03 2016 at 22:52):
no we just have to modify our environments. I don't think that's better
Sean McIlvenna (Oct 03 2016 at 22:56):
are there instructions on using fhir-build with eclipse?
Sean McIlvenna (Oct 03 2016 at 22:56):
I think I found it: http://wiki.hl7.org/index.php?title=FHIR_Java_Setup
?
Grahame Grieve (Oct 03 2016 at 23:00):
well that looks old and incomplete
Grahame Grieve (Oct 03 2016 at 23:01):
not that I can find anything better
Sean McIlvenna (Oct 04 2016 at 15:35):
Yah, you are right...
Sean McIlvenna (Oct 04 2016 at 15:36):
Some of the projects it says to import don't exist anymore
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
Grahame Grieve (Oct 04 2016 at 19:33):
that's the projects you need
Grahame Grieve (Oct 04 2016 at 19:33):
can you update that page?
yiwang (Oct 04 2016 at 20:18):
(deleted)
Last updated: Apr 12 2022 at 19:14 UTC