public class InstallTask extends AbstractBaseTask
A Rhino management sub task for installing Deployable Units.
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 |
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
and url
parameters are specified the JAR file is read from the file indicatedby srcfile
and the URL used is that specified by url
.
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.
The task is run targeting an already deployed deployable unit.
client, failOnError
Constructor and Description |
---|
InstallTask() |
Modifier and Type | Method and 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() |
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void addFileSet(org.apache.tools.ant.types.FileSet fileset)
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void setType(String type)
public void setUrl(String url)
public void setSrcfile(File srcFile)
public void setInstalllevel(InstallLevel installLevel)
public void setAssignBundleMappings(boolean assignBundleMappings)