Deployment

Robert Krüger krueger at lesspain.de
Sun Mar 29 10:49:44 UTC 2015


Regarding your observation, I would not exclude the possibility of OSX
caching application resources if the bundle version in the Info.plist has
not changed. That may explain things. It definitely happened to me in the
past with Info.plist metadata changes not becoming effective until I moved
the app bundle around.

For OSX packaging I have successfully played around with the gradle plugin
at https://code.google.com/p/gradle-macappbundle/. It simply worked and did
the things I wanted it to do. However I was curious about an officially
supported java packaging mechanism that also works on windows but need to
integrate it in my gradle build, so I came across
https://bitbucket.org/shemnon/javafx-gradle by Danno Ferrin (Oracle), which
accoding to him is still being maintained and should work with current JDK
versions and at least one person uses it to produce Windows and Linux
distributions of his application. I haven't tried it yet as there are no
docs and I am not sure I understand the samples correctly. Each of them
contains a bootstrap script, which I don't really understand, i.e. do I
have to copy & paste this script into every project from which I use the
plugin? Feels odd but I probably misunderstand something here. I am also
not sure if this is JavaFX-only. My understanding was that Javapackager
used to be JavaFX-specific but then turned general-purpose, so maybe the
gradle plugin name is misleading and the whole thing also works for non-JFX
applications but I am really just speculating here.






On Sat, Mar 28, 2015 at 9:29 PM, Michael Hall <mik3hall at gmail.com> wrote:

> > From: Robert Krüger <krueger at lesspain.de>
> > Subject: Re: Deployment
> > Date: March 28, 2015 at 2:26:42 PM CDT
> > To: Michael Hall <mik3hall at gmail.com>
> > Cc: macosx-port-dev <macosx-port-dev at openjdk.java.net>
> >
> > Please do post your findings. I am on the same quest at the moment and
> maybe it helps to share experiences.
>
> https://java.net/projects/appbundler/lists/dev/archive/2014-05/message/19
>
> might be worth a look. I remembered something was supposed to have
> incorporated the AppBundler project. Making it sort of on-going supported
> AppBundler. But didn’t remember what it was.
> Anyone with more actual experience using javapackager to deploy (anywhere)
> might have some experiences for those unfamiliar.
>
> Had one thing strange already going on today. Not really deployment
> related but a bit of an experience.
> Just to get back on a working basis with the application I decided to make
> one small change I had been thinking about recently.
> I changed it, Eclipse, then exported the jar. I then manually Finder paste
> the jar into the application bundle for testing.
> No sign of the change having been made.
> Finder info showed the correct matching dates for the jar.
> Terminal ‘ls' commands did not. I finally used Terminal to mv the jar in
> and it then worked fine.
> Ran Disk Utility verify in case my hard drive was messed up somehow.
> Showed it was fine.
> So I don’t know why Finder and Terminal weren’t in sync with Finder
> apparently incorrectly showing the state of things.
> Strange.
>
> But definitely if anyone has any advice or any kind of tips on using
> javapackager or any other current method of OS X or cross-platform
> application deployment I would be interested in hearing about it.
>
> Michael Hall
>
> trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz
>
> HalfPipe Java 6/7 shell app
> http://www195.pair.com/mik3hall/index.html#halfpipe
>
> AppConverter convert Apple jvm to openjdk apps
> http://www195.pair.com/mik3hall/index.html#appconverter
>
>
>
>
>


-- 
Robert Krüger
Managing Partner
Lesspain GmbH & Co. KG

www.lesspain-software.com


More information about the macosx-port-dev mailing list