forked from james75/SolrMongoImporter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
47 lines (35 loc) · 1.21 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="solrmongoimporter" default="jar">
<property file="build.properties"/>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="init" depends="clean">
<mkdir dir="${build.dir}"/>
<ivy:retrieve />
</target>
<path id="build.classpath">
<fileset dir="${basedir}/">
<include name="${lib.dir}/*.jar"/>
</fileset>
</path>
<pathconvert property="mf.classpath" pathsep=" ">
<path refid="build.classpath"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<path id="jars">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="compile" depends="init">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="jars" debug="on"/>
</target>
<target name="jar" depends="compile">
<jar basedir="${build.dir}" destfile="${store.dir}/solr-mongo-importer.jar" />
</target>
</project>