-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
43 lines (31 loc) · 1.07 KB
/
build.xml
File metadata and controls
43 lines (31 loc) · 1.07 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
<project name="EECS645Project" default="dist" basedir=".">
<description>
EECS 645 Build File
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build/classes"/>
<property name="dist" location="dist"/>
<property name="exec" location="EECS645-2789552.jar"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compiling the source files" >
<javac srcdir="${src}" destdir="${build}"/>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<manifest file="MANIFEST.MF" mode="replace">
<attribute name="Main-Class" value="MainClass" />
</manifest>
<jar jarfile="${exec}" basedir="${build}" manifest="MANIFEST.MF" />
</target>
<target name="clean"
description="cleaning up" >
<delete dir="${build}"/>
<delete file="${exec}"/>
<delete file="MANIFEST.MF"/>
</target>
</project>