I’m trying to build a Mac OS X bundle application automatically.
When copying the file “/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub” of kind “Unix Executable File” with the copy tag:
<copy file="${stub.file}" todir="${dist.dir}/${ant.project.name}.app/Contents/MacOS"/> and getting a file of kind “Document” and the bundle doesn’t execute. If I copy it from Finder it works fine.
Is there a way to copy it and keep it’s kind with ant?
Thanks in advance!
The file ist copied correctly, but the execute permission ist lost as described in the ant manual:
You have to use the
cpcommand or change the permission later withchmod: