-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
84 lines (67 loc) · 2.94 KB
/
build.xml
File metadata and controls
84 lines (67 loc) · 2.94 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
Java Gearman Service
Gearman provides a generic application framework to farm out work to other
machines or processes that are better suited to do the work. It allows you
to do work in parallel, to load balance processing, and to call functions
between languages. It can be used in a variety of applications, from
high-availability web sites to the transport of database replication events.
In other words, it is the nervous system for how distributed processing
communicates.
isaiah.v
====================================================================== -->
<project name="Java Gearman Service" default="build-all">
<description>
Gearman provides a generic application framework to farm out work to
other machines or processes that are better suited to do the work.
It allows you to do work in parallel, to load balance processing, and
to call functions between languages. It can be used in a variety of
applications, from high-availability web sites to the transport of
database replication events. In other words, it is the nervous system
for how distributed processing communicates.
</description>
<!-- project name -->
<property name="project" value="java-gearman-service" />
<!-- current version number -->
<property name="version" value="0.4.1" />
<!-- source directory -->
<property name="src" location="src" />
<!-- build directory -->
<property name="build" location="bin" />
<!-- Javadoc home directory -->
<property name="javadoc" location="javadoc" />
<!-- Builds the executable jar, creates javadocs, and zips source -->
<target name="build-all">
<antcall target="jar" />
<antcall target="javadoc" />
</target>
<!-- Builds the project's executable jar -->
<target name="jar" depends="build" description="Builds the project's executable jar">
<jar destfile="${basedir}/${project}-${version}.jar" >
<fileset dir="${build}" />
<fileset dir="${src}" />
<fileset file="License.txt" />
<manifest>
<attribute name="Main-Class" value="org.gearman.Main"/>
</manifest>
</jar>
</target>
<!-- Creates the javadocs -->
<target name="javadoc">
<mkdir dir="${javadoc}"/>
<javadoc destdir="${javadoc}" sourcepath="${src}" packagenames="org.gearman/*" />
</target>
<target name="test">
<!-- TODO -->
</target>
<!-- Compiles the project -->
<target name="build" description="Compiles the project">
<mkdir dir="${build}" />
<javac destdir="${build}" srcdir="${src}" />
</target>
<!-- Cleans project folder -->
<target name="clean" description="Cleans project folder">
<delete dir="${build}" />
<delete dir="${javadoc}" />
</target>
</project>