osx pixel tweak
[jalview.git] / build.xml
index 19ec5f2..caef5be 100755 (executable)
--- a/build.xml
+++ b/build.xml
@@ -1,4 +1,22 @@
 <?xml version="1.0"?>
+<!--
+   * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+   * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+   * 
+   * This program is free software; you can redistribute it and/or
+   * modify it under the terms of the GNU General Public License
+   * as published by the Free Software Foundation; either version 2
+   * of the License, or (at your option) any later version.
+   * 
+   * This program is distributed in the hope that it will be useful,
+   * but WITHOUT ANY WARRANTY; without even the implied warranty of
+   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   * GNU General Public License for more details.
+   * 
+   * You should have received a copy of the GNU General Public License
+   * along with this program; if not, write to the Free Software
+   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+-->
 <project name="jalviewX" default="usage" basedir=".">
        <!-- we use jalopy to format our sources -->
        <taskdef name="jalopy"
@@ -24,6 +42,7 @@
                <echo message="makeApplet - compiles, then packages and obfuscates the Applet"/>
                <echo message="See docs/building.html and the comments in build file for other targets."/>
            <echo message="note: compile and makeApplet require the property java118.home to be set to point to a java 1.1.8 jdk."/>
+           <echo message="Useful -D flags: -Ddonotobfuscate will prevent applet obfuscation"/>
        </target>
 
 
     <property name="JALVIEW_VERSION" value="DEVELOPMENT"/> <!-- 2.4 (VAMSAS)" -->
                <!-- Include debugging information in javac true or false -->
                <property name="javac.debug" value="true"/>
+               
+               <!-- JarSigner Key Store for Webstart Distribution -->
+               <property name="jalview.keystore" value="./keys/.keystore"/>
+               <!-- Keystore Password -->
+               <property name="jalview.keystore.pass" value="alignmentisfun"/>
+               <!-- Key Name -->
+               <property name="jalview.key" value="jalview"/>
+               <!-- Key Password -->
+               <property name="jalview.key.pass" value="alignmentisfun"/>
+                                               
                <!-- 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"/>
        <target name="makefulldist" depends="makedist">
                <!-- the default keystore details might need to be edited here -->
                <signjar
-      storepass="alignmentisfun"
-      keypass="alignmentisfun"
-      keystore="keys/.keystore"
-      alias="jalview"
+      storepass="${jalview.keystore.pass}"
+      keypass="${jalview.key.pass}"
+      keystore="${jalview.keystore}"
+      alias="${jalview.key}"
       lazy="false"
       verbose="false"
       >
                                </fileset>
                                <fileset dir="${packageDir}">
                                        <include name="*.jar"/>
+                                       <include name="*_*.jar"/>
                                        <exclude name="jalview.jar"/>
                                </fileset>
                                <property name="jalview.version" value="${JALVIEW_VERSION}"/>
                                <include name="${libDir}/**/*"/>                                                
                                <include name="${resourceDir}/**/*"/>                                           
                                <include name="${helpDir}/**/*"/>                                               
-                               <include name="utils/**/*"/>                                            
+                               <exclude name="**/*locales"/>
+                               <exclude name="*locales/**"/>
+                               <exclude name="utils/InstallAnywhere/**Build.iap_xml"/>
+                               <exclude name="utils/InstallAnywhere/**Build*/**"/>
+                               <exclude name="utils/InstallAnywhere/**Build*/**"/>
+                               <exclude name="utils/InstallAnywhere/**locale*"/>
+                               <exclude name="utils/InstallAnywhere/**locale*/**"/>
                                <include name="${schemaDir}/**/*"/>                                             
+                               <include name="utils/**/*"/>
                                <include name="${docDir}/**/*"/>                                                
                        </tarfileset>
                </tar>