0749d9a04c790c09c23d6686bd4cc2207e59737b
[jalview.git] / utils / InstallAnywhere / jalview_buildinstaller.xml
1 <?xml version="1.0"?>
2 <!--
3   Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
4   Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
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 -->
19 <project name="jalviewInstallAnywhere" default="build" basedir=".">
20   <property name="IA_LOCATION" value="/home/cruisecontrol/InstallAnywhere 2013/"/>
21   <property name="IA_PROJECT" location="Jalview.iap_xml"/>
22   <property name="ABS_PATH" value="/home/cruisecontrol/jalview"/> <!-- \/utils\/InstallAnywhere"/> --> <!--/home/cruisecontrol/jalview"/> -->
23   <!-- location of top level of jalview distribution directory -->
24   <property name="CUR_PATH" location="../../." />
25   <property name="USER_HOME" location="~" />
26   <property name="DEST_IADIR" location="${CUR_PATH}/JalviewBuild" />
27   <property name="java.awt.headless" value="true"/>
28   <taskdef name="buildinstaller" classname="com.zerog.ia.integration.ant.InstallAnywhereAntTask">
29   <classpath>
30     <fileset dir="${IA_LOCATION}/resource/build">
31       <include name="iaant.jar" />
32     </fileset>
33   </classpath>
34   </taskdef>
35   <target name="build">
36   <copy file="mac_logo.icns" tofile="${CUR_PATH}/mac_logo.icns" overwrite="true"/>
37   <copy file="${IA_PROJECT}" tofile="${IA_PROJECT}_reloc.iap_xml" overwrite="true"/>
38   <replace
39     token="${ABS_PATH}"
40     value="${CUR_PATH}"
41    file="${IA_PROJECT}_reloc.iap_xml" />
42   <buildinstaller 
43      IAlocation="${IA_LOCATION}"
44      IAProjectFile="${IA_PROJECT}_reloc.iap_xml"
45      BuildOutputLocation="${DEST_IADIR}" >
46      <arg value="-nupd"/>
47      </buildinstaller>
48  <delete>
49         <fileset dir="${CUR_PATH}">
50                 <include name="mac_logo.icns"/>
51         </fileset>
52  <fileset dir=".">
53    <include name="${IA_PROJECT}_reloc*"/>
54    <include name="iabuild.xml" />
55    <include name="*locales" />
56 </fileset>
57  </delete>
58 </target>
59 </project>