@Incubating public abstract class BaseBinarySpec extends Object 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| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
BaseBinarySpec() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
builtBy(Object... tasks)
Adds a task that is required for the construction of this element.
|
static <T extends BaseBinarySpec> |
create(Class<T> type,
org.gradle.platform.base.internal.BinaryNamingScheme namingScheme,
org.gradle.internal.reflect.Instantiator instantiator) |
TaskDependency |
getBuildDependencies()
Returns a dependency which contains the tasks which build this artifact.
|
Task |
getBuildTask()
Returns the 'lifecycle' task associated with the construction of this element.
|
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.
|
DomainObjectSet<Task> |
getTasks()
The set of tasks associated with this binary.
|
boolean |
hasBuildDependencies() |
boolean |
isBuildable()
Can this binary be built in the current environment?
|
boolean |
isLegacyBinary() |
void |
setBuildTask(Task lifecycleTask)
Associates a 'lifecycle' task with the construction of this element.
|
void |
source(Object source)
Adds one or more
LanguageSourceSets that are used to compile this binary. |
String |
toString() |
public 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 インタフェース内 BinarySpecpublic boolean isBuildable()
BinarySpecisBuildable インタフェース内 BinarySpecpublic DomainObjectSet<LanguageSourceSet> getSource()
BinarySpecgetSource インタフェース内 BinarySpecpublic void source(Object source)
BinarySpecLanguageSourceSets that are used to compile this binary.
This method accepts the following types:
FunctionalSourceSetLanguageSourceSetLanguageSourceSetssource インタフェース内 BinarySpecpublic DomainObjectSet<Task> getTasks()
BinarySpecgetTasks インタフェース内 BinarySpecpublic Task getBuildTask()
BuildableModelElementgetBuildTask インタフェース内 BuildableModelElementpublic void setBuildTask(Task lifecycleTask)
BuildableModelElementsetBuildTask インタフェース内 BuildableModelElementpublic void builtBy(Object... tasks)
BuildableModelElementbuiltBy インタフェース内 BuildableModelElementpublic boolean hasBuildDependencies()
hasBuildDependencies インタフェース内 BuildableModelElementpublic TaskDependency getBuildDependencies()
BuildableBuildable implementations
must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this
buildable.getBuildDependencies インタフェース内 Buildablepublic String getName()
NamedMust be constant for the life of the object.
public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()
getNamingScheme インタフェース内 org.gradle.platform.base.internal.BinarySpecInternalpublic boolean isLegacyBinary()
isLegacyBinary インタフェース内 org.gradle.platform.base.internal.BinarySpecInternal