-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
79 lines (70 loc) · 2.19 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8" ?>
<project name="InteractionDB" default="jar" basedir=".">
<description>
Ant build file to build the java application which
generates a BridgeDB derby database
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="resources" location="resources"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<path id="project.class.path">
<fileset dir="${lib}">
<include name="derby.jar"/>
<include name="org.bridgedb.jar"/>
<include name="org.bridgedb.bio.jar"/>
<include name="org.bridgedb.rdb.jar"/>
<include name="org.bridgedb.rdb.construct.jar"/>
<include name="org.bridgedb.tools.qc.jar"/>
</fileset>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" depends="init">
<echo>Compiling: ${jar.name}</echo>
<javac srcdir="${src}"
includes="**"
destdir="${build}"
debug="true"
source="1.5">
<classpath>
<path refid="project.class.path"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="dist/${ant.project.name}-${DSTAMP}.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="org.bridgedb.interaction.IntdbBuilder"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${build}">
<include name="**/*"/>
</fileset>
<fileset dir="${resources}">
<include name="**/*"/>
</fileset>
<manifest>
<attribute name="Class-Path" value="."/>
</manifest>
</jar>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} directory -->
<delete dir="${build}"/>
</target>
<target name="dist-clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directories -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>