new ant build for Jalview.
authorjprocter <Jim Procter>
Wed, 23 Feb 2005 11:57:11 +0000 (11:57 +0000)
committerjprocter <Jim Procter>
Wed, 23 Feb 2005 11:57:11 +0000 (11:57 +0000)
build.xml [new file with mode: 0755]

diff --git a/build.xml b/build.xml
new file mode 100755 (executable)
index 0000000..c10f726
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<project name="jalviewX" default="build" basedir=".">
+  <!-- utils is a class path to additional utilities needed for
+  building docs, jars and webstart stuff -->
+
+  <target name="init">
+
+    <property name="libDir" value="lib"/>
+    <property name="resourceDir" value="resources"/>
+    <property name="helpDir" value="help"/>
+    <property name="docDir" value="doc"/>
+    <property name="sourceDir" value="src" />
+    <property name="outputDir" value="classes" />
+    <property name="outputJar" value="jalview.jar" />
+
+    <path id="build.classpath">
+      <fileset dir="utils">
+        <include name="**/*.jar"/>
+      </fileset>
+      <fileset dir="${libDir}">
+        <include name="**/*.jar"/>
+      </fileset>
+    </path>
+
+  </target>
+
+  <target name="clean" depends="init">
+        <!-- not efficient yet. -->
+    <delete dir="${outputDir}"/>
+  </target>
+
+  <target name="distclean" depends="init, clean">
+    
+    <echo message="REMOVING ALL BACKUP/AUTOSAVES!"/>
+    <delete>
+      <fileset dir=".">
+        <include name="${outputJar}"/>
+        <include name="#*#"/>
+        <include name="#*.*#"/>
+        <include name="**/#*#"/>
+        <include name="**/#*.*#"/>
+        <include name="*~"/>
+        <include name="*.*~"/>
+        <include name="**/*~"/>
+        <include name="**/*.*~"/>
+      </fileset>
+    </delete>
+  </target>
+  
+  <target name="prepare" depends="clean">
+    <mkdir dir="${outputDir}"/>
+    <copy todir="${outputDir}">
+      <fileset dir=".">
+        <include name="${docDir}/**/*.*"/>
+        <include name="${helpDir}/**/*.*"/>
+        <include name="${libDir}"/>
+      </fileset>
+      <fileset dir="${resourceDir}">
+        <include name="**/*.*"/>
+      </fileset>
+    </copy>
+  </target>
+
+  <target name="build" depends="init, prepare">
+            <!-- not efficient yet. -->
+     <javac srcdir="${sourceDir}" destdir="${outputDir}"
+        classpathref="build.classpath" />
+  </target>
+
+  
+
+  <target name="package" depends="init, build">
+    
+  </target>
+</project>