Class BaseBinarySpec

    • Constructor Detail

      • BaseBinarySpec

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

        public LibraryBinaryIdentifier getId()
        Specified by:
        getId in interface org.gradle.platform.base.internal.BinarySpecInternal
      • getPublicType

        public java.lang.Class<? extends BinarySpec> getPublicType()
        Specified by:
        getPublicType in interface org.gradle.platform.base.internal.BinarySpecInternal
      • getComponent

        @Nullable
        public ComponentSpec getComponent()
        Specified by:
        getComponent in interface org.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:
        getProjectScopedName in interface org.gradle.platform.base.internal.BinarySpecInternal
      • setBuildable

        public void setBuildable​(boolean buildable)
        Specified by:
        setBuildable in interface org.gradle.platform.base.internal.BinarySpecInternal
      • isBuildable

        public final boolean isBuildable()
        Description copied from interface: BinarySpec
        Can this binary be built in the current environment?
        Specified by:
        isBuildable in interface BinarySpec
      • getInputs

        public DomainObjectSet<LanguageSourceSet> getInputs()
        Description copied from interface: 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).
        Specified by:
        getInputs in interface BinarySpec
        Returns:
        all inputs of the binary.
      • isLegacyBinary

        public boolean isLegacyBinary()
        Specified by:
        isLegacyBinary in interface org.gradle.platform.base.internal.BinarySpecInternal
      • getNamingScheme

        public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()
        Specified by:
        getNamingScheme in interface org.gradle.platform.base.internal.BinarySpecInternal
      • setNamingScheme

        public void setNamingScheme​(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme)
        Specified by:
        setNamingScheme in interface org.gradle.platform.base.internal.BinarySpecInternal
      • hasCodependentSources

        public boolean hasCodependentSources()
        Specified by:
        hasCodependentSources in interface org.gradle.platform.base.internal.BinarySpecInternal
      • getBuildAbility

        public final org.gradle.platform.base.internal.BinaryBuildAbility getBuildAbility()
        Specified by:
        getBuildAbility in interface org.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)