public class SetSasBundleMappingTask extends AbstractBaseTask
A Rhino management sub task for setting a SAS bundle prefix mapping.
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. |
bundlemappingfile |
A file of SAS bundle mappings to be installed. Formatted as <key>: <value> pairs per line. |
Only if there are no bundlemapping elements. |
Element | Description | Required |
---|---|---|
bundlemapping |
Maps a fully qualified class name to a prefix |
Only if there is no bundlemappingfile attribute. |
The task sets mappings that already map to the requested prefixes
client, failOnError
Constructor and Description |
---|
SetSasBundleMappingTask() |
Modifier and Type | Method and Description |
---|---|
void |
addBundleMapping(BundleMappingElement bundleMapping) |
protected void |
execute() |
void |
setBundleMappingFile(String bundleMappingFile) |
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
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void addBundleMapping(BundleMappingElement bundleMapping)
public void setBundleMappingFile(String bundleMappingFile)