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:
Cloneable
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.- Author:
- Jason Dillon
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.groovy.ant.UberCompileTask.GenStubsAdapter
org.codehaus.groovy.ant.UberCompileTask.GroovycAdapter
org.codehaus.groovy.ant.UberCompileTask.JavacAdapter
void
execute()
void
setClasspath
(Path path) void
void
setDestdir
(File dir) void
protected void
validate()
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, setProject
-
Constructor Details
-
UberCompileTask
public UberCompileTask()
-
-
Method Details
-
createSrc
-
setSrcdir
-
getSrcdir
-
setDestdir
-
setClasspath
-
getClasspath
-
createClasspath
-
setClasspathRef
-
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
- Throws:
BuildException
-
execute
- Overrides:
execute
in classTask
- Throws:
BuildException
-