SourceForge has been redesigned. Learn more.
Close

#323 Ant-built distributions do not preserve file permissions

2.1rc2
closed-fixed
Core (462)
5
2005-12-11
2005-12-09
Anonymous
No

The observed symptom is that the Mac OS X distribution (2.1rc2 tested)
does not launch. This is because SquirrelSQL.app/Contents/MacOS/
JavaApplicationStub - as distributed - is not executable.

The immediate cause is that sql12/build/build.xml prepares distributions
which do not preserve file permissions. (Zip does not store file
permissions. Tar can, but they must explicitly be defined in filesets in the
buildfile - the disk file permissions will not be copied.)

This is definitely an issue for the "mac_dist" target (see Patch 1376740). If
the other distributions were handled by ant (it doesn't appear that they
are), this would likely be an issue for the *.sh files in the -standard, and -
base distributions as well. (Perhaps -install as well, depending on how
IzPack handles permissions.)

The fix for mac_dist (from the patch) is along the lines of:

<tar destfile="${dist_dir}/SquirrelSQLMac.tar.gz" compression="gzip">
<tarfileset dir="${dist_dir}/mac" mode="755">
<include name="**/JavaApplicationStub" />
</tarfileset>
<tarfileset dir="${dist_dir}/mac">
<include name="**" />
<exclude name="**/JavaApplicationStub" />
</tarfileset>
</tar>

Discussion

  • Charles Albrecht

    Logged In: YES
    user_id=211712

    Forgot to log in before creating the bug.

     
  • Rob Manning

    Rob Manning - 2005-12-11
    • assigned_to: colbell --> manningr
    • status: open --> closed-fixed
     
  • Rob Manning

    Rob Manning - 2005-12-11

    Logged In: YES
    user_id=1287991

    It's now in CVS.

    Rob

     

Log in to post a comment.