-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
93 lines (74 loc) · 3.11 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<project name="polyGembler" default="dist" basedir=".">
<description>
polyGembler: Pedigree Haplotype analyse toolkit, version 1.1
The polyGembler project may be distributed under the terms of
the GNU Lesser General Public License
</description>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="dist" location="dist"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<property name="polyGembler" location="${dist}\polyGembler-1.1-jar-with-dependencies.jar"/>
<path id="build.class.path">
<fileset dir="${lib}">
<include name="*.jar"/>
<include name="*.zip"/>
</fileset>
</path>
<pathconvert property="manifest.classpath" pathsep=" ">
<path refid="build.class.path"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<target name="init">
<!-- Create the time stamp -->
<tstamp>
<format property="" pattern=""/>
</tstamp>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<!-- Compile the java code from ${src} into ${build} -->
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" debug="true">
<classpath>
<pathelement path="${lib}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</classpath>
</javac>
</target>
<target name="dist" depends="clean, compile" description="distribution">
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<copy todir="${build}" description="copy all files except java source">
<fileset dir="${src}">
<include name="**/*"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<jar jarfile="${polyGembler}" basedir="${build}">
<manifest>
<attribute name="Built-by" value="${user.name}" />
<attribute name="Main-Class" value="cz1.appl.PolyGembler"/>
<attribute name="Class-Path" value="${manifest.classpath}"/>
</manifest>
<fileset dir="${build}" includes="**/*.class" />
<zipgroupfileset dir="${lib}" includes="**/*.jar" />
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
</target>
</project>