Class ExecuteAntScript
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.ExecuteAntScript
-
- All Implemented Interfaces:
DBHostable
,GeneralAction
,JEEHostable
,OSHostable
,Referenceable
public final class ExecuteAntScript extends Action implements GeneralAction
Executes scripts designed for the Apache Jakarta Project's Ant application. If this action is added to the installer, InstallAnywhere bundles Ant with the application.
The path to the Ant script to run can be defined in two different ways, using the setExistingScript or the setBundleScript methods.
-
-
Constructor Summary
Constructors Constructor Description ExecuteAntScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBuildProperties()
The pathjava.lang.String
getBundleScript()
The path to thejava.util.Vector<DependencyProperty>
getDependencies()
The list of JAR and Zip file dependencies.java.lang.String
getDialogLabel()
The message to be displayed in the indeterminate dialog.java.lang.String
getExistingScript()
The path for an Ant build script file that either exists already or will be installed on the target system.java.lang.String
getExitCodeVar()
The name of the variable to store exit codes.AntScriptFileType
getScriptFileType()
The build script file type to use.boolean
getShowIndeterminateDialog()
Whether to show an indeterminate dialog during the execution of the script and to show the message you define calling setDialogLabel (Default: Executing ANT Script...).boolean
getShowPleaseWaitPanel()
Whether to show the "Please wait..." panel while installing the action.java.lang.String
getSpecifiedTarget()
The name of a specific build script target to run.boolean
getSubstituteIAVariables()
Whether to substitute the InstallAnywhere variables in build properties file.boolean
getUseBuildProperties()
Whether to use the build properties file.boolean
getUseDefaultTarget()
Whether to use the default build script target.void
setBuildProperties(java.lang.String path)
The pathvoid
setBundleScript(java.lang.String path)
The path to thevoid
setDependencies(java.util.Vector<DependencyProperty> dependencies)
Ant supports a number of additional tasks.void
setDialogLabel(java.lang.String label)
The message to be displayed in the indeterminate dialog.void
setExistingScript(java.lang.String path)
The path for an Ant build script file that either exists already or will be installed on the target system.void
setExitCodeVar(java.lang.String antExitCodeVar)
The name of the variable to store exit codes.void
setScriptFileType(AntScriptFileType type)
The build script file type to use.void
setShowIndeterminateDialog(boolean showIndeterminateDialog)
Whether to show an indeterminate dialog during the execution of the script and to show the message you define calling setDialogLabel (Default: Executing ANT Script...).void
setShowPleaseWaitPanel(boolean show)
Whether to show the "Please wait..." panel while installing the action.void
setSpecifiedTarget(java.lang.String target)
The name of a specific build script target to run.void
setSubstituteIAVariables(boolean substitute)
Whether to substitute the InstallAnywhere variables in build properties file.void
setUseBuildProperties(boolean use)
Whether to use the build properties file.void
setUseDefaultTarget(boolean useDefault)
Whether to use the default build script target.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
getExitCodeVar
public java.lang.String getExitCodeVar()
The name of the variable to store exit codes.
-
setExitCodeVar
public void setExitCodeVar(java.lang.String antExitCodeVar)
The name of the variable to store exit codes. Default: $EXECUTE_ANT_EXITCODE$.
-
getUseBuildProperties
public boolean getUseBuildProperties()
Whether to use the build properties file.
-
setUseBuildProperties
public void setUseBuildProperties(boolean use)
Whether to use the build properties file.
-
getSpecifiedTarget
public java.lang.String getSpecifiedTarget()
The name of a specific build script target to run. This target will only be used if theuseDefaultTarget
property is set to false.
-
setSpecifiedTarget
public void setSpecifiedTarget(java.lang.String target)
The name of a specific build script target to run. This target will only be used if theuseDefaultTarget
property is set to false.- See Also:
setUseDefaultTarget(boolean)
-
getExistingScript
public java.lang.String getExistingScript()
The path for an Ant build script file that either exists already or will be installed on the target system.- See Also:
setBundleScript(java.lang.String)
-
setExistingScript
public void setExistingScript(java.lang.String path)
The path for an Ant build script file that either exists already or will be installed on the target system.- See Also:
getBundleScript()
-
getScriptFileType
public AntScriptFileType getScriptFileType()
The build script file type to use.
Use AntScriptFileType.INSTALLED_FILE to specify a script file using the setBundleScript method, or use AntScriptFileType.EXISTING_FILE to specify a script file using the setExistingScript method.
-
setScriptFileType
public void setScriptFileType(AntScriptFileType type)
The build script file type to use.
Use AntScriptFileType.INSTALLED_FILE to specify a script file using the setBundleScript method, or use AntScriptFileType.EXISTING_FILE to specify a script file using the setExistingScript method.
-
getDependencies
public java.util.Vector<DependencyProperty> getDependencies()
The list of JAR and Zip file dependencies.
-
setDependencies
public void setDependencies(java.util.Vector<DependencyProperty> dependencies)
Ant supports a number of additional tasks. These tasks typically require an external library separate from the core Ant tasks. Add to this list any JAR or Zip file dependency to include in the Ant classpath.
Note: InstallAnywhere automatically adds dependencies required by the Execute Ant Script action.
-
getSubstituteIAVariables
public boolean getSubstituteIAVariables()
Whether to substitute the InstallAnywhere variables in build properties file.
-
setSubstituteIAVariables
public void setSubstituteIAVariables(boolean substitute)
Whether to substitute the InstallAnywhere variables in build properties file.
-
getUseDefaultTarget
public boolean getUseDefaultTarget()
Whether to use the default build script target.
-
setUseDefaultTarget
public void setUseDefaultTarget(boolean useDefault)
Whether to use the default build script target.
-
setShowPleaseWaitPanel
public void setShowPleaseWaitPanel(boolean show)
Whether to show the "Please wait..." panel while installing the action.
-
getShowPleaseWaitPanel
public boolean getShowPleaseWaitPanel()
Whether to show the "Please wait..." panel while installing the action.
-
getShowIndeterminateDialog
public boolean getShowIndeterminateDialog()
Whether to show an indeterminate dialog during the execution of the script and to show the message you define calling setDialogLabel (Default: Executing ANT Script...).
-
setShowIndeterminateDialog
public void setShowIndeterminateDialog(boolean showIndeterminateDialog)
Whether to show an indeterminate dialog during the execution of the script and to show the message you define calling setDialogLabel (Default: Executing ANT Script...).
-
getDialogLabel
public java.lang.String getDialogLabel()
The message to be displayed in the indeterminate dialog.- See Also:
setShowIndeterminateDialog(boolean)
-
setDialogLabel
public void setDialogLabel(java.lang.String label)
The message to be displayed in the indeterminate dialog. (default: Executing ANT Script......)- See Also:
setShowIndeterminateDialog(boolean)
-
setBundleScript
public void setBundleScript(java.lang.String path)
The path to the
-
getBundleScript
public java.lang.String getBundleScript()
The path to the
-
setBuildProperties
public void setBuildProperties(java.lang.String path)
The path
-
getBuildProperties
public java.lang.String getBuildProperties()
The path
-
-