Class PatchTempFiles
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.patch.PatchTempFiles
-
public class PatchTempFiles extends Object
- Author:
- Eugene Petrenko Created: 07.05.2009 20:34:59
-
-
Constructor Summary
Constructors Constructor Description PatchTempFiles(EventDispatcher<AgentLifeCycleListener> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getPatchTempFile(AgentRunningBuild build, String tempFileSuffix)
Creates a new empty temporary file (under either"${TEAMCITY_HOME}/buildAgent/temp/agentTmp"
or"${TEAMCITY_HOME}/buildAgent/temp/buildTmp"
), patch will be later saved to, and returns this file.void
patchFileDownloaded(AgentRunningBuild build, File file)
void
processPatchError(AgentRunningBuild build, File patchFile, String messagePrefix, String file_suffix)
void
releaseFile(AgentRunningBuild build, File file)
-
-
-
Constructor Detail
-
PatchTempFiles
public PatchTempFiles(EventDispatcher<AgentLifeCycleListener> events)
-
-
Method Detail
-
releaseFile
public void releaseFile(@NotNull AgentRunningBuild build, @NotNull File file)
-
processPatchError
public void processPatchError(AgentRunningBuild build, File patchFile, String messagePrefix, String file_suffix)
-
getPatchTempFile
@NotNull public File getPatchTempFile(@NotNull AgentRunningBuild build, @NotNull String tempFileSuffix) throws IOException
Creates a new empty temporary file (under either
"${TEAMCITY_HOME}/buildAgent/temp/agentTmp"
or"${TEAMCITY_HOME}/buildAgent/temp/buildTmp"
), patch will be later saved to, and returns this file.- Parameters:
build
- the current build.tempFileSuffix
- the name suffix used when creating a new temporary file.- Returns:
- a newly-created empty temporary file, patch will be later saved to.
- Throws:
IOException
- if a file could not be created.
-
patchFileDownloaded
public void patchFileDownloaded(AgentRunningBuild build, File file)
-
-