|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface SourceSet
A SourceSet represents a logical group of Java source and resources.
Field Summary | |
---|---|
java.lang.String |
MAIN_SOURCE_SET_NAME
The name of the main source set. |
java.lang.String |
TEST_SOURCE_SET_NAME
The name of the test source set. |
Method Summary | |
---|---|
SourceSet
|
compiledBy(java.lang.Object taskPaths)
Registers a set of tasks which are responsible for compiling this source set into the classes directory. |
FileTree
|
getAllJava()
All Java source for this source set. |
FileTree
|
getAllSource()
All source for this source set. |
FileCollection
|
getClasses()
Returns the compiled classes directory for this source set. |
File
|
getClassesDir()
Returns the directory to assemble the compiled classes into. |
java.lang.String
|
getClassesTaskName()
Returns the name of the classes task for this source set. |
FileCollection
|
getCompileClasspath()
Returns the classpath used to compile this source. |
java.lang.String
|
getCompileTaskName(java.lang.String language)
Returns the name of a compile task for this source set. |
SourceDirectorySet
|
getJava()
Returns the Java source which is to be compiled by the Java compiler into the class output directory. |
java.lang.String
|
getName()
Returns the name of this source set. |
java.lang.String
|
getProcessResourcesTaskName()
Returns the name of the resource process task for this source set. |
SourceDirectorySet
|
getResources()
Returns the non-Java resources which are to be copied into the class output directory. |
FileCollection
|
getRuntimeClasspath()
Returns the classpath used to execute this source. |
SourceSet
|
java(Closure configureClosure)
Configures the Java source for this set. |
SourceSet
|
resources(Closure configureClosure)
Configures the non-Java resources for this set. |
void
|
setClassesDir(File classesDir)
Sets the directory to assemble the compiled classes into. |
void
|
setCompileClasspath(FileCollection classpath)
Sets the classpath used to compile this source. |
void
|
setRuntimeClasspath(FileCollection classpath)
Sets the classpath used to execute this source. |
Field Detail |
---|
java.lang.String MAIN_SOURCE_SET_NAME
java.lang.String TEST_SOURCE_SET_NAME
Method Detail |
---|
public SourceSet compiledBy(java.lang.Object taskPaths)
public FileTree getAllJava()
public FileTree getAllSource()
public FileCollection getClasses()
public File getClassesDir()
public java.lang.String getClassesTaskName()
public FileCollection getCompileClasspath()
public java.lang.String getCompileTaskName(java.lang.String language)
public SourceDirectorySet getJava()
public java.lang.String getName()
public java.lang.String getProcessResourcesTaskName()
public SourceDirectorySet getResources()
public FileCollection getRuntimeClasspath()
public SourceSet java(Closure configureClosure)
public SourceSet resources(Closure configureClosure)
public void setClassesDir(File classesDir)
public void setCompileClasspath(FileCollection classpath)
public void setRuntimeClasspath(FileCollection classpath)
Groovy Documentation