forked from beast-dev/beast-mcmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_phylogeography.xml
103 lines (87 loc) · 4.02 KB
/
build_phylogeography.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
94
95
96
97
98
99
100
101
102
103
<project name="Phylogeography" default="build" basedir=".">
<description>
Build file for the phylogeography.jar tools package.
$Id:$
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<property name="dist" location="dist"/>
<path id="classpath">
<fileset dir="${lib}" includes="**/*.jar"/>
</path>
<property environment="env"/>
<target name="init">
<!-- Create the time stamp -->
<echo message="${ant.project.name}: ${ant.file}" />
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac source="1.5" srcdir="${src}" destdir="${build}" classpathref="classpath">
<include name="dr/app/phylogeography/tools/**"/>
<include name="dr/app/beast/**"/>
<include name="dr/app/tools/**"/>
<include name="dr/app/util/**"/>
<include name="dr/evolution/**"/>
<include name="dr/inference/trace/**"/>
<include name="dr/geo/**"/>
<include name="dr/matrix/**"/>
<include name="dr/stats/**"/>
<include name="dr/math/**"/>
<include name="dr/util/**"/>
</javac>
</target>
<target name="build" depends="compile" description="generate the jar file">
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<!-- Put everything in ${build} into the treestat.jar file -->
<jar jarfile="${dist}/phylogeography.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="dr.app.phylogeography.tools.DiscreteTreeToKML"/>
</manifest>
<fileset dir="${build}">
<include name="dr/app/phylogeography/tools/**/*.class"/>
<include name="dr/app/beast/BeastVersion.class"/>
<include name="dr/app/tools/TimeSlicer*.class"/>
<include name="dr/app/util/**/*.class"/>
<include name="dr/evolution/**/*.class"/>
<include name="dr/inference/trace/**/*.class"/>
<include name="dr/geo/**/*.class"/>
<include name="dr/matrix/**/*.class"/>
<include name="dr/stats/**/*.class"/>
<include name="dr/math/**/*.class"/>
<include name="dr/util/**/*.class"/>
</fileset>
<zipgroupfileset dir="${lib}" includes="**/jebl.jar"/>
<zipgroupfileset dir="${lib}" includes="**/jdom.jar"/>
</jar>
</target>
<property name="version" value="1.0" />
<property name="release_dir" value="release_phylogeography" />
<property name="name" value="PhylogeographyTools" />
<property name="common_dir" value="${release_dir}/common" />
<property name="package_dir" value="${release_dir}/${name}_v${version}" />
<target name="package" depends="build" description="release Linux/Unix version">
<delete dir="${package_dir}" />
<!-- Create the release directory -->
<mkdir dir="${package_dir}" />
<copy todir="${package_dir}/bin">
<fileset dir="${common_dir}/bin"/>
</copy>
<copy file="${dist}/phylogeography.jar" todir="${package_dir}/lib"/>
<copy file="${common_dir}/README.txt" todir="${package_dir}"/>
<tar destfile="${release_dir}/${name}_v${version}.tgz" compression="gzip">
<tarfileset dir="${package_dir}" prefix="${name}_v${version}"/>
</tar>
<zip destfile="${release_dir}/${name} v${version}.zip">
<zipfileset dir="${package_dir}" prefix="${name} v${version}"/>
</zip>
<echo message="Linux/Unix version release is finished." />
</target>
</project>