-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
62 lines (58 loc) · 2.17 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
<?xml version="1.0"?>
<!--
======================================================================
Fri Dec 4 19:12:18 CET 2009
solr_pager
Provides simple and fast paging for SOLR results
Samuel Behan <samuel_._behan_(at)_dob_._sk>
======================================================================
-->
<project name="solr_pager" default="default">
<description>
Provides simple and fast paging mechanism for SOLR results
</description>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="libs"/>
<property name="solr.dir" value="${lib.dir}/solr"/>
<property name="lucene.dir" value="${lib.dir}/lucene"/>
<path id="lib.path">
<fileset dir="${solr.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${lucene.dir}">
<include name="*.jar"/>
</fileset>
</path>
<!-- =================================
target: default
================================= -->
<target name="default" depends="clean,compile,jar" description="--> Provide simple paging mechanism">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<!-- =================================
target: compile
================================= -->
<target name="compile" depends="depends" description="--> Compile solr_pager sources">
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="lib.path" debug="on" includeantruntime="false">
<!-- <compilerarg value="-Xlint:unchecked"/> -->
</javac>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: jar
- - - - - - - - - - - - - - - - - -->
<target name="jar">
<jar destfile="${dist.dir}/${ant.project.name}.jar" basedir="${build.dir}"/>
</target>
</project>