Interface ArtifactDependency

    • Method Detail

      • getSourceBuildTypeId

        @NotNull
        String getSourceBuildTypeId()
        Returns internal id of source build configuration
        Returns:
        build configuration internal id
      • getSourceExternalId

        @NotNull
        String getSourceExternalId()
        Returns external id of source build configuration
        Returns:
        build configuration external id
        Since:
        8.0
      • getSourceName

        @NotNull
        String getSourceName()
        Returns name of the source build configuration
        Returns:
        name of the source build configuration
      • getSourcePaths

        @NotNull
        String getSourcePaths()
        Returns paths to artifacts in source build configuration
        Returns:
        collection of paths
      • isCleanDestinationFolder

        boolean isCleanDestinationFolder()
        Indicates whether destination folder should be cleaned before artifacts downloading
        Returns:
        true if destination directory cleaning is required
      • getRevisionRule

        @NotNull
        RevisionRule getRevisionRule()
        Returns revision rule for downloaded artifacts. Revision rule identifies build from which artifacts should be downloaded.
        Returns:
        revision rule
      • setCleanDestinationFolder

        void setCleanDestinationFolder​(boolean cleanDestinationFolder)
        Set to true if destination directory should be cleaned before artifacts processing
        Parameters:
        cleanDestinationFolder - true to clean destination directory
      • setSourceBuildTypeId

        void setSourceBuildTypeId​(@NotNull
                                  String sourceBuildTypeInternalId)
        Sets new source build configuration id
        Parameters:
        sourceBuildTypeInternalId - new source build configuration id
      • setRevisionRule

        void setRevisionRule​(@NotNull
                             RevisionRule revisionRule)
        Sets new revision rule to this artifact dependency
        Parameters:
        revisionRule - new revision rule
      • setSourcePaths

        void setSourcePaths​(@NotNull
                            String paths)
        Sets new source paths to this artifact dependency
        Parameters:
        paths - paths
      • replaceReferences

        void replaceReferences​(@NotNull
                               ValueResolver resolver)
        Replaces references in this artifact dependency using the provided resolver
        Parameters:
        resolver - replacement map
      • getId

        @NotNull
        String getId()
        Returns artifact dependency id
        Returns:
        id
        Since:
        10.0
      • isSimilarTo

        boolean isSimilarTo​(ArtifactDependency dep)
        Checks if another artifact dependency object is equal to this, ignoring differences in ids (if any)
        Parameters:
        dep - Another artifact dependency
        Returns:
        true if artifact dependency objects are equal (ignoring ids)
        Since:
        10.0
      • getReferences

        List<String> getReferences()
        Returns references used in this dependency (in destination path, source paths or in the build number)
        Returns:
        see above