Class ZipPreprocessor
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.artifacts.ArchivePreprocessor
-
- jetbrains.buildServer.agent.impl.artifacts.BatchArchivePreprocessor
-
- jetbrains.buildServer.agent.impl.artifacts.ZipPreprocessor
-
- All Implemented Interfaces:
AgentExtension,ArtifactsPreprocessor,TeamCityExtension
public class ZipPreprocessor extends BatchArchivePreprocessor
- Author:
- kir
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.agent.ArtifactsPreprocessor
ArtifactsPreprocessor.SymbolicLinksMode
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.agent.impl.artifacts.BatchArchivePreprocessor
FILES_CACHE_SIZE
-
Fields inherited from class jetbrains.buildServer.agent.impl.artifacts.ArchivePreprocessor
FILES_TO_LOG_COUNT, myTempArchiveFile
-
Fields inherited from interface jetbrains.buildServer.agent.ArtifactsPreprocessor
TARGET_PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ZipPreprocessor(BuildProgressLogger logger, File tempDir, BiFunction<String,String,String> configParametersProvider)ZipPreprocessor(EventDispatcher<AgentLifeCycleListener> dispatcher, CurrentBuildTrackerEx currentBuildTrackerEx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseArchive()protected SeekableByteChannelcreateByteChannel()protected MatchercreatePathMatcher(String targetPathOnServer)protected booleanisFileAccessible(File fileToAdd)protected voidopenArchive(Collection<File> files2Add)protected voidprocessFile(File fileToAdd, String entryName, UnixFileInfoUtil.FileInfo unixFileInfo)-
Methods inherited from class jetbrains.buildServer.agent.impl.artifacts.BatchArchivePreprocessor
collectUnixFileInfoEnabled, getSymbolicLinksMode, processArtifacts, putFileToArchive
-
Methods inherited from class jetbrains.buildServer.agent.impl.artifacts.ArchivePreprocessor
createFileOutputStream, getTargetKey, setLogger, shouldProcess
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.agent.ArtifactsPreprocessor
processArtifacts
-
-
-
-
Constructor Detail
-
ZipPreprocessor
@Autowired public ZipPreprocessor(@NotNull EventDispatcher<AgentLifeCycleListener> dispatcher, @NotNull CurrentBuildTrackerEx currentBuildTrackerEx)
-
ZipPreprocessor
@TestOnly public ZipPreprocessor(BuildProgressLogger logger, File tempDir, @NotNull BiFunction<String,String,String> configParametersProvider)
-
-
Method Detail
-
createByteChannel
@TestOnly protected SeekableByteChannel createByteChannel() throws IOException
- Throws:
IOException
-
openArchive
protected void openArchive(Collection<File> files2Add) throws IOException
- Specified by:
openArchivein classArchivePreprocessor- Throws:
IOException
-
processFile
protected void processFile(File fileToAdd, String entryName, @Nullable UnixFileInfoUtil.FileInfo unixFileInfo) throws IOException
- Specified by:
processFilein classBatchArchivePreprocessor- Throws:
IOException
-
closeArchive
protected void closeArchive() throws IOException- Overrides:
closeArchivein classBatchArchivePreprocessor- Throws:
IOException
-
isFileAccessible
protected boolean isFileAccessible(File fileToAdd)
- Overrides:
isFileAccessiblein classArchivePreprocessor
-
createPathMatcher
protected Matcher createPathMatcher(String targetPathOnServer)
- Specified by:
createPathMatcherin classArchivePreprocessor
-
-