forked from james75/SolrMongoImporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
57 lines (45 loc) · 1.51 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"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="solrmongoimporter" default="jar">
<property file="build.properties"/>
<target name="clean">
<delete dir="build"/>
<ivy:cleancache />
</target>
<target name="init">
<mkdir dir="build"/>
<ivy:resolve />
<ivy:retrieve />
</target>
<path id="build.classpath">
<fileset dir=".">
<include name="lib/*.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" includes="**/*.jar"/>
</path>
<target name="compile" depends="init">
<mkdir dir="build"/>
<javac srcdir="src" destdir="build" classpathref="jars" debug="on"/>
</target>
<target name="jar" depends="compile">
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<jar basedir="build" destfile="dest/solr-mongo-importer-${version.num}.jar">
<manifest>
<attribute name="Implementation-Version" value="${version.num}-b${build.number}" />
<attribute name="Built-Date" value="${TODAY}" />
</manifest>
</jar>
</target>
</project>