hapi-fhir/sync_dstu3.sh

38 lines
5.8 KiB
Bash
Raw Permalink Normal View History

2016-04-03 18:14:31 -04:00
# From /Users/james/workspace/fhirbuild/trunk/build/implementations/java
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/validation/InstanceValidator.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/validation/InstanceValidator.java
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/validation/IResourceValidator.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/validation/IResourceValidator.java
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/utils/ProfileUtilities.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/utils/ProfileUtilities.java
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/utils/IWorkerContext.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/utils/IWorkerContext.java
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/utils/FHIRPathEngine.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/utils/FHIRPathEngine.java
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/terminologies/ValueSet*.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/terminologies/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/terminologies/CodeSystemUtilities.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/terminologies/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.utilities/src/org/hl7/fhir/utilities/xml/XMLUtil.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/utilities/xml/XMLUtil.java
2016-04-03 18:14:31 -04:00
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/Element.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/JsonLDParser.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/JsonParser.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/ParserBase.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/Property.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/XmlParser.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/Manager.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/elementmodel/ObjectConverter.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/elementmodel/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.utilities/src/org/hl7/fhir/utilities/xml/SchematronWriter.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/utilities/xml/
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.utilities/src/org/hl7/fhir/utilities/TextStreamWriter.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/utilities/
2016-04-03 18:14:31 -04:00
# From /Users/james/workspace/fhirbuild/trunk/build
rm ~/workspace/hapi-fhir/hapi-tinder-plugin/src/main/resources/res/dstu3/*
cp ~/workspace/fhirbuild/trunk/build/source/*/*-spreadsheet.xml ~/workspace/hapi-fhir/hapi-tinder-plugin/src/main/resources/res/dstu3/
2016-04-03 18:14:31 -04:00
rm ~/workspace/hapi-fhir/hapi-tinder-plugin/src/main/resources/res/dstu3/*extensions*
rm ~/workspace/hapi-fhir/hapi-tinder-plugin/src/main/resources/res/dstu3/*-profile-*
# Copy definitions
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/model/Base.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Base.java
cp ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/model/ResourceType.java ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ResourceType.java
for i in $(grep -l "@ResourceDef" ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/*.java); do rm $i; done
for i in $(grep -l "@ResourceDef" ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/model/*.java); do cp $i ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/; done
for i in $(grep -l "@DatatypeDef" ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/*.java); do rm $i; done
for i in $(grep -l "@DatatypeDef" ~/workspace/fhirbuild/trunk/build/implementations/java/org.hl7.fhir.dstu3/src/org/hl7/fhir/dstu3/model/*.java); do cp $i ~/workspace/hapi-fhir/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/; done