-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
44 lines (37 loc) · 1.34 KB
/
build.xml
File metadata and controls
44 lines (37 loc) · 1.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
<?xml version="1.0"?>
<project name="AntMake" default="main" basedir=".">
<!-- Directories -->
<property name="src.dir" location="src" />
<property name="build.dir" location="classes" />
<property name="dist.dir" location="dist" />
<!-- Delete last build -->
<target name="clean" >
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>
<!-- Re-make build directories -->
<target name="mkdir" >
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<!-- Compile project -->
<target name="compile" depends="clean, mkdir" >
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${build.dir}" debug="true">
<compilerarg value="-Xlint:all" />
</javac>
</target>
<!-- Build jar file -->
<target name="jar" depends="compile" >
<jar destfile="${dist.dir}/antmake.jar" basedir="${build.dir}">
<manifest>
<!-- <attribute name="${name}" value="${value}" /> -->
<attribute name="Manifest-Version" value="1.0" />
<attribute name="Main-Class" value="AntMake" />
</manifest>
</jar>
</target>
<!-- Main target -->
<target name="main" depends="jar" >
<description>Main Target</description>
</target>
</project>