-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
48 lines (48 loc) · 2.5 KB
/
build.xml
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
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="org.hl7.fhir.tools" default="local-publish-ig">
<property name="guidename" value="opioid-cds.xml"/>
<property name="spec" value="http://hl7.org/fhir/R4/"/>
<!-- Where the main FHIR build publish folder is -->
<property name="dir.publish" value="../../publish"/>
<!-- Working area -->
<property name="dir.input" value="input"/>
<property name="dir.pages" value="page"/>
<property name="dir.pageassets" value="${dir.pages}/assets"/>
<property name="dir.pagedata" value="${dir.pages}/_data"/>
<property name="dir.pageincludes" value="${dir.pages}/_includes"/>
<property name="dir.qa" value="qa"/>
<property name="dir.temp" value="temp"/>
<property name="dir.txcache" value="txcache"/>
<!-- Where the generated site goes -->
<property name="dir.output" value="output"/>
<!-- -->
<target name="dir-setup" description="--> create directories">
<delete dir="${dir.pages}"/>
<delete dir="${dir.qa}"/>
<delete dir="${dir.temp}"/>
<mkdir dir="${dir.pages}"/>
<mkdir dir="${dir.pageassets}"/>
<mkdir dir="${dir.pagedata}"/>
<mkdir dir="${dir.pageincludes}"/>
<mkdir dir="${dir.qa}"/>
<mkdir dir="${dir.temp}"/>
<mkdir dir="${dir.txcache}"/>
<mkdir dir="${dir.output}"/>
</target>
<target name="local-setup" depends="dir-setup" description="--> grabs igpublisher from local build">
<copy file="${dir.publish}/publisher.jar" todir="${basedir}"/>
</target>
<target name="travis-setup" depends="dir-setup" description="--> Installs Jekyll, grabs publisher from CI website">
<get src="https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar" dest="${basedir}"/>
<!-- <get src="https://github.com/HL7/fhir-ig-publisher/releases/download/1.1.112/publisher.jar" dest="${basedir}"/> -->
</target>
<target name="publish-ig" depends="dir-setup" description="--> Run the IG build">
<!-- <java jar="${basedir}/org.hl7.fhir.publisher.cli-1.1.60-SNAPSHOT.jar" fork="true" failonerror="true" maxmemory="6000m"> -->
<java jar="${basedir}/publisher.jar" fork="true" failonerror="true" maxmemory="6000m">
<jvmarg line="-Dfile.encoding=UTF-8"/>
<arg line="-ig ${basedir}/ig.ini"/>
</java>
</target>
<target name="local-publish-ig" depends="local-setup, publish-ig" description="--> Target to use when building Locally"/>
<target name="travis-publish-ig" depends="travis-setup, publish-ig" description="--> Target to use when building on Travis"/>
</project>