public class LocalArtifactStagingLocation
extends java.lang.Object
LocalFileSystemArtifactStagerService
are stored and
where the retrieval service retrieves them from.Modifier and Type | Method and Description |
---|---|
static LocalArtifactStagingLocation |
createAt(java.io.File rootDirectory)
Create a new
LocalArtifactStagingLocation rooted at the specified location, creating
any directories or subdirectories as necessary. |
static LocalArtifactStagingLocation |
forExistingDirectory(java.io.File rootDirectory)
Create a
LocalArtifactStagingLocation for an existing directory. |
java.io.File |
getArtifactFile(java.lang.String artifactName)
Returns the
File which contains the artifact with the provided name. |
java.io.File |
getManifestFile()
Returns the
File which contains the ArtifactApi.Manifest . |
java.lang.String |
getRootPath()
Returns the local location of this
LocalArtifactStagingLocation . |
public static LocalArtifactStagingLocation createAt(java.io.File rootDirectory)
LocalArtifactStagingLocation
rooted at the specified location, creating
any directories or subdirectories as necessary.public static LocalArtifactStagingLocation forExistingDirectory(java.io.File rootDirectory)
LocalArtifactStagingLocation
for an existing directory. The directory must
contain a manifest and an artifact directory.public java.io.File getArtifactFile(java.lang.String artifactName)
File
which contains the artifact with the provided name.
The file may not exist.
public java.io.File getManifestFile()
File
which contains the ArtifactApi.Manifest
.
The file may not exist.
public java.lang.String getRootPath()
LocalArtifactStagingLocation
.
This can be used to refer to the staging location when creating a retrieval service.