public interface SourceSetContainer extends NamedDomainObjectContainer<SourceSet>, NamedDomainObjectSet<SourceSet>
SourceSetContainer
manages a set of SourceSet
objects.Modifier and Type | Method and Description |
---|---|
SourceSet |
add(String name)
Adds a source set with the given name.
|
SourceSet |
add(String name,
Closure configureClosure)
Adds a source set with the given name.
|
configure, create, create, maybeCreate
findAll, matching, matching, withType
add, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getRules
all, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
SourceSet add(String name) throws InvalidUserDataException
name
- The name of the new source set.InvalidUserDataException
- when a source set with the given name already exists in this container.SourceSet add(String name, Closure configureClosure) throws InvalidUserDataException
name
- The name of the new source set.configureClosure
- The closure to use to configure the source set.InvalidUserDataException
- when a source set with the given name already exists in this container.