com.izforge.izpack.installer
Class ScriptParser

java.lang.Object
  extended by com.izforge.izpack.installer.ScriptParser

public class ScriptParser
extends java.lang.Object

The script parser classe.

Author:
Julien Ponge, Johannes Lehtinen

Field Summary
static java.lang.String APP_NAME
          The application name.
static java.lang.String APP_URL
          The application URL.
static java.lang.String APP_VER
          The application version.
static java.lang.String CLASS_PATH
          The ClassPath.
static java.lang.String FILE_SEPARATOR
          The file separator character.
private  java.util.Collection files
          The files to parse.
static java.lang.String HOST_NAME
          The hostname.
static java.lang.String INSTALL_PATH
          The install path.
static java.lang.String IP_ADDRESS
          The ip address.
static java.lang.String ISO3_LANG
          The language IS03 code.
static java.lang.String JAVA_HOME
          The Java home path.
static java.lang.String USER_HOME
          The user home path.
static java.lang.String USER_NAME
          The user name.
private  VariableSubstitutor vs
          The variables substituror.
 
Constructor Summary
ScriptParser(java.util.Collection files, VariableSubstitutor vs)
          Constructs a new parser.
 
Method Summary
 void parseFiles()
          Parses the files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTALL_PATH

public static final java.lang.String INSTALL_PATH
The install path.

See Also:
Constant Field Values

JAVA_HOME

public static final java.lang.String JAVA_HOME
The Java home path.

See Also:
Constant Field Values

CLASS_PATH

public static final java.lang.String CLASS_PATH
The ClassPath.

See Also:
Constant Field Values

USER_HOME

public static final java.lang.String USER_HOME
The user home path.

See Also:
Constant Field Values

USER_NAME

public static final java.lang.String USER_NAME
The user name.

See Also:
Constant Field Values

HOST_NAME

public static final java.lang.String HOST_NAME
The hostname.

See Also:
Constant Field Values

IP_ADDRESS

public static final java.lang.String IP_ADDRESS
The ip address.

See Also:
Constant Field Values

FILE_SEPARATOR

public static final java.lang.String FILE_SEPARATOR
The file separator character.

See Also:
Constant Field Values

APP_NAME

public static final java.lang.String APP_NAME
The application name.

See Also:
Constant Field Values

APP_URL

public static final java.lang.String APP_URL
The application URL.

See Also:
Constant Field Values

APP_VER

public static final java.lang.String APP_VER
The application version.

See Also:
Constant Field Values

ISO3_LANG

public static final java.lang.String ISO3_LANG
The language IS03 code.

See Also:
Constant Field Values

files

private java.util.Collection files
The files to parse.


vs

private VariableSubstitutor vs
The variables substituror.

Constructor Detail

ScriptParser

public ScriptParser(java.util.Collection files,
                    VariableSubstitutor vs)
Constructs a new parser. The parsable files specified must have pretranslated paths (variables expanded and file separator characters converted if necessary).

Parameters:
files - the parsable files to process
vs - the variable substitutor to use
Method Detail

parseFiles

public void parseFiles()
                throws java.lang.Exception
Parses the files.

Throws:
java.lang.Exception - Description of the Exception