Package org.codehaus.groovy.ant
Class CompileTaskSupport
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.tools.ant.taskdefs.MatchingTask
-
- org.codehaus.groovy.ant.CompileTaskSupport
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
- Direct Known Subclasses:
GenerateStubsTask,GroovycTask
public abstract class CompileTaskSupport extends org.apache.tools.ant.taskdefs.MatchingTaskSupport for compilation related tasks.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.tools.ant.types.Pathclasspathprotected CompilerConfigurationconfigprotected java.io.Filedestdirprotected booleanfailOnErrorprotected LoggingHelperlogprotected org.apache.tools.ant.types.Pathsrc
-
Constructor Summary
Constructors Constructor Description CompileTaskSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcompile()protected GroovyClassLoadercreateClassLoader()org.apache.tools.ant.types.PathcreateClasspath()CompilerConfigurationcreateConfiguration()org.apache.tools.ant.types.PathcreateSrc()voidexecute()org.apache.tools.ant.types.PathgetClasspath()booleangetFailonerror()org.apache.tools.ant.types.PathgetSrcdir()protected voidhandleException(java.lang.Exception e)voidsetClasspath(org.apache.tools.ant.types.Path path)voidsetClasspathRef(org.apache.tools.ant.types.Reference r)voidsetDestdir(java.io.File dir)voidsetFailonerror(boolean fail)voidsetSrcdir(org.apache.tools.ant.types.Path dir)protected voidvalidate()-
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
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
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
log
protected final LoggingHelper log
-
src
protected org.apache.tools.ant.types.Path src
-
destdir
protected java.io.File destdir
-
classpath
protected org.apache.tools.ant.types.Path classpath
-
config
protected CompilerConfiguration config
-
failOnError
protected boolean failOnError
-
-
Method Detail
-
setFailonerror
public void setFailonerror(boolean fail)
-
getFailonerror
public boolean getFailonerror()
-
createSrc
public org.apache.tools.ant.types.Path createSrc()
-
setSrcdir
public void setSrcdir(org.apache.tools.ant.types.Path dir)
-
getSrcdir
public org.apache.tools.ant.types.Path getSrcdir()
-
setDestdir
public void setDestdir(java.io.File dir)
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path path)
-
getClasspath
public org.apache.tools.ant.types.Path getClasspath()
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
-
createConfiguration
public CompilerConfiguration createConfiguration()
-
validate
protected void validate() throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
createClassLoader
protected GroovyClassLoader createClassLoader()
-
handleException
protected void handleException(java.lang.Exception e) throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
compile
protected abstract void compile() throws java.lang.Exception- Throws:
java.lang.Exception
-
-