-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
sync_dstu3.sh
37 lines (31 loc) · 5.77 KB
/
sync_dstu3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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
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/
# 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/
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