@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
LanguageSourceSet s 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()
BinarySpec
getDisplayName
インタフェース内 BinarySpec
public boolean isBuildable()
BinarySpec
isBuildable
インタフェース内 BinarySpec
public DomainObjectSet<LanguageSourceSet> getSource()
BinarySpec
getSource
インタフェース内 BinarySpec
public void source(Object source)
BinarySpec
LanguageSourceSet
s that are used to compile this binary.
This method accepts the following types:
FunctionalSourceSet
LanguageSourceSet
LanguageSourceSet
ssource
インタフェース内 BinarySpec
public DomainObjectSet<Task> getTasks()
BinarySpec
getTasks
インタフェース内 BinarySpec
public Task getBuildTask()
BuildableModelElement
getBuildTask
インタフェース内 BuildableModelElement
public void setBuildTask(Task lifecycleTask)
BuildableModelElement
setBuildTask
インタフェース内 BuildableModelElement
public void builtBy(Object... tasks)
BuildableModelElement
builtBy
インタフェース内 BuildableModelElement
public boolean hasBuildDependencies()
hasBuildDependencies
インタフェース内 BuildableModelElement
public TaskDependency getBuildDependencies()
Buildable
Buildable
implementations
must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this
buildable.getBuildDependencies
インタフェース内 Buildable
public String getName()
Named
Must be constant for the life of the object.
public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()
getNamingScheme
インタフェース内 org.gradle.platform.base.internal.BinarySpecInternal
public boolean isLegacyBinary()
isLegacyBinary
インタフェース内 org.gradle.platform.base.internal.BinarySpecInternal