com.izforge.izpack.installer
Class InstallerBase

java.lang.Object
  extended by com.izforge.izpack.installer.InstallerBase
Direct Known Subclasses:
AutomatedInstaller, GUIInstaller

public class InstallerBase
extends java.lang.Object

Common utility functions for the GUI and text installers. (Do not import swing/awt classes to this class.)

Author:
Jonathan Halliday, Julien Ponge

Field Summary
protected static java.lang.String LANG_FILE_NAME
          The base name of the XML file that specifies the custom langpack.
 
Constructor Summary
InstallerBase()
           
 
Method Summary
protected  void addCustomLangpack(AutomatedInstallData idata)
          Add the contents of a custom langpack (if exist) to the previos loaded comman langpack.
private  java.lang.String buildWindowsDefaultPath()
          Builds the default path for Windows (i.e Program Files/...).
private  void loadCustomData(AutomatedInstallData installdata)
          Loads custom data like listener and lib references if exist and fills the installdata.
 void loadInstallData(AutomatedInstallData installdata)
          Loads the installation data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LANG_FILE_NAME

protected static final java.lang.String LANG_FILE_NAME
The base name of the XML file that specifies the custom langpack. Searched is for the file with the name expanded by _ISO3.

See Also:
Constant Field Values
Constructor Detail

InstallerBase

public InstallerBase()
Method Detail

loadInstallData

public void loadInstallData(AutomatedInstallData installdata)
                     throws java.lang.Exception
Loads the installation data. Also sets environment variables to installdata. All system properties are available as $SYSTEM_ where is the actual name _BUT_ with all separators replaced by '_'. Properties with null values are never stored. Example: $SYSTEM_java_version or $SYSTEM_os_name

Parameters:
installdata - Where to store the installation data.
Throws:
java.lang.Exception - Description of the Exception

addCustomLangpack

protected void addCustomLangpack(AutomatedInstallData idata)
Add the contents of a custom langpack (if exist) to the previos loaded comman langpack. If not exist, trace an info and do nothing more.

Parameters:
idata - install data to be used

buildWindowsDefaultPath

private java.lang.String buildWindowsDefaultPath()
Builds the default path for Windows (i.e Program Files/...).

Returns:
The Windows default installation path.

loadCustomData

private void loadCustomData(AutomatedInstallData installdata)
                     throws java.lang.Exception
Loads custom data like listener and lib references if exist and fills the installdata.

Parameters:
installdata - installdata into which the custom action data should be stored
Throws:
java.lang.Exception