-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
68 lines (55 loc) · 2.1 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
<?xml version="1.0"?>
<!--
~ Copyright (c) 2010.
~ CC-by Felipe Micaroni Lalli
-->
<project name="machine-gun" default="help" basedir=".">
<description>
Machine Gun Project
</description>
<tstamp/>
<property file="build.properties"/>
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="help">
<echo message="Use ant -projecthelp to see all options"/>
</target>
<target name="init">
<splash imageurl="http://img442.imageshack.us/img442/1510/machinegun.jpg"/>
</target>
<target name="compile" depends="init" description="Compile the java classes to deploy dir">
<mkdir dir="${deploy.dir}" />
<javac srcdir="${src.dir}" destdir="${deploy.dir}" debug="${debug}" includeantruntime="true">
<classpath refid="classpath" />
</javac>
</target>
<target name="clean" depends="init" description="Delete compiled classes.">
<delete dir="${deploy.dir}"/>
</target>
<target name="dist" depends="clean,compile" description="Make the jar project file">
<jar destfile="${deploy.dir}/${project.name}-${version}.jar" update="true">
<fileset dir="${deploy.dir}">
<include name="**/*.class"/>
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
<manifest>
<attribute name="Built-By" value="${company}"/>
<attribute name="Class-Path" value="."/>
</manifest>
</jar>
</target>
<target name="document" depends="compile" description="Make the project API.">
<mkdir dir="${doc.api}"/>
<javadoc sourcepath="${src.dir}" destdir="${doc.api}"
author="true" version="true" use="true"
packagenames="*" doctitle="${project.name} ${version} API"
charset="UTF-8"
windowtitle="${project.name} ${version} API">
<classpath refid="classpath" />
</javadoc>
</target>
</project>