public class AntBaseTask
extends org.apache.tools.ant.Task
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.tools.ant.types.Path |
classpath
Classpath to use
|
protected java.lang.String |
exitCodeMessageProperty
Name of the property under which to store the exit message.
|
protected java.lang.String |
exitCodeProperty
Name of the property under which to store the exit code.
|
static int |
InternalTaskError |
protected java.lang.String |
loaderref
Name of the loader to use
|
protected org.apache.log4j.Logger |
logger |
static java.lang.String |
PropertyRootPath |
protected int |
timeout
Timeout for operations
|
| Constructor and Description |
|---|
AntBaseTask() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tools.ant.types.Path |
createClasspath()
Adds a path to the classpath.
|
void |
execute() |
protected void |
fixClassPath() |
org.apache.tools.ant.types.Path |
getClasspath()
Gets the classpath to be used for this compilation.
|
protected java.lang.String |
getErrorMessage(int code) |
protected java.util.Properties |
getProperties() |
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this compilation.
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a classpath defined elsewhere.
|
protected void |
setExitCode(int code) |
void |
setExitCodeProperty(java.lang.String exitCodeProperty) |
void |
setLoaderref(java.lang.String loaderref) |
protected void |
setResult(int code) |
void |
setTimeout(int timeout) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic static final int InternalTaskError
public static final java.lang.String PropertyRootPath
protected java.lang.String exitCodeProperty
protected java.lang.String exitCodeMessageProperty
protected org.apache.tools.ant.types.Path classpath
protected int timeout
protected java.lang.String loaderref
protected org.apache.log4j.Logger logger
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic org.apache.tools.ant.types.Path createClasspath()
protected void fixClassPath()
throws java.lang.Exception
java.lang.Exceptionprotected void setResult(int code)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getErrorMessage(int code)
protected void setExitCode(int code)
throws java.lang.Exception
java.lang.Exceptionprotected java.util.Properties getProperties()
throws java.lang.Exception
java.lang.Exceptionpublic void setClasspathRef(org.apache.tools.ant.types.Reference r)
r - a reference to a classpathpublic org.apache.tools.ant.types.Path getClasspath()
public void setExitCodeProperty(java.lang.String exitCodeProperty)
exitCodeProperty - the exitCodePropert to setpublic void setTimeout(int timeout)
timeout - the timeout to setpublic void setLoaderref(java.lang.String loaderref)
loaderref - the loaderref to setpublic void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath - an Ant Path object containing the compilation classpath.Copyright © 2018 RENCI. All Rights Reserved.