annotate java-genomics-toolkit/build.xml @ 0:1daf3026d231

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