Default raget is :usage
authoramwaterhouse <Andrew Waterhouse>
Wed, 5 Apr 2006 11:37:35 +0000 (11:37 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 5 Apr 2006 11:37:35 +0000 (11:37 +0000)
build.xml

index ae21307..4c5c503 100755 (executable)
--- a/build.xml
+++ b/build.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-  <project name="jalviewX" default="build" basedir=".">
+  <project name="jalviewX" default="usage" basedir=".">
 <!-- we use jalopy to format our sources -->
 <taskdef name="jalopy"
          classname="de.hunsicker.jalopy.plugin.ant.AntPlugin">
   </classpath>
 </taskdef>
 
+   <target name="usage">
+     <echo message="~~~Jalview Ant build.xml Usage~~~~"/>
+     <echo message="Targets available:"/>
+     <echo message="usage - default target, displays this message"/>
+     <echo message="buildindices - generates JavaHelpSearch from the help files"/>
+     <echo message="build - compiles all necessary files for Application"/>
+     <echo message="makedist - compiles and places all necessary jar files into directory dist"/>
+     <echo message="makefulldist - signs all jar files and builds jnlp file for full distribution"/>
+     <echo message="compileApplet - compiles all necessary files for Applet"/>
+     <echo message="makeApplet - compiles, then packages and obfuscates the Applet"/>
+   </target>
+
 
     <!-- utils is a class path to additional utilities needed for
     building docs, jars and webstart stuff -->
@@ -38,7 +50,7 @@
         </fileset> -->
       </path>
 
-      <property name="JALVIEW_VERSION" value="2.07"/>
+      <property name="JALVIEW_VERSION" value="ANNOTATION_TEST"/>
       <property name="" value=""/>
       <property name="libDir" value="lib"/>
       <property name="resourceDir" value="resources"/>
     </java>
     </target>
 
-    <target name="makejars" depends="build, buildPropertiesFile, buildindices">
-      <!-- make the package jar -->
-      <mkdir dir="${packageDir}"/>
-
-      <jar destfile="${packageDir}/${outputJar}">
-        <manifest>
-             <attribute name="Main-Class" value="jalview.bin.Jalview"/>
-        </manifest>
-        <fileset dir="${outputDir}/">
-          <exclude name="cache*/**"/>
-          <exclude name="*.jar" />
-          <exclude name="*.jar.*" />
-          <exclude name="**/*.jar" />
-          <exclude name="**/*.jar.*" />
-        </fileset>
-      </jar>
-
-      <copy toDir="${packageDir}" flatten="true">
-        <fileset dir="${outputDir}">
-          <include name="*.jar"/>
-          <include name="**/*.jar"/>
-        </fileset>
-      </copy>
-<!-- the default keystore details might need to be edited here -->
+    <target name="makefulldist" depends="makedist">
+ <!-- the default keystore details might need to be edited here -->
       <signjar
       storepass="alignmentisfun"
       keypass="alignmentisfun"
         package="${wsdl.ClientNS}"/>
         </mappingSet>
     </axis-wsdl2java>
+    </target>
 
+    <target name="makedist" depends="build, buildPropertiesFile, buildindices">
+      <!-- make the package jar -->
+      <mkdir dir="${packageDir}"/>
+
+      <jar destfile="${packageDir}/${outputJar}">
+        <manifest>
+             <attribute name="Main-Class" value="jalview.bin.Jalview"/>
+        </manifest>
+        <fileset dir="${outputDir}/">
+          <exclude name="cache*/**"/>
+          <exclude name="*.jar" />
+          <exclude name="*.jar.*" />
+          <exclude name="**/*.jar" />
+          <exclude name="**/*.jar.*" />
+        </fileset>
+      </jar>
+
+      <copy toDir="${packageDir}" flatten="true">
+        <fileset dir="${outputDir}">
+          <include name="*.jar"/>
+          <include name="**/*.jar"/>
+        </fileset>
+      </copy>
   </target>
+
+
+
   <target name="package" depends="init, build">
 
   </target>