@Incubating public 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
Constructor and Description |
---|
BaseBinarySpec() |
Modifier and Type | Method and Description |
---|---|
static <T extends BaseBinarySpec> |
create(Class<? extends BinarySpec> publicType,
Class<T> implementationType,
String name,
org.gradle.model.internal.core.MutableModelNode modelNode,
org.gradle.model.internal.core.MutableModelNode componentNode,
org.gradle.internal.reflect.Instantiator instantiator,
org.gradle.api.internal.project.taskfactory.ITaskFactory taskFactory) |
protected org.gradle.platform.base.internal.BinaryBuildAbility |
getBinaryBuildAbility() |
org.gradle.platform.base.internal.BinaryBuildAbility |
getBuildAbility() |
ComponentSpec |
getComponent() |
protected <T extends ComponentSpec> |
getComponentAs(Class<T> componentType) |
String |
getDisplayName()
Returns a human-consumable display name for this binary.
|
LibraryBinaryIdentifier |
getId() |
DomainObjectSet<LanguageSourceSet> |
getInputs()
Returns all inputs of the binary.
|
String |
getName()
The object's name.
|
org.gradle.platform.base.internal.BinaryNamingScheme |
getNamingScheme() |
String |
getProjectScopedName() |
Class<? extends BinarySpec> |
getPublicType() |
DomainObjectSet<LanguageSourceSet> |
getSource()
The source sets used to compile this binary.
|
ModelMap<LanguageSourceSet> |
getSources()
The sources owned by this binary.
|
BinaryTasksCollection |
getTasks()
The set of tasks associated with this binary.
|
protected String |
getTypeName() |
boolean |
hasCodependentSources() |
boolean |
isBuildable()
Can this binary be built in the current environment?
|
boolean |
isLegacyBinary() |
static void |
replaceSingleDirectory(Set<File> dirs,
File dir) |
void |
setBuildable(boolean buildable) |
void |
setNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme) |
String |
toString() |
builtBy, getBuildDependencies, getBuildTask, hasBuildDependencies, setBuildTask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
builtBy, getBuildTask, hasBuildDependencies, setBuildTask
getBuildDependencies
public static <T extends BaseBinarySpec> T create(Class<? extends BinarySpec> publicType, Class<T> implementationType, String name, org.gradle.model.internal.core.MutableModelNode modelNode, @Nullable org.gradle.model.internal.core.MutableModelNode componentNode, org.gradle.internal.reflect.Instantiator instantiator, org.gradle.api.internal.project.taskfactory.ITaskFactory taskFactory)
public LibraryBinaryIdentifier getId()
getId
in interface org.gradle.platform.base.internal.BinarySpecInternal
public Class<? extends BinarySpec> getPublicType()
getPublicType
in interface org.gradle.platform.base.internal.BinarySpecInternal
@Nullable public ComponentSpec getComponent()
@Nullable protected <T extends ComponentSpec> T getComponentAs(Class<T> componentType)
protected String getTypeName()
public String getProjectScopedName()
getProjectScopedName
in interface org.gradle.platform.base.internal.BinarySpecInternal
public String getDisplayName()
BinarySpec
getDisplayName
in interface BinarySpec
public String getName()
Named
Must be constant for the life of the object.
public void setBuildable(boolean buildable)
setBuildable
in interface org.gradle.platform.base.internal.BinarySpecInternal
public final boolean isBuildable()
BinarySpec
isBuildable
in interface BinarySpec
public DomainObjectSet<LanguageSourceSet> getSource()
BinarySpec
getSource
in interface BinarySpec
public DomainObjectSet<LanguageSourceSet> getInputs()
BinarySpec
getInputs
in interface BinarySpec
public ModelMap<LanguageSourceSet> getSources()
BinarySpec
getSources
in interface BinarySpec
public BinaryTasksCollection getTasks()
BinarySpec
getTasks
in interface BinarySpec
public boolean isLegacyBinary()
isLegacyBinary
in interface org.gradle.platform.base.internal.BinarySpecInternal
public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()
getNamingScheme
in interface org.gradle.platform.base.internal.BinarySpecInternal
public void setNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme)
setNamingScheme
in interface org.gradle.platform.base.internal.BinarySpecInternal
public boolean hasCodependentSources()
hasCodependentSources
in interface org.gradle.platform.base.internal.BinarySpecInternal
public final org.gradle.platform.base.internal.BinaryBuildAbility getBuildAbility()
getBuildAbility
in interface org.gradle.platform.base.internal.BinarySpecInternal
protected org.gradle.platform.base.internal.BinaryBuildAbility getBinaryBuildAbility()