Class UpdateSourcesPatcherBase
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.patch.AbstractSourcesUpdater
-
- jetbrains.buildServer.agent.impl.patch.UpdateSourcesPatcherBase
-
- Direct Known Subclasses:
UpdateSourcesFromPersonal
,UpdateSourcesFromServer
public abstract class UpdateSourcesPatcherBase extends AbstractSourcesUpdater
- Author:
- Eugene Petrenko Created: 07.05.2009 21:24:49
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentRunningBuildEx
myBuild
-
Constructor Summary
Constructors Modifier Constructor Description protected
UpdateSourcesPatcherBase(AgentRunningBuildEx build, PatchDownloader downloader, PatchApplier applier, PatcherFactory patcherFactory, BuildProgressLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyPatch(Patcher patcher)
protected InputStream
copyPatchToTempFile(AgentCheckoutDirRevisionInfo dirInfo, FullCheckoutFlag fullCheckoutFlag, boolean personalChangesPatch)
protected DownloadedPatch
copyPatchToTempFileOnly(AgentCheckoutDirRevisionInfo dirInfo, FullCheckoutFlag fullCheckoutFlag, boolean personalChangesPatch)
protected String
getErrorExceptionPrefix()
protected String
getErrorMessagePrefix()
protected String
getInterruptedMessagePrefix()
protected PatcherFactory
getPatcherFactory()
-
Methods inherited from class jetbrains.buildServer.agent.impl.patch.AbstractSourcesUpdater
doSourceUpdate, interrupt, registerInterruptableOperation, updateSources
-
-
-
-
Field Detail
-
myBuild
protected final AgentRunningBuildEx myBuild
-
-
Constructor Detail
-
UpdateSourcesPatcherBase
protected UpdateSourcesPatcherBase(@NotNull AgentRunningBuildEx build, @NotNull PatchDownloader downloader, @NotNull PatchApplier applier, @NotNull PatcherFactory patcherFactory, @NotNull BuildProgressLogger logger)
-
-
Method Detail
-
getPatcherFactory
protected PatcherFactory getPatcherFactory()
-
getInterruptedMessagePrefix
@NotNull protected String getInterruptedMessagePrefix()
- Specified by:
getInterruptedMessagePrefix
in classAbstractSourcesUpdater
-
getErrorMessagePrefix
@NotNull protected String getErrorMessagePrefix()
- Specified by:
getErrorMessagePrefix
in classAbstractSourcesUpdater
-
getErrorExceptionPrefix
@NotNull protected String getErrorExceptionPrefix()
- Specified by:
getErrorExceptionPrefix
in classAbstractSourcesUpdater
-
copyPatchToTempFile
@NotNull protected InputStream copyPatchToTempFile(@NotNull AgentCheckoutDirRevisionInfo dirInfo, @NotNull FullCheckoutFlag fullCheckoutFlag, boolean personalChangesPatch) throws IOException, RecoverableStageFailure, UpdateSourcesInterruptedException
-
copyPatchToTempFileOnly
@NotNull protected DownloadedPatch copyPatchToTempFileOnly(@NotNull AgentCheckoutDirRevisionInfo dirInfo, @NotNull FullCheckoutFlag fullCheckoutFlag, boolean personalChangesPatch) throws IOException, RecoverableStageFailure, UpdateSourcesInterruptedException
-
applyPatch
protected void applyPatch(Patcher patcher) throws IOException, UpdateSourcesInterruptedException
-
-