This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
50 lines (38 loc) · 1.85 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
==============================================================================
=== Build file to allow ant (http://jakarta.apache.org/ant/) to be used
=== to build schema plugins.
==============================================================================
-->
<project name="schemaPlugins" default="zip">
<description>
Build file for Geonetwork schema plugins.
</description>
<property name="dist" value="dist"/>
<!-- schema plugins to zip -->
<property name="iso19139.anzlic" value="iso19139.anzlic"/>
<property name="iso19139.mcp" value="iso19139.mcp"/>
<property name="iso19139.mcp-1.4" value="iso19139.mcp-1.4"/>
<property name="anzmeta" value="anzmeta"/>
<property name="iso19135" value="iso19135"/>
<property name="eml-gbif" value="eml-gbif"/>
<!-- =============================================================== -->
<!-- Build schematrons from source, output to schema directories -->
<target name="schematrons">
<ant dir="schematrons" target="clean"/>
<ant dir="schematrons" target="schematron"/>
</target>
<!-- =============================================================== -->
<!-- Create the zip archives in the ${dist} directory -->
<target name="zip" depends="schematrons">
<delete dir ="${dist}"/>
<mkdir dir ="${dist}"/>
<zip destfile="${dist}/${iso19139.anzlic}.zip" basedir="${iso19139.anzlic}" excludes=".svn" />
<zip destfile="${dist}/${iso19135}.zip" basedir="${iso19135}" excludes=".svn" />
<zip destfile="${dist}/${iso19139.mcp}.zip" basedir="${iso19139.mcp}" excludes=".svn" />
<zip destfile="${dist}/${iso19139.mcp-1.4}.zip" basedir="${iso19139.mcp-1.4}" excludes=".svn" />
<zip destfile="${dist}/${anzmeta}.zip" basedir="${anzmeta}" excludes=".svn" />
<zip destfile="${dist}/${eml-gbif}.zip" basedir="${eml-gbif}" excludes=".svn" />
</target>
</project>