hg: macosx-port/macosx-port/jdk: Initial cut of a the .jre/.jdk loading JavaAppLauncher template.

Ryan Schipper psychodrive at gmail.com
Thu Sep 29 21:18:30 PDT 2011


Hi Mike,

As far I know, the use of JarBundler ANT tasks is very common. That's
what I used when I developed and one of the devs I work with now uses
them to this day for his applications. On Windows, Maven is popular
also.

As such, I personally support your suggestion of an ANT target (build.xml file).

A full-blown POM project would be ideal too, but I'm sure the
community will generate these based on the ANT task.

Our company is just starting work on an OS X version of our
application, so we are watching this thread very closely.

-- Ryan Schipper

On 30 September 2011 13:21, Mike Swingler <swingler at apple.com> wrote:
> On Sep 29, 2011, at 7:57 PM, swingler at apple.com wrote:
>
>> Changeset: 0f009e00361d
>> Author:    swingler at apple.com
>> Date:      2011-09-29 19:56 -0700
>> URL:       http://hg.openjdk.java.net/macosx-port/macosx-port/jdk/rev/0f009e00361d
>>
>> Initial cut of a the .jre/.jdk loading JavaAppLauncher template.
>>
>> + src/macosx/bundle/JavaAppLauncher/JavaAppLauncher.xcodeproj/project.pbxproj
>> + src/macosx/bundle/JavaAppLauncher/resources/English.lproj/InfoPlist.strings
>> + src/macosx/bundle/JavaAppLauncher/resources/JavaAppLauncher-Info.plist
>> + src/macosx/bundle/JavaAppLauncher/src/JVMArgs.h
>> + src/macosx/bundle/JavaAppLauncher/src/JVMArgs.m
>> + src/macosx/bundle/JavaAppLauncher/src/JavaAppLauncher.h
>> + src/macosx/bundle/JavaAppLauncher/src/JavaAppLauncher.m
>> + src/macosx/bundle/JavaAppLauncher/src/JavaAppLauncher_Prefix.pch
>> + src/macosx/bundle/JavaAppLauncher/src/main.m
>
> This check-in provides a JavaAppLauncher project that creates a shell .app bundle, copies in a 1.7.0.jre (or optionally, 1.7.0.jdk) into it's Contents/PlugIns directory, and uses the Info.plist to initialize the JVM and call into a launcher which invokes the app's specified main().
>
> Right now, this launcher and project file only exist in the source, and don't produce any artifacts in the build output.
>
> What we are looking for now are some ideas how to provide this technology in an easy to use format for the app developers in the OpenJDK community. How would you like make/use/invoke/build this stuff into/around your own apps? Should we build an .app shell as part of the jdk build output? Is the project file on it's own sufficient? Should there be a build.xml in the .jdk bundle that your IDE should invoke with the Info.plist details passed as parameters? Let us know what works best for you!
>
> Curious,
> Mike Swingler
> Java Engineering
> Apple Inc.
>
>


More information about the macosx-port-dev mailing list