Class ArtifactsInfo

    • Field Detail

      • myRoot

        public final File myRoot
        Deprecated.
    • Method Detail

      • isEmpty1

        public boolean isEmpty1()
        Deprecated.
        Returns true if there are no artifacts in this build.
        Returns:
        see above
      • getRoot

        @NotNull
        public File getRoot()
        Deprecated.
        Return root directory on the filesystem for artifacts of the build
        Returns:
        see above
      • getBuildData

        public Build getBuildData()
        Deprecated.
        Return build whose artifact are presented by this object
        Returns:
        see above
      • getRelativePath

        @Nullable
        public String getRelativePath​(File file)
        Deprecated.
        Return relative path for given artifact in the artifact tree of the current build. For instance, return path/foo.txt for file /sss/ddd/path/foo.txt if /sss/ddd is root directory for artifacts of the build. Always contains / and never \ Returns null if file is not under artifact root.
        Parameters:
        file - return relative path for this file
        Returns:
        see above
      • exists

        public boolean exists​(String relativePath)
        Deprecated.
        Return true if file or directory with given relative path exists in build artifacts
        Parameters:
        relativePath - path to look for in build artifacts
        Returns:
        see above
      • createInputStream

        @Nullable
        public InputStream createInputStream​(String relativePath)
        Deprecated.
        Parameters:
        relativePath - path to the build artifact, like target/dist/dist.zip
        Returns:
        null, if file cannot be accessed
      • isGoodFile

        public boolean isGoodFile​(File file)
                           throws IOException
        Deprecated.
        Return true if given file is located within build artifacts
        Parameters:
        file - file to check for "goodness"
        Returns:
        see above
        Throws:
        IOException - when we cannot access the file
      • getSize

        public long getSize​(String relativePath)
        Deprecated.
        Parameters:
        relativePath - path to the build artifact, like target/dist/dist.zip
        Returns:
        -1, if file cannot be accessed or denotes a directory
      • getLastModified

        public long getLastModified​(String relativePath)
        Deprecated.
        Return file lastModified timestamp for given file within build artifacts, return -1 if file doesn't exist or is not "good"
        Parameters:
        relativePath - path to check for timestamp
        Returns:
        see above
        See Also:
        isGoodFile(java.io.File)
      • equals

        public boolean equals​(Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object