-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
112 lines (90 loc) · 3.34 KB
/
build.xml
File metadata and controls
112 lines (90 loc) · 3.34 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
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0"?>
<!--
Copyright (c) 2006 Matt Magoffin
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
$Id: build.xml,v 1.5 2007/10/02 09:03:52 matt Exp $
-->
<project name="Mutil" default="dist"
xmlns:ivy="antlib:org.apache.ivy.ant">
<property file="build.properties" />
<property name="dir.base" value="."/>
<property name="dir.source" value="src"/>
<property name="dir.build" value="build/ant" />
<property name="dir.compile" value="${dir.build}/classes"/>
<property name="dir.dist" value="target"/>
<property name="dir.lib" value="lib"/>
<property name="app.name" value="mutil2" />
<property name="dir.app.dest" value="${dir.build}/${app.name}"/>
<property name="compile.debug" value="true" />
<property name="compile.deprecation" value="false" />
<property name="compile.optimize" value="true" />
<property name="compile.nowarn" value="true" />
<property name="build.version" value="(local build)"/>
<tstamp>
<format property="build.time" pattern="MM/dd/yyyy hh:mm aa z" />
</tstamp>
<target name="init">
<mkdir dir="${dir.build}" />
</target>
<!-- Ivy integration -->
<target name="ivy-init">
<taskdef resource="org/apache/ivy/ant/antlib.xml"
uri="antlib:org.apache.ivy.ant"
classpath="${dir.lib}/ivy-2.2.0.jar"/>
</target>
<target name="lib-init" depends="ivy-init">
<ivy:settings file="${dir.lib}/ivysettings.xml"/>
</target>
<target name="lib-resolve" depends="lib-init">
<ivy:resolve file="${basedir}/ivy.xml" conf="compile"/>
</target>
<target name="compile" depends="lib-resolve" description="Compile source files">
<mkdir dir="${dir.compile}"/>
<ivy:cachepath pathid="lib.path" conf="compile"/>
<javac srcdir="${dir.source}"
destdir="${dir.compile}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
nowarn="${compile.nowarn}"
target="1.6"
source="1.6">
<classpath refid="lib.path" />
</javac>
</target>
<target name="clean" description="Delete build files">
<delete dir="${dir.build}" />
</target>
<target name="dist-mutil-jar" description="Generate a distribution JAR"
depends="compile">
<mkdir dir="${dir.dist}"/>
<jar destfile="${dir.dist}/${app.name}.jar">
<fileset dir="${dir.source}">
<include name="META-INF/**"/>
</fileset>
<fileset dir="${dir.compile}">
<include name="magoffin/matt/**"/>
</fileset>
<fileset dir="${dir.source}">
<include name="magoffin/matt/**"/>
</fileset>
</jar>
</target>
<target name="jar" description="Build the JAR" depends="dist-mutil-jar"/>
<target name="dist" description="Prepare the distribution JARs"
depends="dist-mutil-jar"/>
<target name="help">
<echo>TODO</echo>
</target>
</project>