Changeset f3f4529 for build.xml


Ignore:
Timestamp:
Dec 24, 2012 10:09:10 PM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
73e25aa
Parents:
5dbe629
Message:

use ant features instead of Unix commands where possible in the installer2app target. Also make izpack2app a settable property

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r5dbe629 rf3f4529  
    12521252
    12531253    <target name="checkForIzpack2App">
    1254         <available property="izpack2app.available" file="${user.home}/IzPack/utils/wrappers/izpack2app/izpack2app.py" />
     1254        <!-- we'll set the izpack2app binary name if it's not been set elsewhere yet -->
     1255        <property name="izpack2app.binary" value="${user.home}/IzPack/utils/wrappers/izpack2app/izpack2app.py" />
     1256        <available property="izpack2app.available" file="${izpack2app.binary}" />
    12551257    </target>
    12561258
    12571259    <target name="installer2app" if="izpack2app.available">
    1258         <mkdir dir="pkg-temp/osx" />
    1259         <exec executable="python" failonerror="true">
    1260             <arg value="${user.home}/IzPack/utils/wrappers/izpack2app/izpack2app.py" />
    1261             <arg value="${basedir}/i2pinstall_${full.version}_osx-only.jar" />
    1262             <arg value="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" />
    1263         </exec>
    1264         <exec executable="chmod" failonerror="true" osfamily="unix">
    1265                 <arg value="755" />
    1266                 <arg value="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app/Contents/MacOS/JavaApplicationStub" />
    1267         </exec>
    1268         <exec executable="tar" osfamily="unix" failonerror="true">
    1269                 <arg value="--owner=root" />
    1270                 <arg value="--group=root" />
    1271                 <arg value="-cjvf" />
    1272                 <arg value="${basedir}/i2pinstall_${full.version}_osx.tar.bz2" />
    1273                 <arg value="-C" />
    1274                 <arg value="${basedir}/pkg-temp/osx" />
    1275                 <arg value="i2p-${full.version}_osx-install.app" />
    1276         </exec>
     1260        <mkdir dir="pkg-temp/osx" />
     1261        <exec executable="python" failonerror="true">
     1262            <arg value="${izpack2app.binary}" />
     1263            <arg value="${basedir}/i2pinstall_${full.version}_osx-only.jar" />
     1264            <arg value="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" />
     1265        </exec>
     1266
     1267        <tar longfile="gnu" destfile="${basedir}/i2pinstall_${full.version}_osx.tar.bz2" compression="bzip2">
     1268            <tarfileset dir="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" prefix="/i2p-${full.version}_osx-install.app" filemode="644">
     1269                <include name="**/**" />
     1270                <exclude name="Contents/MacOS/*" />
     1271            </tarfileset>
     1272            <tarfileset dir="${basedir}/pkg-temp/osx/i2p-${full.version}_osx-install.app" prefix="/i2p-${full.version}_osx-install.app" filemode="755">
     1273                <include name="Contents/MacOS/*" />
     1274            </tarfileset>
     1275        </tar>
    12771276    </target>
    12781277
Note: See TracChangeset for help on using the changeset viewer.