-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.xml
executable file
·70 lines (64 loc) · 3.25 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<project name="EdiromOnline" default="xar">
<import file="${basedir}/.sencha/app/build-impl.xml"/>
<import file="${basedir}/testing/ant-tests.xml"/>
<property name="project.version" value="1.0.0-beta.7"/>
<property name="project.app" value="Edirom-Online"/>
<property name="project.title" value="Edirom Online"/>
<property name="repo.target" value="${project.app}"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="build-xar"/>
<property name="temp.dir.name" value="temp"/>
<property name="temp.dir" value="${build.dir}/${temp.dir.name}"/>
<tstamp/>
<target name="build-plus">
<copy todir="${build.dir}" preservelastmodified="true">
<fileset dir="${basedir}/add">
<include name="*"/>
<include name="data/locale/"/>
<include name="data/prefs/"/>
<include name="data/xql/"/>
<include name="data/xqm/"/>
<include name="data/xslt/*"/>
<include name="data/xslt/i18n/"/>
<include name="data/xslt/tei/profiles/**"/>
<include name="data/xslt/tei/Stylesheets/catalog.xml"/>
<include name="data/xslt/tei/Stylesheets/i18n.xml"/>
<include name="data/xslt/tei/Stylesheets/html/"/>
<include name="data/xslt/tei/Stylesheets/common/"/>
<include name="data/xslt/tei/Stylesheets/VERSION"/>
<include name="help/**"/>
<exclude name="help/images/">
<!-- exclude help images here because the below filterset
would alter their contents and render them unreadable.
Will be copied in anoter copy statement without filterset. -->
</exclude>
<include name="index/**"/>
</fileset>
<fileset dir="${basedir}">
<include name="testing/**"/>
</fileset>
<filterset begintoken="@" endtoken="@">
<filter token="project.version" value="${project.version}"/>
<filter token="project.app" value="${project.app}"/>
<filter token="project.title" value="${project.title}"/>
<filter token="repo.target" value="${repo.target}"/>
</filterset>
</copy>
<copy todir="${build.dir}" preservelastmodified="true">
<!-- copy help images in separate copy statement because above filterset
would modify their contents and render them unreadable -->
<fileset dir="${basedir}/add">
<include name="help/images/"/>
</fileset>
</copy>
<copy file="${build.dir}/resources/pix/ViFE-logo-small-144x144-trans.png" tofile="${build.dir}/icon.png" overwrite="true"/>
<copy file="${basedir}/CITATION.cff" tofile="${build.dir}/resources/CITATION.cff" overwrite="true"/>
</target>
<target name="xar">
<mkdir dir="${dist.dir}"/>
<zip basedir="${build.dir}" destfile="${dist.dir}/${project.app}-${project.version}-${DSTAMP}-${TSTAMP}.xar">
<exclude name="${temp.dir.name}/**"/>
</zip>
</target>
</project>