com.atlassian.bamboo.build.artifact
Class AbstractArtifactManager

java.lang.Object
  extended by 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


Constructor Summary
AbstractArtifactManager()
           
 
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)
          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
 
Methods inherited from interface com.atlassian.bamboo.build.artifact.ArtifactManager
retrieve
 

Constructor Detail

AbstractArtifactManager

public AbstractArtifactManager()
Method Detail

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 patterns
artifact - artifact definition
useRelativeLocation - 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)
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 messages
planResultKey - key of a plan result that created the artifact
artifact - definition of the artifact
deleteSource - true performs move instead of copy
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 © 2011 Atlassian. All Rights Reserved.