com.izforge.izpack.installer
Class ConsoleInstaller

java.lang.Object
  extended by com.izforge.izpack.installer.InstallerBase
      extended by com.izforge.izpack.installer.ConsoleInstaller

public class ConsoleInstaller
extends InstallerBase

Runs the console installer

Author:
Mounir el hajj

Field Summary
private  AutomatedInstallData installdata
           
private  java.io.PrintWriter printWriter
           
private  java.util.Properties properties
           
private  boolean result
           
 
Fields inherited from class com.izforge.izpack.installer.InstallerBase
LANG_FILE_NAME
 
Constructor Summary
ConsoleInstaller(java.lang.String langcode)
           
 
Method Summary
protected  void doGeneratePropertiesFile(java.lang.String strFile)
           
protected  void doInstall()
           
protected  void doInstallFromPropertiesFile(java.lang.String strFile)
           
protected  void iterateAndPerformAction(java.lang.String strAction)
           
 void run(int type, java.lang.String path)
           
private  boolean validatePanel(Panel p)
          Validate a panel.
 
Methods inherited from class com.izforge.izpack.installer.InstallerBase
addCustomLangpack, checkInstallerRequirements, getAvailableLangPacks, getResource, getRules, loadConditions, loadDynamicVariables, loadInstallData, loadInstallerRequirements, refreshDynamicVariables, showMissingRequirementMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

installdata

private AutomatedInstallData installdata

result

private boolean result

properties

private java.util.Properties properties

printWriter

private java.io.PrintWriter printWriter
Constructor Detail

ConsoleInstaller

public ConsoleInstaller(java.lang.String langcode)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

iterateAndPerformAction

protected void iterateAndPerformAction(java.lang.String strAction)
                                throws java.lang.Exception
Throws:
java.lang.Exception

doInstall

protected void doInstall()
                  throws java.lang.Exception
Throws:
java.lang.Exception

doGeneratePropertiesFile

protected void doGeneratePropertiesFile(java.lang.String strFile)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

doInstallFromPropertiesFile

protected void doInstallFromPropertiesFile(java.lang.String strFile)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

validatePanel

private boolean validatePanel(Panel p)
                       throws InstallerException
Validate a panel.

Parameters:
p - The panel to validate
Returns:
The status of the validation - false makes the installation fail
Throws:
InstallerException

run

public void run(int type,
                java.lang.String path)
         throws java.lang.Exception
Throws:
java.lang.Exception