public class CommandLineTask extends AbstractBaseTask
A Rhino management sub task for interacting directly with the command line client.
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. |
Element | Description | Required |
---|---|---|
argument |
Used to specify individual command line arguments.
See |
Yes. |
This task will never throw a NonFatalBuildException
. It will always fail (throw a BuildException
) on errors.
Modifier and Type | Field and Description |
---|---|
protected LinkedList |
arguments |
client, failOnError
Constructor and Description |
---|
CommandLineTask() |
Modifier and Type | Method and Description |
---|---|
void |
addArgument(ArgumentElement element) |
protected void |
execute() |
protected boolean |
hasArguments() |
protected void |
validateParameters() |
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected LinkedList arguments
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 addArgument(ArgumentElement element)
protected boolean hasArguments()