~ubuntu-branches/ubuntu/utopic/figtree/utopic

« back to all changes in this revision

Viewing changes to build_applet.xml

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-02-21 08:17:38 UTC
  • Revision ID: james.westby@ubuntu.com-20110221081738-80pe2ulo8rg7up10
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<project name="FigTreeApplet" default="dist" basedir=".">
 
2
        <description>
 
3
                Build file for FigTreeApplet
 
4
                $Id:$
 
5
        </description>
 
6
 
 
7
        <!-- set global properties for this build -->
 
8
        <property name="src" location="src"/>
 
9
        <property name="build" location="build"/>
 
10
 
 
11
        <property name="lib" location="lib"/>
 
12
        <property name="dist" location="dist"/>
 
13
 
 
14
        <property environment="env"/>
 
15
 
 
16
        <target name="clean">
 
17
                <mkdir dir="${build}"/>
 
18
                <delete includeEmptyDirs="true">
 
19
                        <fileset dir="${build}" includes="**/*"/>
 
20
                </delete>
 
21
 
 
22
        </target>
 
23
 
 
24
        <target name="init">
 
25
                <!-- Create the time stamp -->
 
26
                <tstamp/>
 
27
                <!-- Create the build directory structure used by compile -->
 
28
                <mkdir dir="${build}"/>
 
29
                <mkdir dir="${dist}"/>
 
30
                <mkdir dir="${lib}"/>
 
31
        </target>
 
32
 
 
33
 
 
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"/>
 
40
                </copy>
 
41
        </target>
 
42
 
 
43
        <target name="dist" depends="compile" description="generate the distribution">
 
44
                <!-- Create the distribution directory -->
 
45
                <mkdir dir="${dist}"/>
 
46
 
 
47
                <jar jarfile="${dist}/figtreeapplet.jar">
 
48
                        <fileset dir="${build}"
 
49
                                 includes="figtree/**/*.class,**/*.properties,**/*.png,**/*.gif"
 
50
                                />
 
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/**"/>
 
64
 
 
65
                        <manifest>
 
66
                                <attribute name="Built-By" value="${user.name}"/>
 
67
                        </manifest>
 
68
                </jar>
 
69
 
 
70
        </target>
 
71
 
 
72
    <target name="dist_panel" depends="compile" description="generate the distribution">
 
73
        <!-- Create the distribution directory -->
 
74
        <mkdir dir="${dist}"/>
 
75
 
 
76
        <jar jarfile="${dist}/figtreepanel.jar">
 
77
            <fileset dir="${build}"
 
78
                     includes="figtree/panel/**/*.class,figtree/treeviewer/**/*.class,**/*.properties,**/*.png,**/*.gif"
 
79
                />
 
80
 
 
81
            <manifest>
 
82
                <attribute name="Built-By" value="${user.name}"/>
 
83
            </manifest>
 
84
        </jar>
 
85
 
 
86
    </target>
 
87
</project>