-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
19 lines (19 loc) · 855 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="blogxq">
<property name="project.version" value="0.1"/>
<property name="build.dir" value="build"/>
<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}/blogxq-${project.version}.xar" excludes="${build.dir}/*"/>
</target>
<target name="upload">
<property name="xar" value="blogxq-{$project.version}.xar"/>
<input message="Enter password:" addproperty="server.pass" defaultvalue="">
<handler type="secure"/>
</input>
<exec executable="curl">
<arg line="-T ${build.dir}/${xar} -u admin:${server.pass} ${server.url}/${xar}"/>
</exec>
</target>
</project>