Class InstallTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.InstallTask
-
- All Implemented Interfaces:
SubTask
public class InstallTask extends AbstractBaseTask
A Rhino management sub task for installing Deployable Units.
Ant Parameters Attribute Description Required type
Type of deployable unit. Default supported types: "du", "bindings"
No. Defaults to "deployable unit".
url
URL deployable unit to install.
Not required if srcfile is specified.
installlevel
The install level to which the deployable unit should be installed. Must be one of "INSTALLED", "VERIFIED", or "DEPLOYED".
No. Defaults to "DEPLOYED".
assignbundlemappings
If true, assign bundle prefixes to any SAS mini-bundles in the DU.
No. Defaults to 'false'.
srcfile
Path to deployable unit to install.
Not required if url is specified.
failonerror
Flag to control failure behaviour. If 'true', the sub task will throw a
BuildExceptionwhen an error is encountered. If 'false', the sub task will throw aNonFatalBuildExceptioninstead of aBuildExceptionunder specific circumstances. See below for conditions (if any) which will cause aNonFatalBuildException.No. default value is taken from the Rhino management parent task.
The location of the deployable unit JAR file to read, and the URL to associate with it when passing it to Rhino is determined as follows:
-
If both
srcfileandurlparameters are specified the JAR file is read from the file indicatedbysrcfileand the URL used is that specified byurl. -
If only
srcfileis specified then the JAR file is read from this file and the filename is also used to construct a URL. -
If only
urlis specified then the JAR file is read from this location and deployed using the specified URL.
NonFatalBuildException throw conditions-
The task is run targeting an already deployed deployable unit.
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description InstallTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFileSet(org.apache.tools.ant.types.FileSet fileset)protected voidexecute()voidsetAssignBundleMappings(boolean assignBundleMappings)voidsetInstalllevel(InstallLevel installLevel)voidsetSrcfile(File srcFile)voidsetType(String type)voidsetUrl(String url)protected voidvalidateParameters()-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
Method Detail
-
execute
protected void execute() throws org.apache.tools.ant.BuildException- Specified by:
executein classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
addFileSet
public void addFileSet(org.apache.tools.ant.types.FileSet fileset)
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException- Specified by:
validateParametersin classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
setType
public void setType(String type)
-
setUrl
public void setUrl(String url)
-
setSrcfile
public void setSrcfile(File srcFile)
-
setInstalllevel
public void setInstalllevel(InstallLevel installLevel)
-
setAssignBundleMappings
public void setAssignBundleMappings(boolean assignBundleMappings)
-
-