public class ShadowComponentTask extends AbstractBaseTask
A Rhino management sub task for shadowing an existing component with another component.
Attribute | Description | Required |
---|---|---|
type |
The component type.
See |
Yes. |
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 component to be shadowed.
See |
Yes. |
target |
Identifies the component that will shadow the source component.
See |
Yes. |
The task is run with a source component that is already shadowed by the given target.
client, failOnError
Constructor and Description |
---|
ShadowComponentTask() |
Modifier and Type | Method and Description |
---|---|
void |
addSource(SleeComponentElement component) |
void |
addTarget(SleeComponentElement component) |
protected void |
execute() |
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)