-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·30 lines (30 loc) · 1.6 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="all" name="cbdb-data">
<xmlproperty file="expath-pkg.xml"/>
<property name="project.version" value="${package(version)}"/>
<property name="project.app" value="cbdb-data"/>
<property name="teiTitle" value="cbdbTEI"/>
<property name="cbdbVersion" value="20150202"/>
<property name="build.dir" value="build"/>
<target name="init" description="create build directory">
<tstamp/>
<mkdir dir="${build.dir}"/>
</target>
<!-- Dev build (includes everything) -->
<target name="dev" depends="init" description="compile all source files">
<zip basedir="." destfile="${build.dir}/${project.app}-${project.version}-dev.xar" excludes="${build.dir}/*, src/xml/*.md, .existdb.json, .yo-rc.json, README.md, **/.git*/**, .DS_Store, *.xpr"/>
</target>
<!-- Github Release -->
<target name="deploy" depends="init" description="compile release build">
<zip basedir="." destfile="${build.dir}/${project.app}-${project.version}.xar" excludes="${build.dir}/*, src/xml/*.xml, .existdb.json, .yo-rc.json, README.md, **/.git*/**, .DS_Store, *.xpr"/>
</target>
<target name="src" depends="init" description="source files in xml">
<zip basedir="." destfile="${build.dir}/${cbdbVersion}-src.zip" includes="src/xml/*.xml"/>
</target>
<target name="tei" depends="init" description="just the TEI files">
<zip basedir="." destfile="${build.dir}/${teiTitle}-${project.version}.zip" includes="target/**"/>
</target>
<target name="all" depends="dev, deploy, src, tei">
<tstamp/>
</target>
</project>