-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
36 lines (32 loc) · 1.15 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="edweb" xmlns:xdb="http://exist-db.org/ant" >
<property name="build.dir" value="build"/>
<property file="project.properties"/>
<import file="common-build-targets.xml"/>
<import file="build-xar.xml"/>
<path id="classpath.core">
<fileset dir="${exist.dir}/lib/core">
<include name="*.jar"/>
</fileset>
<pathelement path="${exist.dir}/exist.jar"/>
<pathelement path="${exist.dir}/exist-optional.jar"/>
</path>
<typedef resource="org/exist/ant/antlib.xml" uri="http://exist-db.org/ant">
<classpath refid="classpath.core"/>
</typedef>
<target name="test-xquery" description="Test the XQuery in temp/test.xql">
<echo message="Executing script ..."/>
<xdb:xquery
uri="${server.local.uri}/db"
ssl="false"
user="${server.local.user}"
password="${server.local.password}"
queryfile="temp/test.xql"
outputproperty="result"
/>
<echo>
Result:
${result}
</echo>
</target>
</project>