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.StringgetBuildProperties()The pathjava.lang.StringgetBundleScript()The path to thejava.util.Vector<DependencyProperty>getDependencies()The list of JAR and Zip file dependencies.java.lang.StringgetDialogLabel()The message to be displayed in the indeterminate dialog.java.lang.StringgetExistingScript()The path for an Ant build script file that either exists already or will be installed on the target system.java.lang.StringgetExitCodeVar()The name of the variable to store exit codes.AntScriptFileTypegetScriptFileType()The build script file type to use.booleangetShowIndeterminateDialog()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...).booleangetShowPleaseWaitPanel()Whether to show the "Please wait..." panel while installing the action.java.lang.StringgetSpecifiedTarget()The name of a specific build script target to run.booleangetSubstituteIAVariables()Whether to substitute the InstallAnywhere variables in build properties file.booleangetUseBuildProperties()Whether to use the build properties file.booleangetUseDefaultTarget()Whether to use the default build script target.voidsetBuildProperties(java.lang.String path)The pathvoidsetBundleScript(java.lang.String path)The path to thevoidsetDependencies(java.util.Vector<DependencyProperty> dependencies)Ant supports a number of additional tasks.voidsetDialogLabel(java.lang.String label)The message to be displayed in the indeterminate dialog.voidsetExistingScript(java.lang.String path)The path for an Ant build script file that either exists already or will be installed on the target system.voidsetExitCodeVar(java.lang.String antExitCodeVar)The name of the variable to store exit codes.voidsetScriptFileType(AntScriptFileType type)The build script file type to use.voidsetShowIndeterminateDialog(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...).voidsetShowPleaseWaitPanel(boolean show)Whether to show the "Please wait..." panel while installing the action.voidsetSpecifiedTarget(java.lang.String target)The name of a specific build script target to run.voidsetSubstituteIAVariables(boolean substitute)Whether to substitute the InstallAnywhere variables in build properties file.voidsetUseBuildProperties(boolean use)Whether to use the build properties file.voidsetUseDefaultTarget(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 theuseDefaultTargetproperty 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 theuseDefaultTargetproperty 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
-
-