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 customBinarySpecimplementations. However, it is generally better to use an interface annotated withManagedand not use an implementation class at all.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer
-
-
Constructor Summary
Constructors Constructor Description BaseBinarySpec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends BaseBinarySpec>
Tcreate(java.lang.Class<? extends BinarySpec> publicType, java.lang.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.BinaryBuildAbilitygetBinaryBuildAbility()org.gradle.platform.base.internal.BinaryBuildAbilitygetBuildAbility()ComponentSpecgetComponent()protected <T extends ComponentSpec>
TgetComponentAs(java.lang.Class<T> componentType)LibraryBinaryIdentifiergetId()DomainObjectSet<LanguageSourceSet>getInputs()Returns all inputs of the binary.org.gradle.platform.base.internal.BinaryNamingSchemegetNamingScheme()java.lang.StringgetProjectScopedName()java.lang.Class<? extends BinarySpec>getPublicType()ModelMap<LanguageSourceSet>getSources()The sources owned by this binary.BinaryTasksCollectiongetTasks()The set of tasks associated with this binary.booleanhasCodependentSources()booleanisBuildable()Can this binary be built in the current environment?booleanisLegacyBinary()static voidreplaceSingleDirectory(java.util.Set<java.io.File> dirs, java.io.File dir)voidsetBuildable(boolean buildable)voidsetNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme)-
Methods inherited from class org.gradle.api.internal.AbstractBuildableComponentSpec
builtBy, checkedBy, getBuildDependencies, getBuildTask, getCheckTask, hasBuildDependencies, setBuildTask, setCheckTask
-
Methods inherited from class org.gradle.platform.base.component.internal.AbstractComponentSpec
getDisplayName, getIdentifier, getName, getProjectPath, getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gradle.platform.base.Binary
getDisplayName
-
Methods inherited from interface org.gradle.api.Buildable
getBuildDependencies
-
Methods inherited from interface org.gradle.api.BuildableComponentSpec
builtBy, getBuildTask, hasBuildDependencies, setBuildTask
-
Methods inherited from interface org.gradle.api.CheckableComponentSpec
checkedBy, getCheckTask, setCheckTask
-
Methods inherited from interface org.gradle.platform.base.ComponentSpec
getProjectPath
-
Methods inherited from interface org.gradle.model.ModelElement
getDisplayName, getName
-
-
-
-
Method Detail
-
create
public static <T extends BaseBinarySpec> T create(java.lang.Class<? extends BinarySpec> publicType, java.lang.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
public LibraryBinaryIdentifier getId()
- Specified by:
getIdin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getPublicType
public java.lang.Class<? extends BinarySpec> getPublicType()
- Specified by:
getPublicTypein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getComponent
@Nullable public ComponentSpec getComponent()
- Specified by:
getComponentin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getComponentAs
@Nullable protected <T extends ComponentSpec> T getComponentAs(java.lang.Class<T> componentType)
-
getProjectScopedName
public java.lang.String getProjectScopedName()
- Specified by:
getProjectScopedNamein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
setBuildable
public void setBuildable(boolean buildable)
- Specified by:
setBuildablein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
isBuildable
public final boolean isBuildable()
Description copied from interface:BinarySpecCan this binary be built in the current environment?- Specified by:
isBuildablein interfaceBinarySpec
-
getInputs
public DomainObjectSet<LanguageSourceSet> getInputs()
Description 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 interfaceBinarySpec- Returns:
- all inputs of the binary.
-
getSources
public ModelMap<LanguageSourceSet> getSources()
Description copied from interface:BinarySpecThe sources owned by this binary.- Specified by:
getSourcesin interfaceBinarySpec- Returns:
- the sources owned by the binary.
-
getTasks
public BinaryTasksCollection getTasks()
Description copied from interface:BinarySpecThe set of tasks associated with this binary.- Specified by:
getTasksin interfaceBinarySpec
-
isLegacyBinary
public boolean isLegacyBinary()
- Specified by:
isLegacyBinaryin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getNamingScheme
public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()
- Specified by:
getNamingSchemein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
setNamingScheme
public void setNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme)
- Specified by:
setNamingSchemein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
hasCodependentSources
public boolean hasCodependentSources()
- Specified by:
hasCodependentSourcesin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getBuildAbility
public final org.gradle.platform.base.internal.BinaryBuildAbility getBuildAbility()
- Specified by:
getBuildAbilityin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getBinaryBuildAbility
protected org.gradle.platform.base.internal.BinaryBuildAbility getBinaryBuildAbility()
-
replaceSingleDirectory
public static void replaceSingleDirectory(java.util.Set<java.io.File> dirs, java.io.File dir)
-
-