Class ArtifactsInfo

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.io.File myRoot
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      ArtifactsInfo​(Build build)
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.io.InputStream createInputStream​(java.lang.String relativePath)
      Deprecated.
       
      boolean equals​(java.lang.Object o)
      Deprecated.
       
      boolean exists​(java.lang.String relativePath)
      Deprecated.
      Return true if file or directory with given relative path exists in build artifacts
      static java.io.File getArtifactsDir​(Build build)
      Build getBuildData()
      Deprecated.
      Return build whose artifact are presented by this object
      long getLastModified​(java.lang.String relativePath)
      Deprecated.
      Return file lastModified timestamp for given file within build artifacts, return -1 if file doesn't exist or is not "good"
      java.lang.String getRelativePath​(java.io.File file)
      Deprecated.
      Return relative path for given artifact in the artifact tree of the current build.
      java.io.File getRoot()
      Deprecated.
      Return root directory on the filesystem for artifacts of the build
      long getSize​(java.lang.String relativePath)
      Deprecated.
       
      int hashCode()
      Deprecated.
       
      boolean isEmpty1()
      Deprecated.
      Returns true if there are no artifacts in this build.
      boolean isGoodFile​(java.io.File file)
      Deprecated.
      Return true if given file is located within build artifacts
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • myRoot

        public final java.io.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 java.io.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 java.lang.String getRelativePath​(java.io.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​(java.lang.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 java.io.InputStream createInputStream​(java.lang.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​(java.io.File file)
                           throws java.io.IOException
        Deprecated.
        Return true if given file is located within build artifacts
        Parameters:
        file - file to check for "goodness"
        Returns:
        see above
        Throws:
        java.io.IOException - when we cannot access the file
      • getSize

        public long getSize​(java.lang.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​(java.lang.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​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object