Uploaded image for project: 'IzPack'
  1. IZPACK-798

Cannot modify INSTALL_PATH before TargetPanel gets called


    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 4.3.5
    • Fix Version/s: 4.3.6, 5.0
    • Component/s: Panels
    • Environment:

      Linux, Windows,...


      TargetPanel was modified in order to take variables out of the install definition (Target.dir.os)
      A nice feature would be to allow modifying the target path within user panels called before the target panel. This is impossible right now

      After investigation, I noticed that the code loading the variables out of the install.xml file is called through the constructor.

      Instead, I propose to call that code through the panelActivated() method which was created for this purpose

      I issued a patch with this issue. I tested the patch which works

      • created a user panel that let the user select some kind of "target environment" ie development or production
      • that panel is the first to be called
      • modified installer.xml so the TargetPanel.dir variable is using the variable defined in the first user panel
      • tested the installer, the default install directory changes as expected




            • Assignee:
              timanderson Tim Anderson [X] (Inactive)
              fabiennisol Fabien Nisol [X] (Inactive)
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: