-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.xml
executable file
·104 lines (82 loc) · 3.24 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0"?>
<project name="textclassification" default="all" basedir=".">
<description> </description>
<!-- *******************************************************************
**************** USER OPTIONS ************************************
*******************************************************************
Make changes to this section of the build file to customise your
test and build script -->
<!-- Allow overriding of properties via build.properties -->
<property file="build.properties" />
<!-- Documentation directory -->
<property name="docDir" location="doc"/>
<property name="jarFile" value="textclassification-${version}.jar"/>
<fileset id="lib" dir="lib">
<include name="*.jar"/>
</fileset>
<path id="compile.classpath">
<fileset refid="lib"/>
</path>
<!-- RUNTIME MEMORY -->
<property name="run.memory" value="200M" />
<!-- *******************************************************************
**************** USER OPTIONS END HERE! **************************
******************************************************************* -->
<!-- set global properties for this build -->
<!-- Directories -->
<!-- Sources -->
<property name="srcDir" location="src/java" />
<!-- Output directory for the build process -->
<property name="buildDir" location="build" />
<!-- Use the new 1.3+ compiler -->
<property name="build.compiler" value="modern" />
<!-- create build directory structure -->
<target name="prepare">
<mkdir dir="${buildDir}"/>
</target>
<!-- Make documentation -->
<target name="javadoc">
<javadoc access="protected"
destdir="${docDir}/javadoc"
classpathref="compile.classpath"
Encoding="UTF-8"
Use="yes"
Windowtitle="TextClassification JavaDoc"
link="http://java.sun.com/j2se/1.5.0/docs/api/"
docencoding="UTF-8"
charset="UTF-8"
source="1.5"
useexternalfile="yes"
breakiterator="true">
<fileset dir="${srcDir}"/>
</javadoc>
</target>
<!-- Clear all build output -->
<target name="clean">
<delete dir="${buildDir}" />
<delete dir="${docDir}" />
<delete file="textclassification.jar" />
</target>
<target name="copy.resources" depends="prepare"
description="copy non-.java files from src to build" >
<copy todir="${buildDir}" includeEmptyDirs="true">
<fileset dir="${srcDir}" excludes="**/*.java" />
</copy>
</target>
<!-- This target compiles all the classes including debug information
-->
<target name="compile" description="compile the source "
depends="prepare">
<!-- Compile the java code from ${srcDir} into ${buildDir} -->
<javac classpathref="compile.classpath" srcdir="${srcDir}" destdir="${buildDir}" encoding="UTF-8"
source="1.5" target="1.5" debug="true" />
</target>
<target name="jar" depends="compile,copy.resources">
<jar destfile="${jarFile}" update="false" index="true">
<fileset dir="${buildDir}/"/>
</jar>
</target>
<!-- Everything! -->
<target name="all" depends="clean,jar">
</target>
</project>