-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
22 lines (20 loc) · 1.26 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="edirom-sourceImageCartographer">
<property name="project.version" value="0.1.0-beta"/>
<property name="project.app" value="edirom-sourceImageCartographer"/>
<property name="build.dir" value="build"/>
<property name="digilib.server" value="" />
<target name="clean">
<delete dir="${build.dir}" includeemptydirs="true"/>
</target>
<target name="xar">
<mkdir dir="${build.dir}"/>
<copy todir="${build.dir}" encoding="UTF-8" overwrite="true">
<fileset dir="." excludes="${build.dir}, ${build.dir}/**, ${build.dir}-xar, ${build.dir}-xar/**, build.xml, README.md"/>
</copy>
<replace file="${build.dir}/tools/main/js/DigilibViewer.js" token="DIGILIB-SERVER" value="${digilib.server}" preservelastmodified="true" summary="true" encoding="UTF-8"/>
<replace file="${build.dir}/expath-pkg.xml" token="VERSION" value="${project.version}" preservelastmodified="true" summary="true" encoding="UTF-8"/>
<mkdir dir="${build.dir}-xar"/>
<zip basedir="${build.dir}" destfile="${build.dir}-xar/${project.app}-${project.version}.xar" excludes="${build.dir},${build.dir}/**,${build.dir}-xar,${build.dir}-xar/**"/>
</target>
</project>