|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SourceSet
A SourceSet represents a logical group of Java source and resources.
| Field Summary | |
|---|---|
static String |
MAIN_SOURCE_SET_NAME
The name of the main source set. |
static String |
TEST_SOURCE_SET_NAME
The name of the test source set. |
| Method Summary | |
|---|---|
SourceSet |
compiledBy(Object... taskPaths)
Registers a set of tasks which are responsible for compiling this source set into the classes directory. |
SourceDirectorySet |
getAllJava()
All Java source files for this source set. |
SourceDirectorySet |
getAllSource()
All source files 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. |
String |
getClassesTaskName()
Returns the name of the classes task for this source set. |
FileCollection |
getCompileClasspath()
Returns the classpath used to compile this source. |
String |
getCompileJavaTaskName()
Returns the name of the compile Java task for this source set. |
String |
getCompileTaskName(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. |
String |
getName()
Returns the name of this source set. |
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. |
String |
getTaskName(String verb,
String target)
Returns the name of a task for this source set. |
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 |
|---|
static final String MAIN_SOURCE_SET_NAME
static final String TEST_SOURCE_SET_NAME
| Method Detail |
|---|
String getName()
FileCollection getCompileClasspath()
void setCompileClasspath(FileCollection classpath)
classpath - The classpath. Should not be null.FileCollection getRuntimeClasspath()
void setRuntimeClasspath(FileCollection classpath)
classpath - The classpath. Should not be null.File getClassesDir()
void setClassesDir(File classesDir)
classesDir - the classes dir. Should not be null.FileCollection getClasses()
FileCollection.SourceSet compiledBy(Object... taskPaths)
Task.dependsOn(Object...).
taskPaths - The tasks which compile this source set.
SourceDirectorySet getResources()
SourceSet resources(Closure configureClosure)
The given closure is used to configure the SourceDirectorySet which contains the resources.
configureClosure - The closure to use to configure the resources.
SourceDirectorySet getJava()
SourceSet java(Closure configureClosure)
The given closure is used to configure the SourceDirectorySet which contains the Java source.
configureClosure - The closure to use to configure the Java source.
SourceDirectorySet getAllJava()
SourceDirectorySet getAllSource()
String getClassesTaskName()
String getProcessResourcesTaskName()
String getCompileJavaTaskName()
String getCompileTaskName(String language)
language - The language to be compiled.
String getTaskName(String verb,
String target)
verb - The action, may be null.target - The target, may be null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||