org.codehaus.groovy.ant
Class UberCompileTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by 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.

Version:
$Id: UberCompileTask.java 7820 2007-08-30 03:47:16Z user57 $
Author:
Jason Dillon

Nested Class Summary
private  class UberCompileTask.GenStubsAdapter
           
private  class UberCompileTask.GroovycAdapter
           
private  class UberCompileTask.JavacAdapter
           
 
Field Summary
private  org.apache.tools.ant.types.Path classpath
           
private  java.io.File destdir
           
private  UberCompileTask.GenStubsAdapter genStubsTask
           
private  UberCompileTask.GroovycAdapter groovycTask
           
private  UberCompileTask.JavacAdapter javacTask
           
private  LoggingHelper log
           
private  org.apache.tools.ant.types.Path src
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
UberCompileTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
           
 UberCompileTask.GenStubsAdapter createGeneratestubs()
           
 UberCompileTask.GroovycAdapter createGroovyc()
           
 UberCompileTask.JavacAdapter createJavac()
           
 org.apache.tools.ant.types.Path createSrc()
           
private  java.io.File createTempDir()
           
 void execute()
           
 org.apache.tools.ant.types.Path getClasspath()
           
 org.apache.tools.ant.types.Path getSrcdir()
           
 void setClasspath(org.apache.tools.ant.types.Path path)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setDestdir(java.io.File dir)
           
 void setSrcdir(org.apache.tools.ant.types.Path dir)
           
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final LoggingHelper log

src

private org.apache.tools.ant.types.Path src

destdir

private java.io.File destdir

classpath

private org.apache.tools.ant.types.Path classpath

genStubsTask

private UberCompileTask.GenStubsAdapter genStubsTask

groovycTask

private UberCompileTask.GroovycAdapter groovycTask

javacTask

private UberCompileTask.JavacAdapter javacTask
Constructor Detail

UberCompileTask

public UberCompileTask()
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 UberCompileTask.GenStubsAdapter createGeneratestubs()

createGroovyc

public UberCompileTask.GroovycAdapter createGroovyc()

createJavac

public 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:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

createTempDir

private java.io.File createTempDir()


Copyright © ${year} The Codehaus. All Rights Reserved.