-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
39 lines (31 loc) · 939 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
30
31
32
33
34
35
36
37
38
39
<project name="HDP" default="mkjar" basedir=".">
<!-- Properties -->
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<path id="classpath">
<fileset dir="${lib}" includes="**/*.jar"/>
</path>
<!-- Targets -->
<!-- # Cleaning -->
<target name="clean">
<delete dir="${bin}" />
<delete dir="${dist}" />
</target>
<!-- # Initialisation -->
<target name="init" depends="clean">
<mkdir dir="${bin}" />
<mkdir dir="${dist}" />
</target>
<!-- # Compilation -->
<target name="compile" depends="init">
<tstamp/>
<javac srcdir="${src}" destdir="${bin}" classpathref="classpath" includeantruntime="false"/>
</target>
<!-- # Jar creation -->
<target name="mkjar" depends="compile">
<jar destfile="${dist}/${ant.project.name}.jar" basedir="${bin}">
</jar>
</target>
</project>