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
Modifier and TypeFieldDescriptionprotected Path
protected CompilerConfiguration
protected File
protected boolean
protected final LoggingHelper
protected Path
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
compile()
protected GroovyClassLoader
void
execute()
boolean
protected void
void
setClasspath
(Path path) void
void
setDestdir
(File dir) void
setFailonerror
(boolean fail) void
protected void
validate()
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
Methods 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:
execute
in classTask
- Throws:
BuildException
-
compile
- Throws:
Exception
-