Class TarPreprocessor
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.artifacts.ArchivePreprocessor
-
- jetbrains.buildServer.agent.impl.artifacts.BatchArchivePreprocessor
-
- jetbrains.buildServer.agent.impl.artifacts.TarPreprocessor
-
- All Implemented Interfaces:
AgentExtension
,ArtifactsPreprocessor
,TeamCityExtension
public class TarPreprocessor 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 TarPreprocessor(BuildProgressLogger logger, File tempDir)
TarPreprocessor(EventDispatcher<AgentLifeCycleListener> dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeArchive()
protected OutputStream
createOutputStream()
protected Matcher
createPathMatcher(String targetPathOnServer)
protected boolean
isFileAccessible(File fileToAdd)
protected void
openArchive(Collection<File> files2Add)
protected void
processFile(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
-
TarPreprocessor
@Autowired public TarPreprocessor(@NotNull EventDispatcher<AgentLifeCycleListener> dispatcher)
-
TarPreprocessor
public TarPreprocessor(BuildProgressLogger logger, File tempDir)
-
-
Method Detail
-
closeArchive
protected void closeArchive() throws IOException
- Overrides:
closeArchive
in classBatchArchivePreprocessor
- Throws:
IOException
-
isFileAccessible
protected boolean isFileAccessible(File fileToAdd)
- Overrides:
isFileAccessible
in classArchivePreprocessor
-
createPathMatcher
protected Matcher createPathMatcher(String targetPathOnServer)
- Specified by:
createPathMatcher
in classArchivePreprocessor
-
createOutputStream
protected OutputStream createOutputStream() throws IOException
- Throws:
IOException
-
openArchive
protected void openArchive(Collection<File> files2Add) throws IOException
- Specified by:
openArchive
in classArchivePreprocessor
- Throws:
IOException
-
processFile
protected void processFile(File fileToAdd, String entryName, @Nullable UnixFileInfoUtil.FileInfo unixFileInfo) throws IOException
- Specified by:
processFile
in classBatchArchivePreprocessor
- Throws:
IOException
-
-