@Incubating public abstract class BaseBinarySpec extends org.gradle.api.internal.AbstractBuildableModelElement implements org.gradle.platform.base.internal.BinarySpecInternal
BinarySpec must extend this type.
TODO at the moment leaking BinarySpecInternal here to generate lifecycleTask in
LanguageBasePlugin$createLifecycleTaskForBinary#createLifecycleTaskForBinary ruleNamed.Namer| Modifier | Constructor and Description |
|---|---|
protected |
BaseBinarySpec() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends BaseBinarySpec> |
create(Class<T> type,
org.gradle.platform.base.internal.BinaryNamingScheme namingScheme,
org.gradle.internal.reflect.Instantiator instantiator) |
String |
getDisplayName()
Returns a human-consumable display name for this binary.
|
String |
getName()
The object's name.
|
org.gradle.platform.base.internal.BinaryNamingScheme |
getNamingScheme() |
DomainObjectSet<LanguageSourceSet> |
getSource()
The source sets used to compile this binary.
|
BinaryTasksCollection |
getTasks()
The set of tasks associated with this binary.
|
boolean |
isBuildable()
Can this binary be built in the current environment?
|
boolean |
isLegacyBinary() |
void |
source(Object source)
Adds one or more
LanguageSourceSets that are used to compile this binary. |
String |
toString() |
builtBy, getBuildDependencies, getBuildTask, hasBuildDependencies, setBuildTaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuiltBy, getBuildTask, hasBuildDependencies, setBuildTaskgetBuildDependenciespublic static <T extends BaseBinarySpec> T create(Class<T> type, org.gradle.platform.base.internal.BinaryNamingScheme namingScheme, org.gradle.internal.reflect.Instantiator instantiator)
public String getDisplayName()
BinarySpecgetDisplayName in interface BinarySpecpublic boolean isBuildable()
BinarySpecisBuildable in interface BinarySpecpublic DomainObjectSet<LanguageSourceSet> getSource()
BinarySpecgetSource in interface BinarySpecpublic void source(Object source)
BinarySpecLanguageSourceSets that are used to compile this binary.
This method accepts the following types:
FunctionalSourceSetLanguageSourceSetLanguageSourceSetssource in interface BinarySpecpublic BinaryTasksCollection getTasks()
BinarySpecgetTasks in interface BinarySpecpublic String getName()
NamedMust be constant for the life of the object.
public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()
getNamingScheme in interface org.gradle.platform.base.internal.BinarySpecInternalpublic boolean isLegacyBinary()
isLegacyBinary in interface org.gradle.platform.base.internal.BinarySpecInternal