6310934104e26978776870d0fdc1e432d1bc08d5
[jalview.git] / utils / InstallAnywhere / jalview_buildinstaller.xml
1 <?xml version="1.0"?>
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
4  * Copyright (C) $$Year-Rel$$ The Jalview Authors
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
18  * The Jalview Authors are detailed in the 'AUTHORS' file.
19 -->
20 <project name="jalviewInstallAnywhere" default="build" basedir=".">
21   <property name="IA_LOCATION" value="/home/cruisecontrol/InstallAnywhere 2013/"/>
22   <property name="IA_PROJECT" location="Jalview.iap_xml"/>
23   <property name="ABS_PATH" value="/home/cruisecontrol/jalview"/> <!-- \/utils\/InstallAnywhere"/> --> <!--/home/cruisecontrol/jalview"/> -->
24   <!-- location of top level of jalview distribution directory -->
25   <property name="CUR_PATH" location="../../." />
26   <property name="USER_HOME" location="~" />
27   <property name="DEST_IADIR" location="${CUR_PATH}/JalviewBuild" />
28   <property name="java.awt.headless" value="true"/>
29   <taskdef name="buildinstaller" classname="com.zerog.ia.integration.ant.InstallAnywhereAntTask">
30   <classpath>
31     <fileset dir="${IA_LOCATION}/resource/build">
32       <include name="iaant.jar" />
33     </fileset>
34   </classpath>
35   </taskdef>
36   <target name="build">
37   <copy file="mac_logo.icns" tofile="${CUR_PATH}/mac_logo.icns" overwrite="true"/>
38   <copy file="${IA_PROJECT}" tofile="${IA_PROJECT}_reloc.iap_xml" overwrite="true"/>
39   <replace
40     token="${ABS_PATH}"
41     value="${CUR_PATH}"
42    file="${IA_PROJECT}_reloc.iap_xml" />
43   <buildinstaller 
44      IAlocation="${IA_LOCATION}"
45      IAProjectFile="${IA_PROJECT}_reloc.iap_xml"
46      BuildOutputLocation="${DEST_IADIR}" >
47      <arg value="-nupd"/>
48      </buildinstaller>
49  <delete>
50         <fileset dir="${CUR_PATH}">
51                 <include name="mac_logo.icns"/>
52         </fileset>
53  <fileset dir=".">
54    <include name="${IA_PROJECT}_reloc*"/>
55    <include name="iabuild.xml" />
56    <include name="*locales" />
57 </fileset>
58  </delete>
59 </target>
60 </project>