jetbrains.buildServer.serverSide.artifacts
Class ArtifactsInfo

java.lang.Object
  extended by jetbrains.buildServer.serverSide.artifacts.ArtifactsInfo

Deprecated. use @{link SBuild#getAtrifacts()}

public class ArtifactsInfo
extends java.lang.Object

Simplifies access to build artifacts. See also ArtifactsGuard


Field Summary
 java.io.File myRoot
          Deprecated.  
 
Constructor Summary
ArtifactsInfo(Build build)
          Deprecated.  
 
Method Summary
 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. use SBuild.getArtifactsDirectory()
static java.io.File getArtifactsDir(SBuildType buildType, long buildId)
          Deprecated. use SBuild.getArtifactsDirectory()
 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. 
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

public static java.io.File getArtifactsDir(@NotNull
                                           Build build)
                                    throws BuildTypeNotFoundException
Deprecated. use SBuild.getArtifactsDirectory()

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

getArtifactsDir

public static java.io.File getArtifactsDir(@NotNull
                                           SBuildType buildType,
                                           long buildId)
Deprecated. use SBuild.getArtifactsDirectory()

Returns directory where all build artifacts are stored.

Parameters:
buildType - build configuration
buildId - build id
Returns:
directory where build artifacts reside

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