forked from homiak/aaconservation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·73 lines (61 loc) · 2.71 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="build-jar" name="Build annotations jar" basedir=".">
<!-- java -->
<property name="java.src" location="${basedir}/src" />
<property name="classes" location="${basedir}/bin" />
<property name="lib.path" location="${basedir}/lib" />
<property name="jar.version" value="1.0" />
<property name="jar.name" value="compbio-conservation-${jar.version}.jar" />
<property name="jar.path" value="${basedir}/${jar.name}" />
<property name="distdir" value="website"/>
<property name="aacon-source-jar" value="${distdir}/aacon-source.jar"/>
<!-- add libraries -->
<path id="lib.classpath">
<fileset dir="${lib.path}">
<include name="*.jar" />
</fileset>
</path>
<target name="compile" depends="clean">
<javac srcdir="${basedir}/src" destdir="${classes}" target="1.5"
source="1.5" debug="on" encoding="UTF-8" sourcepath="" >
<classpath refid="lib.classpath"></classpath>
</javac>
</target>
<!-- Clean temp directories -->
<target name="clean">
<delete dir="${classes}" />
<mkdir dir="${classes}" />
</target>
<!-- <zipfileset excludes="META-INF/*.SF" src="jarfilename.jar"/> -->
<target name="build-jar" description="Pack utils in a jar" depends="compile">
<echo>Jar file: ${jar.name}</echo>
<delete file="${jar.path}" failonerror="false"></delete>
<jar jarfile="${jar.path}" >
<zipgroupfileset excludes="META-INF/*.SF" dir="lib" includes="datamodel-1.0.jar"/>
<fileset dir="${basedir}/bin/" includes="compbio/**" />
<manifest>
<attribute name="Built-By" value="Petr V Troshin" />
<attribute name="Class-Path" value="." />
<attribute name="Main-Class" value="compbio.conservation.ParallelConservationClient" />
<attribute name="Implementation-Title" value="AA Conservation calculator" />
<attribute name="Implementation-Vendor" value="Peter Troshin" />
<attribute name="Implementation-URL" value="http://www.compbio.dundee.ac.uk/" />
</manifest>
</jar>
</target>
<target name="source-jar" description="Pack java sources" depends="compile">
<delete file="${aacon-source-jar}"></delete>
<jar jarfile="${aacon-source-jar}">
<fileset dir="${basedir}/src/">
<include name="**"/>
</fileset>
<manifest>
<attribute name="Built-By" value="Peter Troshin" />
<attribute name="Class-Path" value="." />
<attribute name="Implementation-Title" value="AACon Source Code Archive" />
<attribute name="Implementation-Vendor" value="Peter Troshin and Agnieszka Golicz" />
<attribute name="Implementation-URL" value="http://www.compbio.dundee.ac.uk/aacon" />
</manifest>
</jar>
</target>
</project>