-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.xml
executable file
·57 lines (51 loc) · 2.49 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
<?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/**"/>
<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 file="${build.dir}/resources/pix/ViFE-logo-small-144x144-trans.png" tofile="${build.dir}/icon.png" 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>