Changeset 17754 for release-kits/lirk3


Ignore:
Timestamp:
2008-11-06T15:11:37+13:00 (15 years ago)
Author:
oranfry
Message:

dont fail if jre is not bundled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/lirk3/installer/build.xml

    r17699 r17754  
    1717    <taskdef name="sevenzip" classname="org.apache.tools.ant.SevenZip" classpathref="project.classpath"/>
    1818
    19     <target name="Installing Core System" depends="">
     19    <condition property="bundled.java.exists">
     20        <available file="../@linux-java.extracted@/bin/java"/>
     21    </condition>
     22
     23    <target name="bootstrap" if="bundled.java.exists">
     24        <mkdir dir="${installDir}"/>
     25        <copy todir="${installDir}/packages/jre" failonerror="false">
     26            <fileset dir="../@linux-java.extracted@"/>
     27        </copy>
     28        <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>       
     29    </target>
     30
     31    <target name="Installing Core System" depends="bootstrap">
    2032
    2133        <!-- create the installation directory -->
    22         <echo>Creating Installation directory</echo>
    23         <echo>basedir: ${basedir}</echo>
    24         <echo>installDir: ${installDir}</echo>
    25         <echo>antinstaller.jar: ${antinstaller.jar}</echo>
    2634        <mkdir dir="${installDir}"/>
    27 
    2835
    2936        <!-- install files -->
     
    3441        <unzip src="${basedir}/core.comp" dest="${installDir}"/>
    3542        <delete file="core.comp"/>
    36 
    37         <!-- jre -->
    38         <mkdir dir="packages"/>
    39         <copy todir="${installDir}/packages/jre" failonerror="false">
    40             <fileset dir="../@linux-java.extracted@"/>
    41         </copy>
    42         <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>       
    4343
    4444        <echo>Setting Binaries to Executable</echo>
Note: See TracChangeset for help on using the changeset viewer.