Changeset 6216 in josm for trunk/build.xml


Ignore:
Timestamp:
2013-09-04T01:23:00+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8654 - New target distmac7 to build Mac OS X package for Oracle Java 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r6208 r6216  
    103103        </jar>
    104104    </target>
     105        <!-- Compatibility Mac OS X target for Java 6 (incompatible with new on for Java 7, see #8654, #9035) -->
    105106    <target name="distmac" depends="dist">
    106107        <!-- modify MacOS X Info.plist file to hold the SVN version number -->
     
    116117        </zip>
    117118    </target>
     119        <!-- New Mac OS X target for Java 7 -->
     120    <target name="distmac7" depends="dist">
     121        <!-- Using https://bitbucket.org/infinitekind/appbundler to create mac application bundle -->
     122        <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="tools/appbundler-1.0ea.jar"/>
     123        <!-- create MacOS X application bundle -->
     124        <bundleapp outputdirectory="dist" name="JOSM" displayname="JOSM" executablename="JOSM" identifier="org.openstreetmap.josm"
     125                   mainclassname="org.openstreetmap.josm.gui.MainApplication"
     126                   applicationCategory="public.app-category.utilities"
     127                   shortversion="${version.entry.commit.revision} SVN"
     128                   version="${version.entry.commit.revision} SVN"
     129                   icon="macosx/JOSM.app/Contents/Resources/JOSM.icns"
     130                   highResolutionCapable="false">
     131
     132            <arch name="x86_64"/>
     133            <arch name="i386"/>
     134
     135            <classpath file="dist/josm-custom.jar"/>
     136
     137            <option value="-Xmx512m"/>
     138
     139            <option value="-Xdock:icon=Contents/Resources/JOSM.icns"/>
     140            <option value="-Xdock:name=JOSM"/>
     141
     142            <!-- OSX specific options, optional -->
     143            <option value="-Dapple.laf.useScreenMenuBar=true"/>
     144            <option value="-Dcom.apple.macos.use-file-dialog-packages=true"/>
     145            <option value="-Dcom.apple.macos.useScreenMenuBar=true"/>
     146            <option value="-Dcom.apple.mrj.application.apple.menu.about.name=JOSM"/>
     147            <option value="-Dcom.apple.smallTabs=true"/>
     148        </bundleapp>
     149
     150        <!-- create ZIP file with MacOS X application bundle -->
     151        <zip destfile="dist/josm-custom-macosx-java7.zip" update="true">
     152            <zipfileset dir="build" includes="CONTRIBUTION README LICENSE"/>
     153            <zipfileset dir="dist" includes="JOSM.app/**/*" filemode="755" />
     154        </zip>
     155        </target>
    118156    <target name="javacc" depends="init" unless="javacc.notRequired">
    119157        <mkdir dir="${mapcss.dir}/parsergen"/>
Note: See TracChangeset for help on using the changeset viewer.