Package org.codehaus.groovy.ant
Class UberCompileTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.codehaus.groovy.ant.UberCompileTask
- All Implemented Interfaces:
- java.lang.Cloneable
public class UberCompileTask
extends org.apache.tools.ant.Task
Compiles Java and Groovy source files.
 This works by invoking the 
GenerateStubsTask task, then the
 Javac task and then the GroovycTask.  Each task can be
 configured by creating a nested element.  Common configuration such as
 the source dir and classpath is picked up from this tasks configuration.- 
Field SummaryFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors Constructor Description UberCompileTask()
- 
Method SummaryModifier and Type Method Description org.apache.tools.ant.types.PathcreateClasspath()org.codehaus.groovy.ant.UberCompileTask.GenStubsAdaptercreateGeneratestubs()org.codehaus.groovy.ant.UberCompileTask.GroovycAdaptercreateGroovyc()org.codehaus.groovy.ant.UberCompileTask.JavacAdaptercreateJavac()org.apache.tools.ant.types.PathcreateSrc()voidexecute()org.apache.tools.ant.types.PathgetClasspath()org.apache.tools.ant.types.PathgetSrcdir()voidsetClasspath(org.apache.tools.ant.types.Path path)voidsetClasspathRef(org.apache.tools.ant.types.Reference r)voidsetDestdir(java.io.File dir)voidsetSrcdir(org.apache.tools.ant.types.Path dir)protected voidvalidate()Methods 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, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
UberCompileTaskpublic UberCompileTask()
 
- 
- 
Method Details- 
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()
- 
setDestdirpublic void setDestdir(java.io.File dir)
- 
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)
- 
createGeneratestubspublic org.codehaus.groovy.ant.UberCompileTask.GenStubsAdapter createGeneratestubs()
- 
createGroovycpublic org.codehaus.groovy.ant.UberCompileTask.GroovycAdapter createGroovyc()
- 
createJavacpublic org.codehaus.groovy.ant.UberCompileTask.JavacAdapter createJavac()
- 
validateprotected void validate() throws org.apache.tools.ant.BuildException- 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
 
 
-