forked from wolfgangmm/ShakespeareDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
20 lines (20 loc) · 937 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="shakes">
<property name="build.dir" value="build"/>
<property name="project.app" value="shakes"/>
<property name="project.version" value="0.2.2"/>
<property name="server.url" value="http://demo.exist-db.org/exist/apps/public-repo/public/"/>
<target name="xar">
<mkdir dir="${build.dir}"/>
<zip basedir="." destfile="${build.dir}/${project.app}-${project.version}.xar" excludes="${build.dir}/*"/>
</target>
<target name="upload" depends="xar">
<input message="Enter password:" addproperty="server.pass" defaultvalue="">
<handler type="secure"/>
</input>
<property name="xar" value="${project.app}-${project.version}.xar"/>
<exec executable="curl">
<arg line="-T ${build.dir}/${xar} -u admin:${server.pass} ${server.url}/${xar}"/>
</exec>
</target>
</project>