|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.event.ActionBase
com.izforge.izpack.event.AntAction
This class contains data and 'perform' logic for ant action listeners.
Field Summary | |
static java.lang.String |
ANTACTION
|
static java.lang.String |
ANTACTIONS
|
static java.lang.String |
ANTCALL
|
private java.lang.String |
buildFile
|
private java.lang.String |
logFile
|
private java.util.Properties |
properties
|
private java.util.List |
propertyFiles
|
private boolean |
quiet
|
private static long |
serialVersionUID
|
private java.util.List |
targets
|
private java.util.List |
uninstallTargets
|
private boolean |
verbose
|
Fields inherited from class com.izforge.izpack.event.ActionBase |
ACTION, AFTERDELETION, AFTERPACK, AFTERPACKS, ARCH, ASKFALSE, ASKTRUE, BEFOREDELETION, BEFOREPACK, BEFOREPACKS, BUILDFILE, CASESENSITIVE, COPY, EXCLUDE, EXCLUDES, FALSE, FAMILY, FILESET, INCLUDE, INCLUDES, LOGFILE, MAC, messageID, MESSAGEID, MOVE, NAME, NO, NOTHING, ONDEST, order, ORDER, OS, OVERRIDE, PACK, PATH, PROPERTY, PROPERTYFILE, QUIET, REMOVE, REWIND, SRCDIR, TARGET, TARGETDIR, TOUCH, TRUE, UNINSTALL_ACTION, UNINSTALL_ORDER, UNINSTALL_TARGET, uninstallOrder, UNIX, UPDATE, VALUE, VERBOSE, VERSION, WINDOWS, YES |
Constructor Summary | |
AntAction()
Default constructor |
Method Summary | |
private void |
addProperties(org.apache.tools.ant.Project proj,
java.util.Properties props)
|
private void |
addPropertiesFromPropertyFiles(org.apache.tools.ant.Project proj)
|
void |
addPropertyFile(java.lang.String propertyFile)
Adds one property file path to the internal list of property file paths. |
void |
addTarget(java.lang.String target)
Adds the given target to the target list which should be performed at installation time. |
void |
addUninstallTarget(java.lang.String target)
Adds the given target to the target list which should be performed at uninstallation time. |
private org.apache.tools.ant.BuildLogger |
createLogger()
|
java.lang.String |
getBuildFile()
Returns the build file. |
java.lang.String |
getLogFile()
Returns the current logfile path as string. |
java.util.Properties |
getProperties()
Returns the properties. |
java.lang.String |
getProperty(java.lang.String name)
Returns the value for the property identified by the given name. |
java.util.List |
getPropertyFiles()
Returns the property file paths as list of strings. |
java.util.List |
getTargets()
Returns the targets. |
java.util.List |
getUninstallTargets()
Returns the uninstaller targets. |
boolean |
isQuiet()
Returns the quiet state. |
boolean |
isVerbose()
Returns the verbose state. |
void |
performAction(boolean uninstall)
Performs all defined actions. |
void |
performInstallAction()
Performs all defined install actions. |
void |
performUninstallAction()
Performs all defined uninstall actions. |
void |
setBuildFile(java.lang.String buildFile)
Sets the build file to be used to the given string. |
void |
setLogFile(java.lang.String logFile)
Sets the logfile path to the given string. |
void |
setProperties(java.util.Properties properties)
Sets the internal properties to the given properties. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the given value to the property identified by the given name. |
void |
setPropertyFiles(java.util.List propertyFiles)
Sets the property file path list to the given list. |
void |
setQuiet(boolean quiet)
Sets whether the associated ant task should be performed quiet or not. |
void |
setTargets(java.util.ArrayList targets)
Sets the targets which should be performed at installation time. |
void |
setUninstallTargets(java.util.ArrayList targets)
Sets the targets which should be performed at uninstallation time. |
void |
setVerbose(boolean verbose)
Sets the verbose state. |
Methods inherited from class com.izforge.izpack.event.ActionBase |
getMessageID, getOrder, getUninstallOrder, setMessageID, setOrder, setUninstallOrder |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final java.lang.String ANTACTIONS
public static final java.lang.String ANTACTION
public static final java.lang.String ANTCALL
private boolean quiet
private boolean verbose
private java.util.Properties properties
private java.util.List targets
private java.util.List uninstallTargets
private java.lang.String logFile
private java.lang.String buildFile
private java.util.List propertyFiles
Constructor Detail |
public AntAction()
Method Detail |
public void performInstallAction() throws java.lang.Exception
java.lang.Exception
public void performUninstallAction() throws java.lang.Exception
java.lang.Exception
public void performAction(boolean uninstall) throws java.lang.Exception
uninstall
- An install/uninstall switch. If this is true only the uninstall
actions, otherwise only the install actions are being performed.
java.lang.Exception
for calling all install actions.
,
for calling all uninstall actions.
public java.lang.String getBuildFile()
public void setBuildFile(java.lang.String buildFile)
buildFile
- build file path to be usedpublic java.lang.String getLogFile()
public void setLogFile(java.lang.String logFile)
logFile
- to be setpublic java.util.List getPropertyFiles()
public void addPropertyFile(java.lang.String propertyFile)
propertyFile
- to be addedpublic void setPropertyFiles(java.util.List propertyFiles)
propertyFiles
- list of property file paths to be setpublic java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
properties
- properties to be setpublic void setProperty(java.lang.String name, java.lang.String value)
name
- key of the propertyvalue
- value to be used for the propertypublic java.lang.String getProperty(java.lang.String name)
name
- name of the property
public boolean isQuiet()
public void setQuiet(boolean quiet)
quiet
- quiet state to setpublic java.util.List getTargets()
public void setTargets(java.util.ArrayList targets)
targets
- list of targetspublic void addTarget(java.lang.String target)
target
- target to be addpublic java.util.List getUninstallTargets()
public void setUninstallTargets(java.util.ArrayList targets)
targets
- list of targetspublic void addUninstallTarget(java.lang.String target)
target
- target to be addpublic boolean isVerbose()
public void setVerbose(boolean verbose)
verbose
- state to be setprivate org.apache.tools.ant.BuildLogger createLogger()
private void addProperties(org.apache.tools.ant.Project proj, java.util.Properties props)
private void addPropertiesFromPropertyFiles(org.apache.tools.ant.Project proj) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |