forked from javasoze/bobo
/
build.xml
75 lines (66 loc) · 2.57 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
63
64
65
66
67
68
69
70
71
72
73
74
75
<project name="bobo-browse" default="dist">
<property name="bobo.root" location="../"/>
<property name="src" value="src"/>
<property name="lib.master" value="${bobo.root}/lib/master"/>
<property name="dist" value="${bobo.root}/dist"/>
<property name="build" value="build"/>
<property name="doc" value="${bobo.root}/doc"/>
<property file="${bobo.root}/version.properties" />
<path id="project.class.path">
<fileset dir="${lib.master}">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build}"/>
</target>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac debug="true" destdir="${build}">
<src path="${src}"/>
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="javadoc">
<javadoc packagenames="com.browseengine.bobo.api.*,
com.browseengine.bobo.facets.*,
com.browseengine.bobo.facets.data.*,
com.browseengine.bobo.facets.filter.*,
com.browseengine.bobo.facets.impl.*,
com.browseengine.bobo.query.*,
com.browseengine.bobo.search.*,
com.browseengine.bobo.docidset.*"
sourcepath="${src}"
destdir="${doc}"
author="true"
version="true"
use="true"
public="true"
classpathref="project.class.path"
windowtitle="Bobo Browse API">
<link href="http://lucene.apache.org/java/2_4_1/api/"/>
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
</javadoc>
</target>
<target name="gitversion" description="--> create git version information">
<exec executable="git" outputproperty="gitversion">
<arg value="log"/>
<arg value="-1"/>
<arg value="--pretty=oneline"/>
</exec>
</target>
<target name="dist" depends="compile,gitversion">
<mkdir dir="${dist}" />
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Git-Version" value="${gitversion}"/>
<attribute name="Built-Date" value="${TODAY}"/>
</manifest>
<jar destfile="${dist}/bobo-browse-${version}.jar" manifest="MANIFEST.MF" basedir="${build}" />
</target>
</project>