public class SetSecurityPolicy extends ComponentBasedTask
A Rhino management sub task for setting the security permissions of a component.
Attribute | Description | Required |
---|---|---|
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. |
component |
ComponentID for the component to change the permissions of. |
Yes. |
subid |
An optional identifier used when changing the permissions of library jars. |
Yes. |
Element | Description | Required |
---|---|---|
component |
Identifies the component to change the permissions of. See |
Only required/allowed if the <code>component</code> attribute is not present. |
This task will never throw a NonFatalBuildException
. It will always fail (throw a BuildException
) on errors.
component
client, failOnError
Constructor and Description |
---|
SetSecurityPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
addText(String text) |
protected void |
execute() |
void |
setComponentID(String component) |
void |
setSubID(String subid) |
protected void |
validateParameters() |
addComponent, findComponent
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
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void setComponentID(String component)
public void setSubID(String subid)
public void addText(String text)