-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautoaligner.xml
68 lines (47 loc) · 1.84 KB
/
autoaligner.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
<project name="Autoaligner" basedir="." default="main">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<property file="autoaligner.properties"/>
<property environment="env"/>
<target name="clean">
<delete dir="${release.base.dir}"/>
</target>
<target name="master-jar" description="creates the master jar file with all code" depends="clean">
<!-- Copy Driver -->
<macrodef name="copy-class">
<attribute name="jarpath"/>
<sequential>
<!-- <mkdir dir="${release.build.dir}/@{jarpath}"/> -->
<copy todir="${release.build.dir}/@{jarpath}">
<fileset dir="${classes.dir}/@{jarpath}">
<include name="**/*class"/>
<include name="**/*properties"/>
</fileset>
</copy>
</sequential>
</macrodef>
<!-- Load in jar names and copy them to the build directory -->
<echo>Copying class files</echo>
<for list="${class.select}" param="jar.location">
<sequential>
<copy-class jarpath="@{jar.location}"/>
</sequential>
</for>
<!-- Build the jar -->
<jar destfile="${release.base.dir}/autoaligner.jar" basedir="${release.build.dir}" compress="false">
<zipgroupfileset dir="ExternalJars" includes="*.jar" />
<manifest>
<attribute name="Main-Class" value="autoaligner/Autoaligner"/>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Implementation-Vendor" value="Implementation-Vendor: University of Utah Bioinformatics Shared Resource (http://bioserver.hci.utah.edu)"/>
<attribute name="Implementation-Version" value="${release_name}"/>
</manifest>
</jar>
<!-- Clean up build directory -->
<delete dir="${release.build.dir}"/>
<!-- Copy data files -->
<copy todir="${release.base.dir}">
<fileset dir="${data.dir}"/>
</copy>
</target>
<target name="main" depends="master-jar"/>
</project>