annotate build.xml @ 2:e16016635b2a

Uploaded
author timpalpant
date Mon, 13 Feb 2012 22:12:06 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
1 <?xml version="1.0" encoding="iso-8859-1"?>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
2 <project name="java-genomics-toolkit" default="jar" basedir=".">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
3 <description>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
4 build the toolkit
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
5 </description>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
6
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
7 <!-- set global properties for this build -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
8 <property name="version" value="1.1.0"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
9 <property name="buildnumber" value="1"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
10 <property name="copyright" value="Copyright &#xa9; 2011 Timothy Palpant"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
11
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
12 <!-- directory variables -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
13 <property name="src" location="src"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
14 <property name="test" location="test"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
15 <property name="gui" location="gui"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
16 <property name="build" location="build"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
17 <property name="dist" location="dist"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
18 <property name="lib" location="lib"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
19
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
20 <!-- compile all Java code -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
21 <target name="compile" description="compile the scripts">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
22 <!-- Create the build directory structure used by compile -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
23 <mkdir dir="${build}"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
24
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
25 <!-- Compile the java code from ${src} into ${build} -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
26 <javac srcdir="${src}" destdir="${build}" source="1.7" target="1.7">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
27 <classpath>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
28 <path id="lib.path.ref">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
29 <fileset dir="lib" includes="*.jar"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
30 </path>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
31 </classpath>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
32 </javac>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
33
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
34 <!-- Compile the java code from ${gui} into ${build} -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
35 <javac srcdir="${gui}" destdir="${build}" source="1.7" target="1.7">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
36 <classpath>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
37 <path id="lib.path.ref">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
38 <fileset dir="lib" includes="*.jar"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
39 </path>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
40 </classpath>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
41 </javac>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
42 </target>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
43
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
44 <!-- package all Java code into a JAR file -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
45 <target name="jar" depends="compile" description="generate the jarfile">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
46 <!-- Create the distribution directory -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
47 <mkdir dir="${dist}"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
48
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
49 <!-- Put everything in ${build} into the jar file -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
50 <jar jarfile="${dist}/${ant.project.name}.jar" manifest="META-INF/MANIFEST.MF">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
51 <fileset dir="${build}" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
52 </jar>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
53 </target>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
54
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
55 <!-- Package the jar file into a Mac OS X application with jarbundler -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
56 <target name="package-osx" depends="jar" description="Build the application for OS X">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
57 <taskdef name="jarbundler"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
58 classpath="${lib}/jarbundler-2.2.0.jar"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
59 classname="net.sourceforge.jarbundler.JarBundler"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
60
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
61 <jarbundler dir="${dist}" verbose="false" showPlist="false"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
62 name="Genomics Toolkit"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
63 mainclass="edu.unc.genomics.ToolRunner"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
64 jvmversion="1.7+"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
65 stubfile="stubFile.sh"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
66 version="${version}"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
67 infostring="${ant.project.name}, ${copyright}"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
68 build="${buildnumber}"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
69 bundleid="edu.unc.genomics.GenomicsToolkit">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
70
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
71 <jarfilelist dir="${dist}" files="${ant.project.name}.jar"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
72 <jarfileset dir="${lib}">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
73 <include name="*.jar" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
74 <exclude name="launch4j.jar" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
75 <exclude name="xstream.jar" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
76 <exclude name="jarbundler-2.2.0.jar" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
77 </jarfileset>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
78
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
79 <!-- Adjust the look, feel and behavior -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
80 <javaproperty name="apple.laf.useScreenMenuBar" value="true"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
81 <javaproperty name="apple.awt.brushMetal" value="true"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
82 <javaproperty name="apple.awt.showGrowBox" value="false"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
83 <javaproperty name="apple.awt.textantialiasing" value="true"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
84 <javaproperty name="apple.awt.antialiasing" value="true"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
85
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
86 <!-- Associate document types with this application -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
87 <documenttype name="Assembly files"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
88 extensions="len"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
89 role="Viewer" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
90
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
91 <!-- Include resource files -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
92 <resourcefilelist dir="." files="README.rdoc"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
93 <resourcefilelist dir="." files="toolConf.xml"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
94 <resourcefileset dir="." includes="resources/assemblies/*.len"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
95 <javafilelist dir="." files="log4j.properties"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
96 </jarbundler>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
97 </target>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
98
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
99 <!-- Package the jar file into a Windows application with launch4j -->
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
100 <target name="package-win" depends="jar" description="Build the application for Windows">
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
101 <taskdef name="launch4j"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
102 classname="net.sf.launch4j.ant.Launch4jTask"
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
103 classpath="${lib}/launch4j.jar:${lib}/xstream.jar" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
104
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
105 <launch4j configFile="launch4j.xml" />
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
106 </target>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
107
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
108 <target name="clean" description="clean up" >
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
109 <delete dir="${build}"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
110 <delete dir="${dist}"/>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
111 </target>
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
112 </project>