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, langpackAFTER_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, setSpecHelperpublic 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
InstallerListenerbeforePacks in interface InstallerListenerbeforePacks in class SimpleInstallerListeneridata - object containing the current installation datanpacks - number of packs which are defined for this installationhandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionpublic void beforePack(Pack pack, java.lang.Integer i, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListenerbeforePack in interface InstallerListenerbeforePack in class SimpleInstallerListenerpack - current pack objecti - current pack numberhandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionpublic void afterPack(Pack pack, java.lang.Integer i, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListenerafterPack in interface InstallerListenerafterPack in class SimpleInstallerListenerpack - current pack objecti - current pack numberhandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionpublic void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListenerafterPacks in interface InstallerListenerafterPacks in class SimpleInstallerListeneridata - object containing the current installation datahandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionprivate 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 afterpackInstallerExceptionprivate AntAction readAntCall(XMLElement el) throws InstallerException
el - XML element which contains the description of an ant callInstallerException