com.atlassian.bamboo.build.artifact
Class AbstractArtifactManager
java.lang.Object
com.atlassian.bamboo.build.artifact.AbstractArtifactManager
- All Implemented Interfaces:
- ArtifactManager
- Direct Known Subclasses:
- LocalArtifactManager, RemoteArtifactManager
public abstract class AbstractArtifactManager
- extends java.lang.Object
- implements ArtifactManager
Method Summary |
static org.apache.tools.ant.types.FileSet |
createFileSet(java.io.File baseDirectory,
ArtifactDefinitionContext artifact,
boolean useRelativeLocation)
Creates a FileSet object. |
boolean |
publish(BuildLogger buildLogger,
PlanResultKey planResultKey,
java.io.File baseDirectory,
ArtifactDefinitionContext artifact,
boolean deleteSource,
int minExpectedFilesCnt)
Request copy of artifacts from a designated location to artifact storage. |
protected abstract boolean |
publishFileSet(PlanResultKey planResultKey,
ArtifactDefinitionContext artifact,
org.apache.tools.ant.types.FileSet sourceFileSet,
boolean deleteSource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractArtifactManager
public AbstractArtifactManager()
createFileSet
@Nullable
public static org.apache.tools.ant.types.FileSet createFileSet(java.io.File baseDirectory,
ArtifactDefinitionContext artifact,
boolean useRelativeLocation)
- Creates a FileSet object.
- Parameters:
baseDirectory
- directory used to resolve the copy patternsartifact
- artifact definitionuseRelativeLocation
- used to determine whether the relative location information from artifact definition should be used
- Returns:
- the created FileSet
publish
public final boolean publish(@Nullable
BuildLogger buildLogger,
@NotNull
PlanResultKey planResultKey,
@NotNull
java.io.File baseDirectory,
@NotNull
ArtifactDefinitionContext artifact,
boolean deleteSource,
int minExpectedFilesCnt)
- Description copied from interface:
ArtifactManager
- Request copy of artifacts from a designated location to artifact storage.
- Specified by:
publish
in interface ArtifactManager
- Parameters:
buildLogger
- optional, used to log messagesplanResultKey
- key of a plan result that created the artifactartifact
- definition of the artifactdeleteSource
- true performs move instead of copyminExpectedFilesCnt
- how many files are necessary to consider the artifact complete, null if no requirements are made
- Returns:
- true if publish operation result allows the build to continue
publishFileSet
protected abstract boolean publishFileSet(PlanResultKey planResultKey,
ArtifactDefinitionContext artifact,
org.apache.tools.ant.types.FileSet sourceFileSet,
boolean deleteSource)
Copyright © 2012 Atlassian. All Rights Reserved.