call tar directly when making osx bundle

When using ant's tar option, the permissions on JavaStubApplication were
getting reset, causing the extracted archive to not be executable. By using the
system's tar the permissions are not reset.
This commit is contained in:
kytv
2011-10-01 17:10:05 +00:00
parent 77e10946b3
commit 625e029b18

View File

@ -170,7 +170,15 @@
<ant target="dotarbundle" />
</target>
<target name="dotarbundle" unless="notarbundle">
<tar destfile="itoopie.app.tar.bz2" basedir="${temp}" compression="bzip2" />
<exec executable="tar" osfamily="unix" failonerror="true">
<arg value="--owner=root" />
<arg value="--group=root" />
<arg value="-cjvf" />
<arg value="itoopie.app.tar.bz2" />
<arg value="-C" />
<arg value="${temp}" />
<arg value="itoopie.app" />
</exec>
</target>
</project>