com.izforge.izpack.installer
Class AutomatedInstaller

java.lang.Object
  extended bycom.izforge.izpack.installer.InstallerBase
      extended bycom.izforge.izpack.installer.AutomatedInstaller

public class AutomatedInstaller
extends InstallerBase

Runs the install process in text only (no GUI) mode.

Author:
Jonathan Halliday , Julien Ponge , Johannes Lehtinen

Field Summary
private  AutomatedInstallData idata
          The automated installation data.
private  java.util.TreeMap panelInstanceCount
           
 
Fields inherited from class com.izforge.izpack.installer.InstallerBase
LANG_FILE_NAME
 
Constructor Summary
AutomatedInstaller(java.lang.String inputFilename)
          Constructing an instance triggers the install.
 
Method Summary
private  void doInstall(AutomatedInstallData installdata)
          Runs the automated installation logic for each panel in turn.
 XMLElement getXMLData(java.io.File input)
          Loads the xml data for the automated mode.
private  void writeUninstallData()
          Writes the uninstalldata.
 
Methods inherited from class com.izforge.izpack.installer.InstallerBase
addCustomLangpack, loadInstallData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

panelInstanceCount

private java.util.TreeMap panelInstanceCount

idata

private AutomatedInstallData idata
The automated installation data.

Constructor Detail

AutomatedInstaller

public AutomatedInstaller(java.lang.String inputFilename)
                   throws java.lang.Exception
Constructing an instance triggers the install.

Parameters:
inputFilename - Name of the file containing the installation data.
Throws:
java.lang.Exception - Description of the Exception
Method Detail

writeUninstallData

private void writeUninstallData()
Writes the uninstalldata. Unfortunately, Java doesn't allow multiple inheritance, so AutomatedInstaller and InstallerFrame can't share this code ... :-/ TODO: We should try to fix this in the future.


doInstall

private void doInstall(AutomatedInstallData installdata)
                throws java.lang.Exception
Runs the automated installation logic for each panel in turn.

Parameters:
installdata - the installation data.
Throws:
java.lang.Exception

getXMLData

public XMLElement getXMLData(java.io.File input)
                      throws java.lang.Exception
Loads the xml data for the automated mode.

Parameters:
input - The file containing the installation data.
Throws:
java.lang.Exception - thrown if there are problems reading the file.