[med-svn] r591 - in trunk/packages: . haploview haploview/branches haploview/branches/upstream haploview/branches/upstream/current

smoe-guest at alioth.debian.org smoe-guest at alioth.debian.org
Thu Oct 4 22:09:19 UTC 2007


Author: smoe-guest
Date: 2007-10-04 22:09:19 +0000 (Thu, 04 Oct 2007)
New Revision: 591

Added:
   trunk/packages/haploview/
   trunk/packages/haploview/branches/
   trunk/packages/haploview/branches/upstream/
   trunk/packages/haploview/branches/upstream/current/
   trunk/packages/haploview/branches/upstream/current/build.xml
   trunk/packages/haploview/tags/
Log:
[svn-inject] Installing original source of haploview

Added: trunk/packages/haploview/branches/upstream/current/build.xml
===================================================================
--- trunk/packages/haploview/branches/upstream/current/build.xml	                        (rev 0)
+++ trunk/packages/haploview/branches/upstream/current/build.xml	2007-10-04 22:09:19 UTC (rev 591)
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Initial Set-Up -->
+
+<project name="HaploView" default="main" basedir=".">
+
+   <path id="haploview.root">
+     <pathelement location="${basedir}"/>
+   </path>
+
+
+
+<!-- Get all the files in the /resources directory and add them to the -->
+<!-- Classpath -->
+
+ <path id="library.classpath">
+   <fileset dir="resources/">
+       <include name="*.jar"/>
+       <include name="*.zip"/>
+       <include name="jfreechart/*.jar"/>
+     </fileset>
+   <fileset dir="docs/">
+       <include name="HaploHelp.jar"/>
+   </fileset>
+</path>
+
+ <!-- =========================================================== -->
+ <!-- Initialization                                              -->
+ <!-- =========================================================== -->
+<!-- Setup project roots -->
+ <target name="init">
+    <property name="haploview.root" value="${basedir}"/>
+    <property name="haploview.build" value="${haploview.root}/build"/>
+    <property name="haploview.dist" value="${haploview.root}/dist"/>
+    <property name="haploview.classes" value="${haploview.build}/classes"/>
+    <property name="haploview.src" value="${haploview.root}"/>
+    <property name="haploview.lib" value="${haploview.root}/resources"/>
+    <property name="haploview.package" value="edu/mit/wi/"/>
+    <tstamp>
+      <format property="build.number" pattern="yyyyMMddHHmm"/>
+    </tstamp>
+</target>
+
+<!-- Prepare src directory for compilation step -->
+
+<target name="prepare-compile" depends="init">
+    <mkdir dir="${haploview.classes}"/>
+</target>
+
+<!-- Compile the Haploview application -->
+
+<target name="compile-haploview" depends="prepare-compile">
+   <javac srcdir="${haploview.src}" destdir="${haploview.classes}"
+   includes="${haploview.package}/**" debug="on">
+   <classpath refid="library.classpath"/>
+   </javac>
+
+   <copy file="resources/orator.raw" todir="build/classes/edu/mit/wi/haploview/"/>
+</target>
+
+
+
+<!-- this target makes the jar with HVWrap as the main class, which -->
+<!-- uses automagic -Xmx stuff, and suppresses error output -->
+<target name = "haploview-release" depends="compile-haploview">
+   <jar jarfile="Haploview.jar">
+     <fileset dir="${haploview.classes}">
+       <include name="edu/mit/wi/**/**"/>
+     </fileset>
+     <manifest>
+       <attribute name="Built-By" value="${user.name}"/>
+       <attribute name="Main-Class" value="edu.mit.wi.haploview.HVWrap"/>
+     </manifest>
+     <zipfileset src="resources/JimiProClasses.zip"/>
+     <zipfileset src="resources/jh.jar"/>
+     <zipfileset src="docs/HaploHelp.jar"/>
+     <zipfileset src="resources/jgrapht-0.5.3.jar"/>
+     <zipfileset src="resources/jfreechart/jfreechart-1.0.1.jar"/>
+     <zipfileset src="resources/jfreechart/jcommon-1.0.0.jar"/>
+   </jar>
+</target>
+
+
+<!-- Jar the application up -->
+<target name="haploview" depends="compile-haploview">
+   <jar jarfile="Haploview.jar">
+     <fileset dir="${haploview.classes}">
+       <include name="edu/mit/wi/**/**"/>
+     </fileset>
+     <manifest>
+       <attribute name="Built-By" value="${user.name}"/>
+       <attribute name="Main-Class" value="edu.mit.wi.haploview.HaploView"/>
+     </manifest>
+     <zipfileset src="resources/JimiProClasses.zip"/>
+     <zipfileset src="resources/jh.jar"/>
+     <zipfileset src="docs/HaploHelp.jar"/>
+     <zipfileset src="resources/jgrapht-0.5.3.jar"/>
+     <zipfileset src="resources/jfreechart/jfreechart-1.0.1.jar"/>
+     <zipfileset src="resources/jfreechart/jcommon-1.0.0.jar"/>
+   </jar>
+</target>
+
+<target name="clean" depends="init">
+  <delete dir="${haploview.build}"/>
+</target>
+
+<target name="main" depends="init">
+  <echo message="------------------------------------------------------------"/>
+  <echo message="welcome to haploview build file"/>
+  <echo message="Usage: ant [target-name]"/>
+  <echo message="where [target-name] is one of the following targets:"/>
+  <echo message="compile-haploview --> compiles the haploview classes
+  only"/>
+  <echo message="haploview-release --> makes 'wrapped' jar with auto Xmx"/>
+  <echo message="haploview --> makes the executable jar file"/>
+  <echo message="clean --> cleans up after itself removing the build directory"/>
+  <echo message="------------------------------------------------------------"/>
+</target>
+
+
+</project>




More information about the debian-med-commit mailing list