removed href in the jnlp generation
[jalview.git] / build.xml
index c872cfe..c1730a9 100755 (executable)
--- a/build.xml
+++ b/build.xml
@@ -54,7 +54,9 @@
                        </fileset> -->
       </path>
                <!-- Jalview Version String displayed by application on startup and used to check for updates -->
-      <property name="JALVIEW_VERSION" value="DEVELOPMENT"/>
+    <property name="JALVIEW_VERSION" value="DEVELOPMENT"/> <!-- 2.4 (VAMSAS)" -->
+               <!-- Include debugging information in javac true or false -->
+               <property name="javac.debug" value="true"/>
                <!-- Don't change anything below here unless you know what you are doing! -->
                <!-- Url path for WebStart in JNLP file -->
                <property name="WebStartLocation" value="http://www.jalview.org/webstart"/>
@@ -88,7 +90,9 @@
                                <include name="*.jar"/>
                                <include name="**/*.jar"/>
                        </fileset>
+                       
                </path>
+               <property name="source.dist.name" value="${basedir}/jalview-src.tar.gz"/>
                <!-- The Location of the java 1.1.8 jdk -->
                <property name="java118.home" value="C:\Sun\jdk1.1.8" />
                <property name="applet.jre.tools" value="${java118.home}/lib/classes.zip"/>
                <javac source="1.4" target="1.4"
         srcdir ="${sourceDir}"
         destdir="${outputDir}"
+                               debug="${javac.debug}"
       classpathref="build.classpath">
                        <exclude name="jalview/*applet*"/>
                        <exclude name="com/stevesoft/**"/>
                <taskdef classpathref="build.classpath" resource="com/roxes/tools/ant/taskdefs.properties"/>
 
                <!--    codebase="http://www.jalview.org/jalview/webstart" -->
-               <jnlp toFile="${packageDir}/jalview.jnlp" href="jalview.jnlp"
+               <!-- href="jalview.jnlp" prevent hard-wired pickup of jnlp in certain javaws versions -->
+               <jnlp toFile="${packageDir}/jalview.jnlp" 
       codebase="${WebStartLocation}">
                        <information>
                                <title>Jalview</title>
                                                properties="${schemaDir}/jalview.nodesc.properties"
        />
        </target>
+       <target name="sourcedist" description="create jalview source distribution" depends="init">
+               <delete file="${source.dist.name}"/>
+               <tar destfile="${source.dist.name}" compression="gzip">
+                       <tarfileset dir="./" prefix="jalview" preserveLeadingSlashes="true">
+                               <include name="LICENSE"/>
+                               <include name="README"/>
+                               <include name="build.xml"/>
+                               <include name="jalview-jalopy.xml"/>
+                               <include name="JalviewApplet.jpx"/>
+                               <include name="JalviewX.jpx"/>
+                               <include name="${sourceDir}/*.java"/>
+                               <include name="${sourceDir}/**/*.java"/>
+                               <include name="${sourceDir}/**/*.cdr"/>
+                               <include name="${libDir}/**/*"/>                                                
+                               <include name="${resourceDir}/**/*"/>                                           
+                               <include name="${helpDir}/**/*"/>                                               
+                               <include name="utils/**/*"/>                                            
+                               <include name="${schemaDir}/**/*"/>                                             
+                               <include name="${docDir}/**/*"/>                                                
+                       </tarfileset>
+               </tar>
+       </target>
 </project>