mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

abobrov
23.07.2007 dec45bbdb6a28b6c28c371982e5d4737a008f4a0
- fix permissions for Java Application Stubs used in MacOS X app bundles so that they are usable from within WebStart installation.
2 files modified
26 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/Installation.java 5 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 21 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Installation.java
@@ -213,6 +213,11 @@
  public static final String WINDOWS_STATUSPANEL_FILE_NAME = "status-panel.bat";
  /**
   * The MacOS X Java application stub name.
   */
  public static final String MAC_JAVA_APP_STUB_NAME = "JavaApplicationStub";
  /**
   * The MacOS X status panel application bundle name.
   */
  public static final String MAC_STATUSPANEL_FILE_NAME = "StatusPanel.app";
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -1224,27 +1224,22 @@
    if (file.getParent().endsWith(
        File.separator + Installation.WINDOWS_BINARIES_PATH_RELATIVE) ||
        file.getParent().endsWith(
        File.separator + Installation.UNIX_BINARIES_PATH_RELATIVE))
    {
      if (name.endsWith(".bat"))
      {
        File.separator + Installation.UNIX_BINARIES_PATH_RELATIVE)) {
      if (name.endsWith(".bat")) {
        perm = "644";
      }
      else
      {
      else {
        perm = "755";
      }
    }
    else if (name.endsWith(".sh"))
    {
    } else if (name.endsWith(".sh")) {
      perm = "755";
    } else if (name.endsWith(Installation.UNIX_SETUP_FILE_NAME) ||
            name.endsWith(Installation.UNIX_UNINSTALL_FILE_NAME) ||
            name.endsWith(Installation.UNIX_UPGRADE_FILE_NAME))
    {
            name.endsWith(Installation.UNIX_UPGRADE_FILE_NAME)) {
      perm = "755";
    } else
    {
    } else if (name.endsWith(Installation.MAC_JAVA_APP_STUB_NAME)) {
      perm = "755";
    } else {
      perm = "644";
    }
    return perm;