forked from cshaxu/nagini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
29 lines (25 loc) · 893 Bytes
/
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
<project name="nagini" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="lib" location="lib" />
<property name="src" location="src" />
<property name="dist" location="dist"/>
<path id="lib-classpath">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<target name="compile" description="compile the source " >
<mkdir dir="${dist}"/>
<javac srcdir="${src}" destdir="${dist}" debug="true" includes="**/*.java">
<classpath refid="lib-classpath" />
</javac>
</target>
<target name="dist" depends="clean,compile" description="generate the distribution" >
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/nagini.jar" basedir="${dist}"/>
<delete dir="${dist}/nagini"/>
</target>
<target name="clean" description="clean up" >
<delete dir="${dist}"/>
</target>
</project>