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
 
public abstract class CompileTaskSupport
- extends MatchingTask
 
Support for compilation related tasks.
- Version:
 
  - $Id$
 
- Author:
 
  - Jason Dillon
 
 
 
 
 
 
 
| 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 | 
 
 
 
log
protected final LoggingHelper log
src
protected Path src
destdir
protected File destdir
classpath
protected Path classpath
config
protected CompilerConfiguration config
failOnError
protected boolean failOnError
CompileTaskSupport
public CompileTaskSupport()
setFailonerror
public void setFailonerror(boolean fail)
 
getFailonerror
public boolean getFailonerror()
 
createSrc
public Path createSrc()
 
setSrcdir
public void setSrcdir(Path dir)
 
getSrcdir
public Path getSrcdir()
 
setDestdir
public void setDestdir(File dir)
 
setClasspath
public void setClasspath(Path path)
 
getClasspath
public Path getClasspath()
 
createClasspath
public Path createClasspath()
 
setClasspathRef
public void setClasspathRef(Reference r)
 
createConfiguration
public CompilerConfiguration createConfiguration()
 
validate
protected void validate()
                 throws BuildException
- Throws:
 BuildException
 
createClassLoader
protected GroovyClassLoader createClassLoader()
 
handleException
protected void handleException(Exception e)
                        throws BuildException
- Throws:
 BuildException
 
execute
public void execute()
             throws BuildException
- Overrides:
 execute in class Task
 
- Throws:
 BuildException
 
compile
protected abstract void compile()
                         throws Exception
- Throws:
 Exception