@Deprecated
public class ArtifactsInfo
extends java.lang.Object
ArtifactsGuard
Modifier and Type | Field and Description |
---|---|
java.io.File |
myRoot
Deprecated.
|
Constructor and Description |
---|
ArtifactsInfo(Build build)
Deprecated.
|
Modifier and Type | Method and 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)
Deprecated.
|
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.
|
public ArtifactsInfo(@NotNull Build build) throws BuildTypeNotFoundException
build
- buildBuildTypeNotFoundException
- if build configuration of the build does not exist anymore@Deprecated public static java.io.File getArtifactsDir(@NotNull Build build) throws BuildTypeNotFoundException
SBuild.getArtifactsDirectory()
build
- buildBuildTypeNotFoundException
- if build configuration of the build does not exist anymorepublic boolean isEmpty1()
@NotNull public java.io.File getRoot()
public Build getBuildData()
@Nullable public java.lang.String getRelativePath(java.io.File file)
file
- return relative path for this filepublic boolean exists(java.lang.String relativePath)
relativePath
- path to look for in build artifacts@Nullable public java.io.InputStream createInputStream(java.lang.String relativePath)
relativePath
- path to the build artifact, like target/dist/dist.zippublic boolean isGoodFile(java.io.File file) throws java.io.IOException
file
- file to check for "goodness"java.io.IOException
- when we cannot access the filepublic long getSize(java.lang.String relativePath)
relativePath
- path to the build artifact, like target/dist/dist.zippublic long getLastModified(java.lang.String relativePath)
relativePath
- path to check for timestampisGoodFile(java.io.File)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object