Package org.gradle.platform.base.binary
Class BaseBinarySpec
java.lang.Object
org.gradle.platform.base.component.internal.AbstractComponentSpec
org.gradle.api.internal.AbstractBuildableComponentSpec
org.gradle.platform.base.binary.BaseBinarySpec
- All Implemented Interfaces:
- Buildable,- BuildableComponentSpec,- CheckableComponentSpec,- Named,- ModelElement,- Binary,- BinarySpec,- ComponentSpec,- org.gradle.platform.base.internal.BinarySpecInternal,- org.gradle.platform.base.internal.ComponentSpecInternal
@Incubating
public class BaseBinarySpec
extends org.gradle.api.internal.AbstractBuildableComponentSpec
implements org.gradle.platform.base.internal.BinarySpecInternal
Base class that may be used for custom 
BinarySpec implementations. However, it is generally better to use an
 interface annotated with Managed and not use an implementation class at all.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T extends BaseBinarySpec>
 Tcreate(Class<? extends BinarySpec> publicType, Class<T> implementationType, org.gradle.platform.base.internal.ComponentSpecIdentifier componentId, org.gradle.model.internal.core.MutableModelNode modelNode, org.gradle.model.internal.core.MutableModelNode componentNode, org.gradle.internal.reflect.Instantiator instantiator, org.gradle.model.internal.core.NamedEntityInstantiator<Task> taskInstantiator, org.gradle.api.internal.CollectionCallbackActionDecorator collectionCallbackActionDecorator, org.gradle.api.internal.collections.DomainObjectCollectionFactory domainObjectCollectionFactory) Creates aBaseBinarySpec.protected org.gradle.platform.base.internal.BinaryBuildAbilityfinal org.gradle.platform.base.internal.BinaryBuildAbilityprotected <T extends ComponentSpec>
 TgetComponentAs(Class<T> componentType) getId()Returns all inputs of the binary.org.gradle.platform.base.internal.BinaryNamingSchemeClass<? extends BinarySpec> The sources owned by this binary.getTasks()The set of tasks associated with this binary.booleanfinal booleanCan this binary be built in the current environment?booleanstatic voidreplaceSingleDirectory(Set<File> dirs, File dir) voidsetBuildable(boolean buildable) voidsetNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme) Methods inherited from class org.gradle.api.internal.AbstractBuildableComponentSpecbuiltBy, checkedBy, getBuildDependencies, getBuildTask, getCheckTask, hasBuildDependencies, setBuildTask, setCheckTaskMethods inherited from class org.gradle.platform.base.component.internal.AbstractComponentSpecgetDisplayName, getIdentifier, getName, getProjectPath, getTypeName, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gradle.platform.base.BinarygetDisplayNameMethods inherited from interface org.gradle.api.BuildablegetBuildDependenciesMethods inherited from interface org.gradle.api.BuildableComponentSpecbuiltBy, getBuildTask, hasBuildDependencies, setBuildTaskMethods inherited from interface org.gradle.api.CheckableComponentSpeccheckedBy, getCheckTask, setCheckTaskMethods inherited from interface org.gradle.platform.base.ComponentSpecgetProjectPathMethods inherited from interface org.gradle.model.ModelElementgetDisplayName, getName
- 
Constructor Details- 
BaseBinarySpecpublic BaseBinarySpec()
 
- 
- 
Method Details- 
createpublic static <T extends BaseBinarySpec> T create(Class<? extends BinarySpec> publicType, Class<T> implementationType, org.gradle.platform.base.internal.ComponentSpecIdentifier componentId, org.gradle.model.internal.core.MutableModelNode modelNode, @Nullable org.gradle.model.internal.core.MutableModelNode componentNode, org.gradle.internal.reflect.Instantiator instantiator, org.gradle.model.internal.core.NamedEntityInstantiator<Task> taskInstantiator, org.gradle.api.internal.CollectionCallbackActionDecorator collectionCallbackActionDecorator, org.gradle.api.internal.collections.DomainObjectCollectionFactory domainObjectCollectionFactory) Creates aBaseBinarySpec.- Since:
- 5.6
 
- 
getId- Specified by:
- getIdin interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
getPublicType- Specified by:
- getPublicTypein interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
getComponent- Specified by:
- getComponentin interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
getComponentAs
- 
getProjectScopedName- Specified by:
- getProjectScopedNamein interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
setBuildablepublic void setBuildable(boolean buildable) - Specified by:
- setBuildablein interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
isBuildablepublic final boolean isBuildable()Description copied from interface:BinarySpecCan this binary be built in the current environment?- Specified by:
- isBuildablein interface- BinarySpec
 
- 
getInputsDescription copied from interface:BinarySpecReturns all inputs of the binary. This includes source sets owned by the binary, and other source sets created elsewhere (e.g. inherited from the binary's component).- Specified by:
- getInputsin interface- BinarySpec
- Returns:
- all inputs of the binary.
 
- 
getSourcesDescription copied from interface:BinarySpecThe sources owned by this binary.- Specified by:
- getSourcesin interface- BinarySpec
- Returns:
- the sources owned by the binary.
 
- 
getTasksDescription copied from interface:BinarySpecThe set of tasks associated with this binary.- Specified by:
- getTasksin interface- BinarySpec
 
- 
isLegacyBinarypublic boolean isLegacyBinary()- Specified by:
- isLegacyBinaryin interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
getNamingSchemepublic org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()- Specified by:
- getNamingSchemein interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
setNamingSchemepublic void setNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme) - Specified by:
- setNamingSchemein interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
hasCodependentSourcespublic boolean hasCodependentSources()- Specified by:
- hasCodependentSourcesin interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
getBuildAbilitypublic final org.gradle.platform.base.internal.BinaryBuildAbility getBuildAbility()- Specified by:
- getBuildAbilityin interface- org.gradle.platform.base.internal.BinarySpecInternal
 
- 
getBinaryBuildAbilityprotected org.gradle.platform.base.internal.BinaryBuildAbility getBinaryBuildAbility()
- 
replaceSingleDirectory
 
-