Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: some empty lines removed

...

Note: This is not (NOT!) the run() method from the java.lang.Runnable interface. Nor is this codified as an interface in the IzPack javadoc.  Instead, this would seem to be a magic method signature that is otherwise undocumented.

 

a. Contents of a minimal file that matches the requirements:

...

This class uses the com.izforge.izpack.panels.process.AbstractUIProcessHandler class to log output into a calling ProcessPanel. See the IzPack javadoc for details. 

b.  Compile your Java class

...

The ProcessPanel.Spec.xml file holds the XML configuration for the external Java class you want to execute.

 

Code Block
languagehtml/xml
titleinstall.xml file
<installation>
   ...

  <resources>
    <res id="ProcessPanel.Spec.xml" src="installer/ProcessPanel.Spec.xml"/>
    ...
  </resources>

  ...
</installation>


 

b.  Reference your JAR

At the top level of the install.xml file, add a reference to your JAR file containing the class.

...

Code Block
languagehtml/xml
titleinstall.xml file
<installation>

  <resources>
    <res id="ProcessPanel.Spec.xml" src="installer/ProcessPanel.Spec.xml"/>
  </resources>


  ...

  <jar src="path/to/hello.jar" stage="install"/>

  ....

</installation>

Adding the jar element inear the <resources> definition is a good idea.

...

Code Block
languagehtml/xml
titleinstall.xml file
<installation>

  <resources>
    <res id="ProcessPanel.Spec.xml" src="installer/ProcessPanel.Spec.xml"/>
  </resources>

  ...

  <jar src="path/to/hello.jar" stage="install"/>

  ....

  ...
  <panels>
    ...
    <panel classname="ProcessPanel"/>
  </panels>
  ....
</installation>

...

...

3. Create the ProcessPanel.Spec.xml file

...