Package com.polarion.alm.builder.spi
Class AbstractNonMavenBuildArtifactRecognizer
java.lang.Object
com.polarion.alm.builder.spi.AbstractNonMavenBuildArtifactRecognizer
- All Implemented Interfaces:
IBuildArtifactRecognizer
public abstract class AbstractNonMavenBuildArtifactRecognizer
extends Object
implements IBuildArtifactRecognizer
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.polarion.alm.builder.spi.IBuildArtifactRecognizer
IBuildArtifactRecognizer.IRecognizedBuildArtifact
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether this is a default recognizer.recognizeBuildArtifacts
(ISourceRepository repo, ILocation folder, ILocation rootFolder) Try to recognize all known build artifacts.
-
Constructor Details
-
AbstractNonMavenBuildArtifactRecognizer
public AbstractNonMavenBuildArtifactRecognizer()
-
-
Method Details
-
recognizeBuildArtifacts
public Collection recognizeBuildArtifacts(ISourceRepository repo, ILocation folder, ILocation rootFolder) throws GenericBuilderException Description copied from interface:IBuildArtifactRecognizer
Try to recognize all known build artifacts.It is up to the caller to tag given location if he wants to recognize in different repository tags.
- Specified by:
recognizeBuildArtifacts
in interfaceIBuildArtifactRecognizer
- Parameters:
repo
- source repositoryfolder
- denotes folder and its subfolders which should be used as a base for recognitionrootFolder
- denotes root folder used for location relativization ornull
if folder and rootFolder are the same- Returns:
Collection
ofIBuildArtifactRecognizer.IRecognizedBuildArtifact
s (notnull
)- Throws:
GenericBuilderException
- if error occurs
-
isDefaultRecognizer
public boolean isDefaultRecognizer()Description copied from interface:IBuildArtifactRecognizer
Whether this is a default recognizer.Default recognizer is recognizer which is not driven by some file or collection of files, but uses heuristics to derive build artifact from folder structure ("auto" builds, for example).
Returned value must not change.
- Specified by:
isDefaultRecognizer
in interfaceIBuildArtifactRecognizer
- Returns:
true
if this is default recognizer
-