-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
50 lines (50 loc) · 2.05 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xdb="http://exist-db.org/ant" default="all" name="Public Application Repository">
<property file="local.build.properties"/>
<property file="build.properties"/>
<property name="build" value="./build"/>
<!-- <property name="server.url" value="http://exist-db.org/exist/apps/public-repo/publish"/> -->
<condition property="git.commit" value="${git.commit}" else="">
<isset property="git.commit"/>
</condition>
<target name="all" depends="xar"/>
<target name="rebuild" depends="clean,all"/>
<target name="clean">
<delete dir="${build}"/>
<delete file="expath-pkg.xml"/>
</target>
<target name="xar">
<mkdir dir="${build}"/>
<copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true">
<filterset>
<filter token="project.name" value="${project.name}"/>
<filter token="project.version" value="${project.version}"/>
</filterset>
</copy>
<zip destfile="${build}/${project.name}-${project.version}${git.commit}.xar">
<fileset dir=".">
<include name="*.*"/>
<exclude name=".*"/>
<include name="modules/**"/>
<include name="resources/**"/>
<include name="templates/**"/>
<include name="meta/*"/>
<exclude name="${build}/*"/>
<exclude name="*.tmpl"/>
<exclude name="*.properties"/>
<exclude name="public/*"/>
</fileset>
</zip>
</target>
<!--
<target name="upload">
<input message="Enter password:" addproperty="server.pass" defaultvalue="">
<handler type="secure"/>
</input>
<property name="xar" value="${project.name}-${project.version}${git.commit}.xar"/>
<exec executable="curl">
<arg line="-T ${build}/${xar} -u repo:${server.pass} ${server.url}/${xar}"/>
</exec>
</target>
-->
</project>