This repository was archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
102 lines (82 loc) · 3.6 KB
/
build.xml
File metadata and controls
102 lines (82 loc) · 3.6 KB
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
<project name="Ndal" default="dist" basedir=".">
<description>
This is the server-side component of Ndal web services. This produces 3 main
things: A standalone JAR publishing a JAX-WS endpoint, a servlet WAR file for
Tomcat, and a JAR containing only the Java interfaces and DTOs. These targets
are, respectively: sib, war, sei.
"ant -p" lists all targets. "ant -v" runs verbosely.
</description>
<!-- ******************************************************************
Set global properties for this build
******************************************************************-->
<!-- Source and base package -->
<property name="src" location="src"/>
<!-- Directory for any dependency JAR files -->
<property name="lib" location="lib"/>
<!-- Destination directories -->
<property name="build" location="build"/>
<property name="binDir" location="bin"/>
<property name="WebContent" location="WebContent/"/>
<!-- Destination files -->
<property name="outputJar" location="${binDir}\hive13bot.jar"/>
<!-- Entry point for standalone JAR -->
<property name="MainClass" value="org.hive13.jircbotx.HiveBot"/>
<!-- ====== Set up the build classpaths ====== -->
<path id="master-classpath">
<fileset dir="${lib}"/>
</path>
<!-- ******************************************************************
Tasks
******************************************************************-->
<!-- ====== Target "init" ====== -->
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<!-- ====== Target "compile" ====== -->
<target name="compile" depends="init" description="Compile the source">
<javac destdir="${build}" srcdir="${src}" classpathref="master-classpath"/>
</target>
<!-- ====== Target "jar" ====== -->
<target name="jar" depends="compile"
description="Build a runnable JAR.">
<jar jarfile="${outputJar}">
<!-- Entry-point is needed to run it as an application: -->
<manifest>
<attribute name="Main-Class" value="${MainClass}"/>
</manifest>
<fileset dir="${build}"/>
<zipgroupfileset dir="${lib}" includes="**/*.jar" />
</jar>
</target>
<!-- ====== Target "test" ====== -->
<target name="test" depends="jar"
description="Run regression tests with jUnit">
<junit printsummary="yes" showoutput="on">
<!-- Jenkins makes use of reports from the XML formatter: -->
<formatter type="plain"/>
<classpath>
<!-- Everything we just built is here: -->
<pathelement path="${build}"/>
<!-- All other dependencies: -->
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
<!-- Classes to test: -->
<test name="org.hive13.jircbot.support.jIRCToolsTest"/>
</junit>
</target>
<!-- ====== Target "dist" ====== -->
<target name="dist" depends="jar"
description="Build everything">
</target>
<!-- ====== Target "clean" ====== -->
<target name="clean"
description="Clean up">
<!-- Delete ${build} tree -->
<delete dir="${build}"/>
</target>
</project>