public abstract class CompileTaskSupport
extends org.apache.tools.ant.taskdefs.MatchingTask
Modifier and Type | Field and Description |
---|---|
protected org.apache.tools.ant.types.Path |
classpath |
protected CompilerConfiguration |
config |
protected java.io.File |
destdir |
protected boolean |
failOnError |
protected LoggingHelper |
log |
protected org.apache.tools.ant.types.Path |
src |
Constructor and Description |
---|
CompileTaskSupport() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
compile() |
protected GroovyClassLoader |
createClassLoader() |
org.apache.tools.ant.types.Path |
createClasspath() |
CompilerConfiguration |
createConfiguration() |
org.apache.tools.ant.types.Path |
createSrc() |
void |
execute() |
org.apache.tools.ant.types.Path |
getClasspath() |
boolean |
getFailonerror() |
org.apache.tools.ant.types.Path |
getSrcdir() |
protected void |
handleException(java.lang.Exception e) |
void |
setClasspath(org.apache.tools.ant.types.Path path) |
void |
setClasspathRef(org.apache.tools.ant.types.Reference r) |
void |
setDestdir(java.io.File dir) |
void |
setFailonerror(boolean fail) |
void |
setSrcdir(org.apache.tools.ant.types.Path dir) |
protected void |
validate() |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected final LoggingHelper log
protected org.apache.tools.ant.types.Path src
protected java.io.File destdir
protected org.apache.tools.ant.types.Path classpath
protected CompilerConfiguration config
protected boolean failOnError
public void setFailonerror(boolean fail)
public boolean getFailonerror()
public org.apache.tools.ant.types.Path createSrc()
public void setSrcdir(org.apache.tools.ant.types.Path dir)
public org.apache.tools.ant.types.Path getSrcdir()
public void setDestdir(java.io.File dir)
public void setClasspath(org.apache.tools.ant.types.Path path)
public org.apache.tools.ant.types.Path getClasspath()
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public CompilerConfiguration createConfiguration()
protected void validate() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected GroovyClassLoader createClassLoader()
protected void handleException(java.lang.Exception e) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected abstract void compile() throws java.lang.Exception
java.lang.Exception