public class AntActionInstallerListener extends SimpleInstallerListener
Modifier and Type | Field and Description |
---|---|
private HashMap |
actions |
static String |
SPEC_FILE_NAME
Name of the specification file
|
private 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,
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,
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,
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,
String order) |
HashMap |
getActions()
Returns the actions map.
|
protected ArrayList |
getActions(String packName,
String order)
Returns the defined actions for the given pack in the requested order.
|
private void |
performAllActions(String packName,
String order,
AbstractUIProgressHandler handler)
Performs all actions which are defined for the given pack and order.
|
private AntAction |
readAntCall(net.n3.nanoxml.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 String SPEC_FILE_NAME
private ArrayList uninstActions
public AntActionInstallerListener()
public HashMap getActions()
public void beforePacks(AutomatedInstallData idata, Integer npacks, AbstractUIProgressHandler handler) throws 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 UIProgressHandlerException
public void beforePack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception
InstallerListener
beforePack
in interface InstallerListener
beforePack
in class SimpleInstallerListener
pack
- current pack objecti
- current pack numberhandler
- a handler to the current used UIProgressHandlerException
public void afterPack(Pack pack, Integer i, AbstractUIProgressHandler handler) throws Exception
InstallerListener
afterPack
in interface InstallerListener
afterPack
in class SimpleInstallerListener
pack
- current pack objecti
- current pack numberhandler
- a handler to the current used UIProgressHandlerException
public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception
InstallerListener
afterPacks
in interface InstallerListener
afterPacks
in class SimpleInstallerListener
idata
- object containing the current installation datahandler
- a handler to the current used UIProgressHandlerException
private int getActionCount(AutomatedInstallData idata, String order)
protected ArrayList getActions(String packName, 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(String packName, 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(net.n3.nanoxml.XMLElement el) throws InstallerException
el
- XML element which contains the description of an ant callInstallerException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses