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,SelectorContainer
- Direct Known Subclasses:
GenerateStubsTask,GroovycTask
Support for compilation related tasks.
- Author:
- Jason Dillon
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Pathprotected CompilerConfigurationprotected Fileprotected booleanprotected final LoggingHelperprotected PathFields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
filesetFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcompile()protected GroovyClassLoadervoidexecute()booleanprotected voidvoidsetClasspath(Path path) voidvoidsetDestdir(File dir) voidsetFailonerror(boolean fail) voidprotected 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, XsetItemsMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Field Details
-
log
-
src
-
destdir
-
classpath
-
config
-
failOnError
protected boolean failOnError
-
-
Constructor Details
-
CompileTaskSupport
public CompileTaskSupport()
-
-
Method Details
-
setFailonerror
public void setFailonerror(boolean fail) -
getFailonerror
public boolean getFailonerror() -
createSrc
-
setSrcdir
-
getSrcdir
-
setDestdir
-
setClasspath
-
getClasspath
-
createClasspath
-
setClasspathRef
-
createConfiguration
-
validate
- Throws:
BuildException
-
createClassLoader
-
handleException
- Throws:
BuildException
-
execute
- Overrides:
executein classTask- Throws:
BuildException
-
compile
- Throws:
Exception
-