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
BuildException
when an error is encountered. If 'false', the sub task will throw aNonFatalBuildException
instead of aBuildException
under 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
srcfile
andurl
parameters are specified the JAR file is read from the file indicatedbysrcfile
and the URL used is that specified byurl
. -
If only
srcfile
is specified then the JAR file is read from this file and the filename is also used to construct a URL. -
If only
url
is 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 void
addFileSet(org.apache.tools.ant.types.FileSet fileset)
protected void
execute()
void
setAssignBundleMappings(boolean assignBundleMappings)
void
setInstalllevel(InstallLevel installLevel)
void
setSrcfile(File srcFile)
void
setType(String type)
void
setUrl(String url)
protected void
validateParameters()
-
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:
execute
in 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:
validateParameters
in 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)
-
-