izpanel - Izpack can not find class of custom action defined for InstallPanel -
i use 5.0.0-rc4 izpack version , izpack-installer
artifact exists dependency in pom.xml.
<dependency> <groupid>org.codehaus.izpack</groupid> <artifactid>izpack-installer</artifactid> <version>${izpack.version}</version> </dependency>
i have defined custom action deletepreviousinstallationaction
installpanel
.
installpanel definition included in install.xml below.
<panels> <panel classname="targetpanel"/> <panel classname="userinputpanel" id="paneluserinput"/> <panel classname="installpanel"> <actions> <action stage="preconstruct" classname="com.x.y.z.w.deletepreviousinstallationaction" /> </actions> </panel> <panel classname="processpanel"/> <panel classname="simplefinishpanel"/> </panels>
deletepreviousinstallationaction
code:
package com.x.y.z.w; import com.izforge.izpack.api.data.installdata; import com.izforge.izpack.api.data.panelactionconfiguration; import com.izforge.izpack.api.handler.abstractuihandler; import com.izforge.izpack.data.panelaction; public class deletepreviousinstallationaction implements panelaction { @override public void executeaction(installdata id, abstractuihandler auih) { system.out.println("intall path: " + id.getinstallpath()); } @override public void initialize(panelactionconfiguration pac) { } }
when try build setup project, failure: class 'com.x.y.z.w.deletepreviousinstallationaction' not found. why happen?
you missing during compilation, has added in "jar" section install xml of izpack e.g.:
<jar src="@{jmx4ant:jmx4ant:jar}" stage="both" />
Comments
Post a Comment