-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
57 lines (48 loc) · 1.97 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: build.xml 6691 2008-02-28 18:02:23Z cwilper $ -->
<project name="FedoraGenericSearch" default="pluginbuild" basedir=".">
<description>Fedora Generic Search Service plugin for the Lucene engine</description>
<property name="escidoc.version" value="-trunk"/>
<property environment="env"/>
<property name="genericsearch.version" value="2.2"/>
<loadproperties srcFile="lib.properties" />
<property name="build.basedir" location="../FgsBuild"/>
<property name="compile.dir" location="bin"/>
<property name="build.dir" location="../FgsBuild/webapp" />
<property name="plugin.dir" location="${build.dir}/WEB-INF/classes" />
<property name="project.dir" location="../FgsBuild/eclipseprojects/FgsLucene${genericsearch.version}" />
<path id="compile.classpath">
<pathelement path="../fedora-genericsearch-2.2${escidoc.version}/bin"/>
<pathelement path="${lib.fedora-client}"/>
<pathelement path="${lib.log4j}"/>
<pathelement path="${lib.fedora}"/>
<pathelement path="${lib.lucene}"/>
<pathelement path="${lib.lucene-highlighter}"/>
</path>
<target name="clean"
description="removes build-generated artifacts">
<delete dir="${compile.dir}"/>
</target>
<target name="compile">
<mkdir dir="${compile.dir}"/>
<javac classpathref="compile.classpath"
debug="true"
destdir="${compile.dir}"
srcdir="src/java"
optimize="off"/>
</target>
<target name="pluginbuild"
description="build the plugin"
depends="compile">
<delete dir="${plugin.dir}/dk/defxws/fgslucene" />
<mkdir dir="${plugin.dir}/dk/defxws/fgslucene" />
<copy todir="${plugin.dir}">
<fileset dir="bin"/>
</copy>
<delete dir="${project.dir}" />
<mkdir dir="${project.dir}" />
<copy todir="${project.dir}">
<fileset dir="."/>
</copy>
</target>
</project>