-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
54 lines (54 loc) · 2.43 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xdb="http://exist-db.org/ant" default="deploy-local" name="papyri">
<property file="local.properties"/>
<path id="classpath.core">
<fileset dir="${exist-home}/lib/core">
<include name="*.jar"/>
</fileset>
<pathelement path="${exist-home}/exist.jar"/>
<pathelement path="${exist-home}/exist-optional.jar"/>
</path>
<typedef resource="org/exist/ant/antlib.xml" uri="http://exist-db.org/ant">
<classpath refid="classpath.core"/>
</typedef>
<target name="deploy-local">
<echo message="Deploying app to local eXist-db."/>
<property file="deploy-local.properties"/>
<xdb:store uri="${uri}" createcollection="true" createsubcollections="true" user="${user}" password="${password}">
<fileset dir=".">
<include name="**/*.*"/>
<exclude name="build/"/>
<exclude name="modules/admin.xqm"/>
<exclude name="**/*.properties"/>
<exclude name="**/*.tmpl"/>
<exclude name="**/*.md"/>
<exclude name="**/.gitignore"/>
<exclude name="*.xpr"/>
<exclude name="data/**/*" />
</fileset>
</xdb:store>
</target>
<target name="deploy-remote">
<echo message="Deploying app to remote eXist-db:"/>
<!--<input message="Do you really want to deploy the application (y/n)?" validargs="y,n" addproperty="do.delete"/>
<condition property="do.abort">
<equals arg1="n" arg2="${do.delete}"/>
</condition>
<fail if="do.abort">Deployment aborted by user.</fail>-->
<property file="deploy-remote.properties"/>
<xdb:store uri="${uri}" createcollection="true" createsubcollections="true" user="${user}" password="${password}">
<fileset dir=".">
<include name="**/*.*"/>
<exclude name="build/"/>
<exclude name="modules/admin.xqm"/>
<exclude name="**/*.properties"/>
<exclude name="**/*.tmpl"/>
<exclude name="**/*.md"/>
<exclude name="**/.gitignore"/>
<exclude name="*.xpr"/>
<exclude name="data/**/*" />
</fileset>
</xdb:store>
<xdb:xquery uri="${uri}" queryfile="post-install.xql" user="${user}" password="${password}"/>
</target>
</project>