com.izforge.izpack
Class ExecutableFile

java.lang.Object
  extended by com.izforge.izpack.ExecutableFile
All Implemented Interfaces:
java.io.Serializable

public class ExecutableFile
extends java.lang.Object
implements java.io.Serializable

Encloses information about a executable file. This class abstracts the way to do a system dependent postprocessing of installation.

Author:
Olexij Tkatchenko
See Also:
Serialized Form

Field Summary
static int ABORT
          what to do if execution fails
 java.util.List argList
          List of arguments
static int ASK
           
static int BIN
          type of a file
 int executionStage
          Execution stage (NEVER, POSTINSTALL, UNINSTALL)
static int JAR
           
 boolean keepFile
          Indicates the file should be kept after executing.
 java.lang.String mainClass
          Main class of jar file
static int NEVER
           
 int onFailure
          Failure handling (ABORT, WARN, ASK)
 java.util.List osList
          List of operating systems to run on
 java.lang.String path
          The file path
static int POSTINSTALL
          when to execute this file
(package private) static long serialVersionUID
           
 int type
          type (BIN|JAR)
static int UNINSTALL
           
static int WARN
           
 
Constructor Summary
ExecutableFile()
          Constructs a new uninitialized instance.
ExecutableFile(java.lang.String path, int executionStage, int onFailure, java.util.List osList, boolean keepFile)
          Constructs and initializes a new instance.
ExecutableFile(java.lang.String path, int type, java.lang.String mainClass, int executionStage, int onFailure, java.util.List argList, java.util.List osList, boolean keepFile)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

POSTINSTALL

public static final int POSTINSTALL
when to execute this file

See Also:
Constant Field Values

NEVER

public static final int NEVER
See Also:
Constant Field Values

UNINSTALL

public static final int UNINSTALL
See Also:
Constant Field Values

BIN

public static final int BIN
type of a file

See Also:
Constant Field Values

JAR

public static final int JAR
See Also:
Constant Field Values

ABORT

public static final int ABORT
what to do if execution fails

See Also:
Constant Field Values

WARN

public static final int WARN
See Also:
Constant Field Values

ASK

public static final int ASK
See Also:
Constant Field Values

path

public java.lang.String path
The file path


executionStage

public int executionStage
Execution stage (NEVER, POSTINSTALL, UNINSTALL)


mainClass

public java.lang.String mainClass
Main class of jar file


type

public int type
type (BIN|JAR)


onFailure

public int onFailure
Failure handling (ABORT, WARN, ASK)


argList

public java.util.List argList
List of arguments


osList

public java.util.List osList
List of operating systems to run on


keepFile

public boolean keepFile
Indicates the file should be kept after executing. Default is false for backward compatibility.

Constructor Detail

ExecutableFile

public ExecutableFile()
Constructs a new uninitialized instance.


ExecutableFile

public ExecutableFile(java.lang.String path,
                      int executionStage,
                      int onFailure,
                      java.util.List osList,
                      boolean keepFile)
Constructs and initializes a new instance.

Parameters:
path - the file path
executionStage - when to execute
onFailure - what to do if execution fails
osList - list of operating systems to run on

ExecutableFile

public ExecutableFile(java.lang.String path,
                      int type,
                      java.lang.String mainClass,
                      int executionStage,
                      int onFailure,
                      java.util.List argList,
                      java.util.List osList,
                      boolean keepFile)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object