Class ArtifactsInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.artifacts.ArtifactsInfo
-
@Deprecated public class ArtifactsInfo extends Object
Deprecated.Simplifies access to build artifacts. See alsoArtifactsGuard
-
-
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 InputStream
createInputStream(String relativePath)
Deprecated.boolean
equals(Object o)
Deprecated.boolean
exists(String relativePath)
Deprecated.Return true if file or directory with given relative path exists in build artifactsstatic File
getArtifactsDir(Build build)
Deprecated.Build
getBuildData()
Deprecated.Return build whose artifact are presented by this objectlong
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"String
getRelativePath(File file)
Deprecated.Return relative path for given artifact in the artifact tree of the current build.File
getRoot()
Deprecated.Return root directory on the filesystem for artifacts of the buildlong
getSize(String relativePath)
Deprecated.int
hashCode()
Deprecated.boolean
isEmpty1()
Deprecated.Returns true if there are no artifacts in this build.boolean
isGoodFile(File file)
Deprecated.Return true if given file is located within build artifactsString
toString()
Deprecated.
-
-
-
Field Detail
-
myRoot
public final File myRoot
Deprecated.
-
-
Constructor Detail
-
ArtifactsInfo
public ArtifactsInfo(@NotNull Build build) throws BuildTypeNotFoundException
Deprecated.- Parameters:
build
- build- Throws:
BuildTypeNotFoundException
- if build configuration of the build does not exist anymore
-
-
Method Detail
-
getArtifactsDir
@Deprecated public static File getArtifactsDir(@NotNull Build build) throws BuildTypeNotFoundException
Deprecated.Returns directory where all build artifacts are stored.- Parameters:
build
- build- Returns:
- directory where build artifacts reside
- Throws:
BuildTypeNotFoundException
- if build configuration of the build does not exist anymore
-
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)
-
-