-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
49 lines (41 loc) · 1.49 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
<?xml version="1.0" ?>
<project name="simplesnake" default="compile" basedir=".">
<description>
Build file for SimpleSnake
</description>
<!-- set global properties for this build -->
<property name="pkgname" value="com/hasahmed/simplesnake" />
<property name="src" location="src/${pkgname}" />
<property name="out" location="out/" />
<property name="dist" location="dist" />
<property name="lib" location="lib" />
<property name="jasypt" value="jasypt-1.9.2.jar" />
<property name="manifest" value="Manifest.txt" />
<path id="classpath">
<fileset dir="${lib}">
<include name="${jasypt}" />
</fileset>
</path>
<target name="init">
<mkdir dir="${out}"/>
</target>
<target name="compile" depends="init"
description="compile the source">
<javac srcdir="${src}" destdir="${out}">
<classpath refid="classpath" />
</javac>
</target>
<target name="jar" depends="compile"
description="generate the jar file">
<mkdir dir="${dist}/jar" />
<jar basedir="${out}" manifest="${manifest}" destfile="${dist}/jar/${ant.project.name}.jar">
<zipgroupfileset dir="${lib}" />
</jar>
</target>
<target name="clean"
description="clean remove *.class files and *.jar files">
<!--[> Delete the ${build} and ${dist} directory trees <]-->
<delete dir="${out}"/>
<delete dir="${dist}"/>
</target>
</project>