Uploaded image for project: 'IzPack'
  1. IzPack
  2. IZPACK-829

Enable default TargetPanel directory to be configured via variables based on platform

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 4.3.5
    • Fix Version/s: 5.0
    • Component/s: Installer
    • Labels:
      None

      Description

      In 4.3.5, the default directory displayed in TargetPanel may be configured in a text file named:

      • TargetPanel.dir.<os name>
      • TargetPanel.dir

      In the <os name> form, the os name is one of:

      • System.getProperty("os.name").replace(' ', '_')
      • "windows"
      • "macosx"
      • "unix"

      For 4.3.6, IZPACK-798 - Cannot modify INSTALL_PATH before TargetPanel gets called Complete changed the above to use variables instead of text files, following the same naming convention.
      For 5.0 a better approach would be to use Platform to determine the appropriate variable.
      The variable could be derived from:

      • Platform.getSymbolicName(), if the current platform has one, E.g. TargetPanel.dir.windows_7
      • Platform.getName() E.g., TargetPanel.dir.windows
      • The parent platform, if there is no directory specified for getSymbolicName() or getName(). E.g. if current platform is FEDORA_LINUX and there is no TargetPanel.dir.fedora_linux, fall back to TargetPanel.dir.linux. Failing that, fall back to TargetPanel.dir.unix

      If no variable is specified for the current platform, it would use TargetPanel.dir

        Attachments

          Activity

            People

            • Assignee:
              timanderson Tim Anderson (Inactive)
              Reporter:
              timanderson Tim Anderson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: