public class AntActionInstallerListener extends SimpleInstallerListener
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap |
actions |
static java.lang.String |
SPEC_FILE_NAME
Name of the specification file
|
private java.util.ArrayList |
uninstActions |
doInformProgressBar, LANG_FILE_NAME, langpack
AFTER_DIR, AFTER_FILE, AFTER_PACK, AFTER_PACKS, BEFORE_DIR, BEFORE_FILE, BEFORE_PACK, BEFORE_PACKS
Constructor and Description |
---|
AntActionInstallerListener()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
afterPack(Pack pack,
java.lang.Integer i,
AbstractUIProgressHandler handler)
This method will be called from the unpacker after the installation of one pack was
performed.
|
void |
afterPacks(AutomatedInstallData idata,
AbstractUIProgressHandler handler)
This method will be called from the unpacker after the installation of all packs was
performed.
|
void |
beforePack(Pack pack,
java.lang.Integer i,
AbstractUIProgressHandler handler)
This method will be called from the unpacker before the installation of one pack will be
performed.
|
void |
beforePacks(AutomatedInstallData idata,
java.lang.Integer npacks,
AbstractUIProgressHandler handler)
This method will be called from the unpacker before the installation of all packs will be
performed.
|
private int |
getActionCount(AutomatedInstallData idata,
java.lang.String order) |
java.util.HashMap |
getActions()
Returns the actions map.
|
protected java.util.ArrayList |
getActions(java.lang.String packName,
java.lang.String order)
Returns the defined actions for the given pack in the requested order.
|
private void |
performAllActions(java.lang.String packName,
java.lang.String order,
AbstractUIProgressHandler handler)
Performs all actions which are defined for the given pack and order.
|
private AntAction |
readAntCall(XMLElement el)
Returns an ant call which is defined in the given XML element.
|
afterDir, afterFile, beforeDir, beforeFile, getInstalldata, getMsg, getProgressBarCallerCount, getProgressBarCallerId, getSpecHelper, informProgressBar, isFileListener, setInstalldata, setProgressBarCaller, setSpecHelper
public static final java.lang.String SPEC_FILE_NAME
private java.util.HashMap actions
private java.util.ArrayList uninstActions
public AntActionInstallerListener()
public java.util.HashMap getActions()
public void beforePacks(AutomatedInstallData idata, java.lang.Integer npacks, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListener
beforePacks
in interface InstallerListener
beforePacks
in class SimpleInstallerListener
idata
- object containing the current installation datanpacks
- number of packs which are defined for this installationhandler
- a handler to the current used UIProgressHandlerjava.lang.Exception
public void beforePack(Pack pack, java.lang.Integer i, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListener
beforePack
in interface InstallerListener
beforePack
in class SimpleInstallerListener
pack
- current pack objecti
- current pack numberhandler
- a handler to the current used UIProgressHandlerjava.lang.Exception
public void afterPack(Pack pack, java.lang.Integer i, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListener
afterPack
in interface InstallerListener
afterPack
in class SimpleInstallerListener
pack
- current pack objecti
- current pack numberhandler
- a handler to the current used UIProgressHandlerjava.lang.Exception
public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListener
afterPacks
in interface InstallerListener
afterPacks
in class SimpleInstallerListener
idata
- object containing the current installation datahandler
- a handler to the current used UIProgressHandlerjava.lang.Exception
private int getActionCount(AutomatedInstallData idata, java.lang.String order)
protected java.util.ArrayList getActions(java.lang.String packName, java.lang.String order)
packName
- name of the pack for which the actions should be returnedorder
- order to be used; valid are beforepack and afterpackprivate void performAllActions(java.lang.String packName, java.lang.String order, AbstractUIProgressHandler handler) throws InstallerException
packName
- name of the pack for which the actions should be performedorder
- order to be used; valid are beforepack and afterpackInstallerException
private AntAction readAntCall(XMLElement el) throws InstallerException
el
- XML element which contains the description of an ant callInstallerException