Ant's copy task loses file permissions, and it's zip and jar tasks don't preserve them, but it's possible to explicitly set permissions of files within a zip archive.