-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
74 lines (59 loc) · 2.11 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="jars"
name="stinkyteddy">
<!-- settable properties -->
<property file="build.properties"/>
<property name="project.home" value="."/>
<property name="jar.name" value="stinkyteddy.jar"/>
<!-- internal properties -->
<property name="src.dir" value="${project.home}/src"/>
<property name="bin.dir" value="${project.home}/bin"/>
<property name="lib.dir" value="${project.home}/lib"/>
<property name="dist.dir" value="${project.home}/dist"/>
<property name="web.dir" value="${project.home}/WebContent"/>
<!-- get system variables -->
<property environment="env"/>
<!-- build path -->
<path id="build.path">
<pathelement path="${classpath}"/>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- targets -->
<target name="init">
<tstamp/>
</target>
<target name="clean" depends="distclean">
<delete dir="${bin.dir}"/>
</target>
<target name="distclean">
<delete dir="${dist.dir}"/>
</target>
<target name="compile" depends="init">
<mkdir dir="${bin.dir}"/>
<javac srcdir="${src.dir}"
destdir="${bin.dir}"
debug="true" debuglevel="lines">
<classpath refid="build.path"/>
</javac>
</target>
<target name="jars" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/${jar.name}"
filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${project.home}/bin"/>
<zipfileset excludes="META-INF/*.SF"
src="${lib.dir}/lucene-core-3.1-dev.jar"/>
</jar>
</target>
<target name="javadoc">
<mkdir dir="${project.home}/docs"/>
<javadoc access="public" author="true" classpath="lib/org.json.jar"
destdir="${project.home}/docs" nodeprecated="false" nodeprecatedlist="false" noindex="false"
nonavbar="false" notree="false" packagenames="com.stinkyteddy.utils,com" source="1.6" sourcepath="src:lib" splitindex="true" use="true" version="true"/>
</target>
</project>