org.gradle.api.tasks.compile
Class GroovyCompile

java.lang.Object
  extended by ConventionTask
      extended by org.gradle.api.tasks.compile.Compile
          extended by org.gradle.api.tasks.compile.GroovyCompile

public class GroovyCompile
extends Compile

Author:
Hans Dockter

Field Summary
 
Fields inherited from class org.gradle.api.tasks.compile.Compile
antCompile, classpathConverter, existentDirsFilter
 
Constructor Summary
GroovyCompile(Project project, java.lang.String name)
           
 
Method Summary
protected  void compile(Task task)
           
 AntGroovyc getAntGroovyCompile()
           
 java.util.List getGroovyClasspath()
           
 java.util.List getGroovyExcludes()
          Returns the exclude patterns for which groovy files should be compiled.
 java.util.List getGroovyIncludes()
          Return the include patterns for which groovy files should be compiled.
 java.util.List getGroovyJavaExcludes()
          Returns the include patterns for which java files in the joint source folder should be compiled.
 java.util.List getGroovyJavaIncludes()
          Returns the exclude patterns for which java files in the joint source folder should be compiled.
 GroovyCompileOptions getGroovyOptions()
          Gets the options for the groovyc compilation.
 java.util.List getGroovySourceDirs()
           
 GroovyCompile groovyExclude(java.lang.String... groovyExcludes)
          Adds exclude patterns for which groovy files should be compiled (e.g.
 GroovyCompile groovyInclude(java.lang.String... groovyIncludes)
          Adds include pattern for which groovy files should be compiled (e.g.
 GroovyCompile groovyJavaExclude(java.lang.String... groovyJavaExcludes)
          Add exclude patterns for which java files in the joint source folder should be compiled (e.g.
 GroovyCompile groovyJavaInclude(java.lang.String... groovyJavaIncludes)
          Adds include patterns for which java files in the joint source folder should be compiled (e.g.
 void setAntGroovyCompile(AntGroovyc antGroovyCompile)
           
 void setGroovyClasspath(java.util.List groovyClasspath)
           
 void setGroovyExcludes(java.util.List groovyExcludes)
          Sets the exclude patterns for which groovy files should be compiled.
 void setGroovyIncludes(java.util.List groovyIncludes)
          Sets the include patterns for which groovy files should be compiled.
 void setGroovyJavaExcludes(java.util.List groovyJavaExcludes)
          Sets include patterns for which java files in the joint source folder should be compiled
 void setGroovyJavaIncludes(java.util.List groovyJavaIncludes)
          Sets include patterns for which java files in the joint source folder should be compiled.
 void setGroovyOptions(GroovyCompileOptions groovyOptions)
          Sets the options for the groovyc compilation.
 void setGroovySourceDirs(java.util.List groovySourceDirs)
           
 
Methods inherited from class org.gradle.api.tasks.compile.Compile
exclude, getClasspath, getDependencyManager, getDestinationDir, getExcludes, getIncludes, getOptions, getSourceCompatibility, getSrcDirs, getTargetCompatibility, getUnmanagedClasspath, include, setDependencyManager, setDestinationDir, setExcludes, setIncludes, setOptions, setSourceCompatibility, setSrcDirs, setTargetCompatibility, setUnmanagedClasspath, unmanagedClasspath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyCompile

public GroovyCompile(Project project,
                     java.lang.String name)
Method Detail

compile

protected void compile(Task task)
Overrides:
compile in class Compile

getGroovyOptions

public GroovyCompileOptions getGroovyOptions()
Gets the options for the groovyc compilation. To set specific options for the nested javac compilation, use Compile.getOptions().


setGroovyOptions

public void setGroovyOptions(GroovyCompileOptions groovyOptions)
Sets the options for the groovyc compilation. To set specific options for the nested javac compilation, use Compile.getOptions(). Usually you don't set the options, but you modify the existing instance provided by getGroovyOptions()

Parameters:
groovyOptions -

groovyInclude

public GroovyCompile groovyInclude(java.lang.String... groovyIncludes)
Adds include pattern for which groovy files should be compiled (e.g. '**F;org/gradle/package1/')). This pattern is added as an nested include the groovyc task.

Parameters:
groovyIncludes - The include patterns
Returns:
this

groovyExclude

public GroovyCompile groovyExclude(java.lang.String... groovyExcludes)
Adds exclude patterns for which groovy files should be compiled (e.g. '**F;org/gradle/package2/A*.groovy'). This pattern is added as an nested exclude the groovyc task.

Parameters:
groovyExcludes - The exclude patterns
Returns:
this

groovyJavaInclude

public GroovyCompile groovyJavaInclude(java.lang.String... groovyJavaIncludes)
Adds include patterns for which java files in the joint source folder should be compiled (e.g. '**F;org/gradle/package1/')). This pattern is added as a nested include to the nested javac task of the groovyc task.

Parameters:
groovyJavaIncludes - The include patterns

groovyJavaExclude

public GroovyCompile groovyJavaExclude(java.lang.String... groovyJavaExcludes)
Add exclude patterns for which java files in the joint source folder should be compiled (e.g. '**F;org/gradle/package2/A*.java'). This pattern is added as a nested exclude to the nested javac task of the groovyc task.

Parameters:
groovyJavaExcludes - The exclude patterns

getGroovyClasspath

public java.util.List getGroovyClasspath()

setGroovyClasspath

public void setGroovyClasspath(java.util.List groovyClasspath)

getAntGroovyCompile

public AntGroovyc getAntGroovyCompile()

setAntGroovyCompile

public void setAntGroovyCompile(AntGroovyc antGroovyCompile)

getGroovySourceDirs

public java.util.List getGroovySourceDirs()

setGroovySourceDirs

public void setGroovySourceDirs(java.util.List groovySourceDirs)

getGroovyIncludes

public java.util.List getGroovyIncludes()
Return the include patterns for which groovy files should be compiled.


setGroovyIncludes

public void setGroovyIncludes(java.util.List groovyIncludes)
Sets the include patterns for which groovy files should be compiled.

Parameters:
groovyIncludes - The patterns to include
See Also:
groovyInclude(String[])

getGroovyExcludes

public java.util.List getGroovyExcludes()
Returns the exclude patterns for which groovy files should be compiled.


setGroovyExcludes

public void setGroovyExcludes(java.util.List groovyExcludes)
Sets the exclude patterns for which groovy files should be compiled.

Parameters:
groovyExcludes - The patterns to exclude
See Also:
groovyExclude(String[])

getGroovyJavaIncludes

public java.util.List getGroovyJavaIncludes()
Returns the exclude patterns for which java files in the joint source folder should be compiled.


setGroovyJavaIncludes

public void setGroovyJavaIncludes(java.util.List groovyJavaIncludes)
Sets include patterns for which java files in the joint source folder should be compiled.

Parameters:
groovyJavaIncludes - The exclude pattern
See Also:
The include patterns

getGroovyJavaExcludes

public java.util.List getGroovyJavaExcludes()
Returns the include patterns for which java files in the joint source folder should be compiled.

Returns:

setGroovyJavaExcludes

public void setGroovyJavaExcludes(java.util.List groovyJavaExcludes)
Sets include patterns for which java files in the joint source folder should be compiled

Parameters:
groovyJavaExcludes - The exclude pattern
See Also:
The exclude patterns