@Incubating public interface BinarySpec extends BuildableModelElement, Named
Named.Namer
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Returns a human-consumable display name for this binary.
|
DomainObjectSet<LanguageSourceSet> |
getInputs()
Returns all inputs of the binary.
|
DomainObjectSet<LanguageSourceSet> |
getSource()
Deprecated.
This method is replaced with
getInputs() . |
ModelMap<LanguageSourceSet> |
getSources()
The sources owned by this binary.
|
BinaryTasksCollection |
getTasks()
The set of tasks associated with this binary.
|
boolean |
isBuildable()
Can this binary be built in the current environment?
|
void |
sources(Action<? super ModelMap<LanguageSourceSet>> action)
Configures the source sets used to build this binary.
|
void |
tasks(Action<? super BinaryTasksCollection> action)
Configures the tasks that build this binary.
|
builtBy, getBuildTask, hasBuildDependencies, setBuildTask
getBuildDependencies
String getDisplayName()
boolean isBuildable()
@Deprecated DomainObjectSet<LanguageSourceSet> getSource()
getInputs()
.ModelMap<LanguageSourceSet> getSources()
DomainObjectSet<LanguageSourceSet> getInputs()
void sources(Action<? super ModelMap<LanguageSourceSet>> action)
action
- The configuration action to execute for each owned source set.BinaryTasksCollection getTasks()
void tasks(Action<? super BinaryTasksCollection> action)