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 voidcloseArchive()protected OutputStreamcreateOutputStream()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
- 
TarPreprocessor
@Autowired public TarPreprocessor(@NotNull EventDispatcher<AgentLifeCycleListener> dispatcher) 
- 
TarPreprocessor
public TarPreprocessor(BuildProgressLogger logger, File tempDir)
 
 - 
 
- 
Method Detail
- 
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
 
- 
createOutputStream
protected OutputStream createOutputStream() 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
 
 - 
 
 -