Class BaseArtifactDependency

    • Constructor Detail

      • BaseArtifactDependency

        protected BaseArtifactDependency​(@NotNull
                                         String id,
                                         @NotNull
                                         String sourcePaths,
                                         @NotNull
                                         RevisionRule revisionRule)
        Represents dependency on one or more artifacts of some build.
        Parameters:
        id - artifact dependency id
        sourcePaths - paths to artifacts in source build configuration
        revisionRule - rule by which to select build with artifacts
    • Method Detail

      • setCleanDestinationFolder

        public void setCleanDestinationFolder​(boolean cleanDestinationFolder)
        Set to true if destination directory should be cleaned before artifacts processing
        Specified by:
        setCleanDestinationFolder in interface ArtifactDependency
        Parameters:
        cleanDestinationFolder - true to clean destination directory
      • getSourceBuildTypeId

        @NotNull
        public abstract String getSourceBuildTypeId()
        Returns internal id of build configuration this artifact belongs to
        Specified by:
        getSourceBuildTypeId in interface ArtifactDependency
        Returns:
        internal id of build configuration containing this artifact
      • getSourcePaths

        @NotNull
        public String getSourcePaths()
        Returns path to this artifact in the build of the source build configuration
        Specified by:
        getSourcePaths in interface ArtifactDependency
        Returns:
        artifacts source paths.
      • isCleanDestinationFolder

        public boolean isCleanDestinationFolder()
        Returns true if destination directory should be cleaned before artifacts downloaded
        Specified by:
        isCleanDestinationFolder in interface ArtifactDependency
        Returns:
        if destination directory should be cleaned before artifacts downloaded.
      • getRevisionRule

        @NotNull
        public RevisionRule getRevisionRule()
        Description copied from interface: ArtifactDependency
        Returns revision rule for downloaded artifacts. Revision rule identifies build from which artifacts should be downloaded.
        Specified by:
        getRevisionRule in interface ArtifactDependency
        Returns:
        revision rule
      • setSourceBuildTypeId

        public abstract void setSourceBuildTypeId​(@NotNull
                                                  String sourceBuildTypeInternalId)
        Sets new source build configuration id
        Specified by:
        setSourceBuildTypeId in interface ArtifactDependency
        Parameters:
        sourceBuildTypeInternalId - new source build configuration id
      • setRevisionRule

        public void setRevisionRule​(@NotNull
                                    RevisionRule revisionRule)
        Sets new revision rule to this artifact dependency
        Specified by:
        setRevisionRule in interface ArtifactDependency
        Parameters:
        revisionRule - new revision rule
      • isSimilarTo

        public boolean isSimilarTo​(ArtifactDependency dep)
        Description copied from interface: ArtifactDependency
        Checks if another artifact dependency object is equal to this, ignoring differences in ids (if any)
        Specified by:
        isSimilarTo in interface ArtifactDependency
        Parameters:
        dep - Another artifact dependency
        Returns:
        true if artifact dependency objects are equal (ignoring ids)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object