Modifier and Type | Field and Description |
---|---|
protected org.apache.tools.ant.types.Commandline |
cmdline
The commandline used in execute()
|
protected ConfigVariable[] |
configVariables
An array of ConfigVariabes that are set by setDynamicAttribute().
|
protected boolean |
fork
fork attribute
|
protected List<IOptionSource> |
nestedAttribs |
protected static OptionSpec |
RUNTIME_SHARED_LIBRARY_PATH |
Modifier | Constructor and Description |
---|---|
protected |
FlexTask(String taskName,
ConfigVariable[] configVariables,
String toolJARFileName,
String toolClassName,
String toolMethodName,
String toolFailureMethodName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
createDynamicElement(String elementName) |
protected NestedAttributeElement |
createElem(String[] attribs,
OptionSpec spec) |
protected NestedAttributeElement |
createElem(String attrib,
OptionSpec spec) |
protected NestedAttributeElement |
createElemAllowAppend(String[] attribs,
OptionSpec spec) |
void |
execute()
Execute the task
|
protected abstract void |
prepareCommandline()
Called by execute after the set ConfigVariables in
vars has
been added to the commandline. |
void |
setDynamicAttribute(String attributeName,
String value)
Set the named attribute to the given value.
|
void |
setFork(boolean f)
Sets whether to run the task in a separate VM.
|
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setDir, setError, setErrorProperty, setFailonerror, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirector
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected static OptionSpec RUNTIME_SHARED_LIBRARY_PATH
protected final ConfigVariable[] configVariables
protected final org.apache.tools.ant.types.Commandline cmdline
protected List<IOptionSource> nestedAttribs
protected boolean fork
protected FlexTask(String taskName, ConfigVariable[] configVariables, String toolJARFileName, String toolClassName, String toolMethodName, String toolFailureMethodName)
taskName
- The name of the Ant task.configVariables
- An array of ConfigVariables that will be set by attributes of the task.toolJARFileName
- The build tool's jar file.toolClassName
- The build tool's class name.toolMethodName
- The build tool's method name.toolFailureMethodName
- The build tool's method to determine
whether an exit code means failure.protected NestedAttributeElement createElem(String attrib, OptionSpec spec)
protected NestedAttributeElement createElem(String[] attribs, OptionSpec spec)
protected NestedAttributeElement createElemAllowAppend(String[] attribs, OptionSpec spec)
public void setFork(boolean f)
setFork
in class org.apache.tools.ant.taskdefs.Java
f
- if true then run in a separate VM.public void setDynamicAttribute(String attributeName, String value)
attributeName
- The name of the attribute to setvalue
- The value to set the named attribute toprotected abstract void prepareCommandline() throws org.apache.tools.ant.BuildException
vars
has
been added to the commandline. This function is responsible for adding
all tool-specific options to the commandline as well as setting the
default options of a build tool.org.apache.tools.ant.BuildException
public final void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.Java
org.apache.tools.ant.BuildException
- If running build tool failedCopyright © 2016 The Apache Software Foundation. All rights reserved.