MAIN_SOURCE_SET_NAME, TEST_SOURCE_SET_NAME| Constructor and Description |
|---|
DefaultSourceSet(String name,
FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getClassesTaskName()
Returns the name of the classes task for this source set.
|
FileCollection |
getCompileClasspath()
Returns the classpath used to compile this source.
|
String |
getCompileConfigurationName()
Returns the name of the compile configuration for this source set.
|
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.
|
String |
getDisplayName() |
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.
|
SourceSetOutput |
getOutput()
SourceSetOutput is a FileCollection of all output directories (compiled classes, processed resources, etc.)
and it provides means configure the default output dirs and register additional output dirs. |
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 resources output directory.
|
FileCollection |
getRuntimeClasspath()
Returns the classpath used to execute this source.
|
String |
getRuntimeConfigurationName()
Returns the name of the runtime configuration for this source set.
|
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 |
setClasses(DefaultSourceSetOutput classes) |
void |
setCompileClasspath(FileCollection classpath)
Sets the classpath used to compile this source.
|
void |
setRuntimeClasspath(FileCollection classpath)
Sets the classpath used to execute this source.
|
String |
toString() |
public DefaultSourceSet(String name, FileResolver fileResolver)
public String getName()
SourceSetpublic String getDisplayName()
public String getClassesTaskName()
SourceSetgetClassesTaskName in interface SourceSetpublic String getCompileTaskName(String language)
SourceSetgetCompileTaskName in interface SourceSetlanguage - The language to be compiled.public String getCompileJavaTaskName()
SourceSetgetCompileJavaTaskName in interface SourceSetpublic String getProcessResourcesTaskName()
SourceSetgetProcessResourcesTaskName in interface SourceSetpublic String getTaskName(String verb, String target)
SourceSetgetTaskName in interface SourceSetverb - The action, may be null.target - The target, may be nullpublic String getCompileConfigurationName()
SourceSetgetCompileConfigurationName in interface SourceSetpublic String getRuntimeConfigurationName()
SourceSetgetRuntimeConfigurationName in interface SourceSetpublic SourceSetOutput getOutput()
SourceSetSourceSetOutput is a FileCollection of all output directories (compiled classes, processed resources, etc.)
and it provides means configure the default output dirs and register additional output dirs. See examples in SourceSetOutputgetOutput in interface SourceSetSourceSetOutput.public void setClasses(DefaultSourceSetOutput classes)
public SourceSet compiledBy(Object... taskPaths)
SourceSetTask.dependsOn(Object...).compiledBy in interface SourceSettaskPaths - The tasks which compile this source set.public FileCollection getCompileClasspath()
SourceSetgetCompileClasspath in interface SourceSetpublic FileCollection getRuntimeClasspath()
SourceSetgetRuntimeClasspath in interface SourceSetpublic void setCompileClasspath(FileCollection classpath)
SourceSetsetCompileClasspath in interface SourceSetclasspath - The classpath. Should not be null.public void setRuntimeClasspath(FileCollection classpath)
SourceSetsetRuntimeClasspath in interface SourceSetclasspath - The classpath. Should not be null.public SourceDirectorySet getJava()
SourceSetpublic SourceSet java(Closure configureClosure)
SourceSetThe given closure is used to configure the SourceDirectorySet which contains the Java source.
public SourceDirectorySet getAllJava()
SourceSetgetAllJava in interface SourceSetpublic SourceDirectorySet getResources()
SourceSetgetResources in interface SourceSetpublic SourceSet resources(Closure configureClosure)
SourceSetThe given closure is used to configure the SourceDirectorySet which contains the resources.
public SourceDirectorySet getAllSource()
SourceSetgetAllSource in interface SourceSetCopyright © 2013. All rights reserved