Klasse BaseBinarySpec

java.lang.Object
org.gradle.platform.base.component.internal.AbstractComponentSpec
org.gradle.api.internal.AbstractBuildableComponentSpec
org.gradle.platform.base.binary.BaseBinarySpec
Alle implementierten Schnittstellen:
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.
  • Konstruktordetails

    • BaseBinarySpec

      public BaseBinarySpec()
  • Methodendetails

    • create

      public 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 a BaseBinarySpec.
      Seit:
      5.6
    • getId

      public LibraryBinaryIdentifier getId()
      Angegeben von:
      getId in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • getPublicType

      public Class<? extends BinarySpec> getPublicType()
      Angegeben von:
      getPublicType in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • getComponent

      @Nullable public ComponentSpec getComponent()
      Angegeben von:
      getComponent in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • getComponentAs

      @Nullable protected <T extends ComponentSpec> T getComponentAs(Class<T> componentType)
    • getProjectScopedName

      public String getProjectScopedName()
      Angegeben von:
      getProjectScopedName in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • setBuildable

      public void setBuildable(boolean buildable)
      Angegeben von:
      setBuildable in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • isBuildable

      public final boolean isBuildable()
      Beschreibung aus Schnittstelle kopiert: BinarySpec
      Can this binary be built in the current environment?
      Angegeben von:
      isBuildable in Schnittstelle BinarySpec
    • getInputs

      public DomainObjectSet<LanguageSourceSet> getInputs()
      Beschreibung aus Schnittstelle kopiert: BinarySpec
      Returns 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).
      Angegeben von:
      getInputs in Schnittstelle BinarySpec
      Gibt zurück:
      all inputs of the binary.
    • getSources

      public ModelMap<LanguageSourceSet> getSources()
      Beschreibung aus Schnittstelle kopiert: BinarySpec
      The sources owned by this binary.
      Angegeben von:
      getSources in Schnittstelle BinarySpec
      Gibt zurück:
      the sources owned by the binary.
    • getTasks

      public BinaryTasksCollection getTasks()
      Beschreibung aus Schnittstelle kopiert: BinarySpec
      The set of tasks associated with this binary.
      Angegeben von:
      getTasks in Schnittstelle BinarySpec
    • isLegacyBinary

      public boolean isLegacyBinary()
      Angegeben von:
      isLegacyBinary in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • getNamingScheme

      public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()
      Angegeben von:
      getNamingScheme in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • setNamingScheme

      public void setNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme)
      Angegeben von:
      setNamingScheme in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • hasCodependentSources

      public boolean hasCodependentSources()
      Angegeben von:
      hasCodependentSources in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • getBuildAbility

      public final org.gradle.platform.base.internal.BinaryBuildAbility getBuildAbility()
      Angegeben von:
      getBuildAbility in Schnittstelle org.gradle.platform.base.internal.BinarySpecInternal
    • getBinaryBuildAbility

      protected org.gradle.platform.base.internal.BinaryBuildAbility getBinaryBuildAbility()
    • replaceSingleDirectory

      public static void replaceSingleDirectory(Set<File> dirs, File dir)