1
<project name="FigTreeApplet" default="dist" basedir=".">
3
Build file for FigTreeApplet
7
<!-- set global properties for this build -->
8
<property name="src" location="src"/>
9
<property name="build" location="build"/>
11
<property name="lib" location="lib"/>
12
<property name="dist" location="dist"/>
14
<property environment="env"/>
17
<mkdir dir="${build}"/>
18
<delete includeEmptyDirs="true">
19
<fileset dir="${build}" includes="**/*"/>
25
<!-- Create the time stamp -->
27
<!-- Create the build directory structure used by compile -->
28
<mkdir dir="${build}"/>
29
<mkdir dir="${dist}"/>
34
<target name="compile" depends="init">
35
<!-- Compile the java code from ${src} into ${build} -->
36
<javac source="1.5" target="1.5" srcdir="${src}/figtree" destdir="${build}"
37
classpath="${lib}/jebl.jar:${lib}/jam.jar:${lib}/freehep.jar:${lib}/iText.jar:${lib}/quaqua.jar:${lib}/jdom.jar"/>
38
<copy todir="${build}" verbose="true">
39
<fileset dir="${src}" includes="figtree/**/*.png,figtree/**/*.gif"/>
43
<target name="dist" depends="compile" description="generate the distribution">
44
<!-- Create the distribution directory -->
45
<mkdir dir="${dist}"/>
47
<jar jarfile="${dist}/figtreeapplet.jar">
48
<fileset dir="${build}"
49
includes="figtree/**/*.class,**/*.properties,**/*.png,**/*.gif"
51
<fileset dir="../JEBL/build"
52
includes="**/*.class,**/*.properties,**/*.png,**/*.gif"
53
excludes="jebl/gui/**,
54
jebl/evolution/align/**,
55
jebl/evolution/aligners/**,
56
jebl/evolution/alignments/**,
57
jebl/evolution/characterReconstruction/**,
58
jebl/evolution/characters/**,
59
jebl/evolution/coalescent/**,
60
jebl/evolution/parsimony/**,
61
jebl/evolution/sequences/**,
62
jebl/evolution/substmodel/**,
63
jebl/evolution/treesimulation/**"/>
66
<attribute name="Built-By" value="${user.name}"/>
72
<target name="dist_panel" depends="compile" description="generate the distribution">
73
<!-- Create the distribution directory -->
74
<mkdir dir="${dist}"/>
76
<jar jarfile="${dist}/figtreepanel.jar">
77
<fileset dir="${build}"
78
includes="figtree/panel/**/*.class,figtree/treeviewer/**/*.class,**/*.properties,**/*.png,**/*.gif"
82
<attribute name="Built-By" value="${user.name}"/>