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:
- Cloneable,- org.apache.tools.ant.types.selectors.SelectorContainer
- Direct Known Subclasses:
- GenerateStubsTask,- GroovycTask
public abstract class CompileTaskSupport
extends org.apache.tools.ant.taskdefs.MatchingTask
Support for compilation related tasks.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.apache.tools.ant.types.Pathprotected CompilerConfigurationprotected Fileprotected booleanprotected final LoggingHelperprotected org.apache.tools.ant.types.PathFields inherited from class org.apache.tools.ant.taskdefs.MatchingTaskfilesetFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidcompile()protected GroovyClassLoaderorg.apache.tools.ant.types.Pathorg.apache.tools.ant.types.Pathvoidexecute()org.apache.tools.ant.types.Pathbooleanorg.apache.tools.ant.types.Pathprotected voidvoidsetClasspath(org.apache.tools.ant.types.Path path) voidsetClasspathRef(org.apache.tools.ant.types.Reference r) voidsetDestdir(File dir) voidsetFailonerror(boolean fail) voidsetSrcdir(org.apache.tools.ant.types.Path dir) protected voidvalidate()Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTaskadd, 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, XsetItemsMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation
- 
Field Details- 
log
- 
srcprotected org.apache.tools.ant.types.Path src
- 
destdir
- 
classpathprotected org.apache.tools.ant.types.Path classpath
- 
config
- 
failOnErrorprotected boolean failOnError
 
- 
- 
Constructor Details- 
CompileTaskSupportpublic CompileTaskSupport()
 
- 
- 
Method Details- 
setFailonerrorpublic void setFailonerror(boolean fail) 
- 
getFailonerrorpublic boolean getFailonerror()
- 
createSrcpublic org.apache.tools.ant.types.Path createSrc()
- 
setSrcdirpublic void setSrcdir(org.apache.tools.ant.types.Path dir) 
- 
getSrcdirpublic org.apache.tools.ant.types.Path getSrcdir()
- 
setDestdir
- 
setClasspathpublic void setClasspath(org.apache.tools.ant.types.Path path) 
- 
getClasspathpublic org.apache.tools.ant.types.Path getClasspath()
- 
createClasspathpublic org.apache.tools.ant.types.Path createClasspath()
- 
setClasspathRefpublic void setClasspathRef(org.apache.tools.ant.types.Reference r) 
- 
createConfiguration
- 
validateprotected void validate() throws org.apache.tools.ant.BuildException- Throws:
- org.apache.tools.ant.BuildException
 
- 
createClassLoader
- 
handleException- Throws:
- org.apache.tools.ant.BuildException
 
- 
executepublic void execute() throws org.apache.tools.ant.BuildException- Overrides:
- executein class- org.apache.tools.ant.Task
- Throws:
- org.apache.tools.ant.BuildException
 
- 
compile- Throws:
- Exception
 
 
-