public class CopyComponentTask extends AbstractBaseTask
A Rhino management sub task for copying a component to a new target identity.
Attribute | Description | Required |
---|---|---|
type |
The component type.
See |
Yes. |
installLevel |
The target install level for the copied component.
Allowed values are: |
No.
If not specified, defaults to |
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. |
Element | Description | Required |
---|---|---|
source |
Identifies the source component.
See |
Yes. |
target |
Identifies the component to create as a copy of the source component.
See |
Yes. |
The task is run targeting a component that has already been copied from the given source.
client, failOnError
Constructor and Description |
---|
CopyComponentTask() |
Modifier and Type | Method and Description |
---|---|
void |
addSource(SleeComponentElement component) |
void |
addTarget(SleeComponentElement component) |
protected void |
execute() |
void |
setInstallLevel(InstallLevel installLevel) |
void |
setType(String type) |
protected void |
validateParameters() |
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void addSource(SleeComponentElement component)
public void addTarget(SleeComponentElement component)
public void setType(String type)
public void setInstallLevel(InstallLevel installLevel)