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.TaskCompiles Java and Groovy source files. This works by invoking theGenerateStubsTasktask, then theJavactask and then theGroovycTask. 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.
-
-
Constructor Summary
Constructors Constructor Description UberCompileTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier 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.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
-
-
-
-
Method Detail
-
createSrc
public org.apache.tools.ant.types.Path createSrc()
-
setSrcdir
public void setSrcdir(org.apache.tools.ant.types.Path dir)
-
getSrcdir
public org.apache.tools.ant.types.Path getSrcdir()
-
setDestdir
public void setDestdir(java.io.File dir)
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path path)
-
getClasspath
public org.apache.tools.ant.types.Path getClasspath()
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
-
createGeneratestubs
public org.codehaus.groovy.ant.UberCompileTask.GenStubsAdapter createGeneratestubs()
-
createGroovyc
public org.codehaus.groovy.ant.UberCompileTask.GroovycAdapter createGroovyc()
-
createJavac
public org.codehaus.groovy.ant.UberCompileTask.JavacAdapter createJavac()
-
validate
protected void validate() throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-