-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.xml
98 lines (84 loc) · 3.09 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0"?>
<project basedir="." xmlns:xdb="http://exist-db.org/ant">
<description>Perseus Catalog ant tasks</description>
<property name="eXist_home" value="/opt/local/exist" />
<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>
<property name="collectionName" value="PerseusCatalogData"/>
<property name="xmldb.host" value="localhost" />
<property name="xmldb.port" value="8080" />
<property name="xmldb.user" value="perseus" />
<property name="xmldb.passwd" value="perseus" />
<property name="xmldb.url" value="xmldb:exist://${xmldb.host}:${xmldb.port}/exist/xmlrpc/db" />
<property name="xmldb.approot" value="${xmldb.url}/${collectionName}" />
<target name="load-conf" description="load the Perseus Catalog metadata collection.xconf record">
<xdb:store uri="${xmldb.url}/system/config/db/${collectionName}"
user="${xmldb.user}"
password="${xmldb.passwd}"
createcollection="true">
<fileset dir=".">
<include name="collection.xconf" />
</fileset>
</xdb:store>
</target>
<target name="load-mods" description="load MODS records"
depends="load-arabicLit, load-greekLit, load-latinLit"/>
<target name="load-arabicLit" description="load MODS records for Arabic Literature">
<xdb:store uri="${xmldb.approot}/mods/arabicLit"
user="${xmldb.user}"
password="${xmldb.passwd}"
createcollection="true">
<fileset dir="./mods/arabicLit">
<include name="**/*.xml"/>
</fileset>
</xdb:store>
</target>
<target name="load-greekLit" description="load MODS records for Greek Literature">
<xdb:store uri="${xmldb.approot}/mods/greekLit"
user="${xmldb.user}"
password="${xmldb.passwd}"
createcollection="true">
<fileset dir="./mods/greekLit">
<include name="**/*.xml"/>
</fileset>
</xdb:store>
</target>
<target name="load-latinLit" description="load MODS records for Latin Literature">
<xdb:store uri="${xmldb.approot}/mods/latinLit"
user="${xmldb.user}"
password="${xmldb.passwd}"
createcollection="true">
<fileset dir="./mods/latinLit">
<include name="**/*.xml"/>
</fileset>
</xdb:store>
</target>
<target name="load-mads" description="load MADS records">
<xdb:store uri="${xmldb.approot}/mads"
user="${xmldb.user}"
password="${xmldb.passwd}"
createcollection="true">
<fileset dir="./mads">
<include name="**/*.xml"/>
</fileset>
</xdb:store>
</target>
<target name="load-cite" description="load cite records">
<xdb:store uri="${xmldb.approot}/cite"
user="${xmldb.user}"
password="${xmldb.passwd}"
createcollection="true">
<fileset dir="./citecoll">
<include name="**/*.xml"/>
</fileset>
</xdb:store>
</target>
</project>