Class ArtifactsBuilderAdapter
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.artifacts.ArtifactsBuilderAdapter
-
- All Implemented Interfaces:
EventListener
,ArtifactsBuilderListener
,TeamCityExtension
- Direct Known Subclasses:
BuildCacheArtifactsBuilderListener
public class ArtifactsBuilderAdapter extends Object implements ArtifactsBuilderListener
Adapter class forArtifactsBuilderListener
, extend this class if you intend to create custom ArtifactsBuilder listener.
-
-
Constructor Summary
Constructors Constructor Description ArtifactsBuilderAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCollectingFiles(List<ArtifactsCollection> artifacts)
Called when search for artifacts finished.void
afterPreprocessingFiles(List<ArtifactsCollection> artifacts)
Called after the artifacts preprocessing (whether there was an error in preprocessors or not)void
artifactsNotFound(String path)
Called if artifacts matched by specified artifact path were not found on local disk.void
beforeCollectingFiles(Collection<String> paths)
Is called before process of finding of artifacts on local disk startedvoid
beforePreprocessingFiles(List<ArtifactsCollection> artifacts)
Called before artifacts preprocessing is started.
-
-
-
Method Detail
-
beforeCollectingFiles
public void beforeCollectingFiles(@NotNull Collection<String> paths)
Description copied from interface:ArtifactsBuilderListener
Is called before process of finding of artifacts on local disk started- Specified by:
beforeCollectingFiles
in interfaceArtifactsBuilderListener
- Parameters:
paths
- artifact paths, i.e. src1 => target1\n src2 => target2\n...
-
afterCollectingFiles
public void afterCollectingFiles(@NotNull List<ArtifactsCollection> artifacts)
Description copied from interface:ArtifactsBuilderListener
Called when search for artifacts finished.- Specified by:
afterCollectingFiles
in interfaceArtifactsBuilderListener
- Parameters:
artifacts
- list of found artifacts collections
-
beforePreprocessingFiles
public void beforePreprocessingFiles(@NotNull List<ArtifactsCollection> artifacts)
Description copied from interface:ArtifactsBuilderListener
Called before artifacts preprocessing is started. During preprocessing, collections of artifacts may change (several artifacts can be packed into one file)- Specified by:
beforePreprocessingFiles
in interfaceArtifactsBuilderListener
- Parameters:
artifacts
- artifacts to preprocess
-
afterPreprocessingFiles
public void afterPreprocessingFiles(@NotNull List<ArtifactsCollection> artifacts)
Description copied from interface:ArtifactsBuilderListener
Called after the artifacts preprocessing (whether there was an error in preprocessors or not)- Specified by:
afterPreprocessingFiles
in interfaceArtifactsBuilderListener
- Parameters:
artifacts
- final artifacts
-
artifactsNotFound
public void artifactsNotFound(@NotNull String path)
Description copied from interface:ArtifactsBuilderListener
Called if artifacts matched by specified artifact path were not found on local disk.- Specified by:
artifactsNotFound
in interfaceArtifactsBuilderListener
- Parameters:
path
- artifact path (single line from artifacts paths)
-
-