We need you!

Icon

The IzPack documentation needs work, and you are invited to edit it!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
titlea. Contents of a minimal file that matches the requirements:
languagejava
package org.callimachusproject;
import com.izforge.izpack.utilpanels.*process.AbstractUIProcessHandler;

public class HelloWorld {
  public void run(AbstractUIProcessHandler handler, String[] args) {
    handler.logOutput("Hello, World!", false);
  }
}

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

...

Code Block
titleCompile your Java class
languagebash
$ javac -cp "/path/to/izpack-standalone-compiler.jar:." org/callimachusproject/HelloWorld.java

If you are using maven, include the dependency izpack-panel to get the AbstractUIProcessHandler class.

c. Package your Java class into a separate JAR

...

This is partially documented in  http://izpack.org/documentation/panels.html#processpanel  DOES THIS NEED TO BE ADDED TO THE VERSION 5 DOCS?

...

Code Block
titleProcessPanel.Spec.xml
languagehtml/xml
<processing>
  <logfiledir>$INSTALL_PATH</logfiledir>
  <job name="setup">
    <executeclass name="org.callimachusproject.HelloWorld"></>
		<arg>${someVariable}</arg>
	</executeclass>
  </job>
  <onFail previous="true" next="false" />
  <onSuccess previous="false" next="true" />
</processing>

...