Spawning a process from an app packaged with AppBundler impossible

Michael Hall mik3hall at gmail.com
Sun Jul 6 09:35:51 UTC 2014


On Jul 6, 2014, at 3:13 AM, Hendrik Schreiber <hs at tagtraum.com> wrote:

> Thanks for checking, Michael.
> 
> In my setup I use the regular Ant copy task to copy the JRE into my bundle.
> 
> As it turns out, in .../Content/Home/jre/lib is a file called "jspawnhelper" and it has to be executable for Runtime.getRuntime().exec(...) to work.
> In my case it wasn't, because Ant unfortunately swallows permissions :-(

I haven't had to worry about it or use it for a while but 'ditto' used to be a reliable OS X file copier.

		<exec executable="ditto">
			<arg value="-v"/>
			<arg value="-rsrcFork"/>
			<arg value="${basedir}/homepage.app"/>
			<arg value="${dmg.folder.dir}/homepage.app"/>
		</exec>

I think I originally got it from Carbon Copy Cloner which was shareware that could back up an entire machine.
man ditto 
shows it's still around.


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







More information about the macosx-port-dev mailing list