-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
40 lines (34 loc) · 1.04 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
<?xml version="1.0"?>
<project name="DrugBank4Parser" default="jar" basedir=".">
<property name="src.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="build.dir" value="build"/>
<property name="jar.name" value="${ant.project.name}.jar"/>
<path id="project.class.path">
<fileset dir="${lib.dir}">
<include name="jdom-2.0.6.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
<delete file="${jar.name}"/>
</target>
<target name="prepare">
<mkdir dir="${build.dir}"/>
</target>
<target name="compile" depends="prepare">
<echo>Compiling: ${jar.name}</echo>
<javac srcdir="${src.dir}" includes="**" destdir="${build.dir}" debug="true">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="jar" depends="compile">
<echo>Creating JAR: ${jar.name}</echo>
<unjar src="${lib.dir}/jdom-2.0.6.jar" dest="${build.dir}"/>
<jar jarfile="${jar.name}">
<fileset dir="build">
<include name="**/*.class"/>
</fileset>
</jar>
</target>
</project>