Package jetbrains.buildServer.vcs
Class AbstractPatchBuilder
- java.lang.Object
-
- jetbrains.buildServer.vcs.AbstractPatchBuilder
-
- All Implemented Interfaces:
PatchBuilder
- Direct Known Subclasses:
PatchBuilderFileNamesCorrector
public abstract class AbstractPatchBuilder extends java.lang.Object implements PatchBuilder
Implements general functionality to implementPatchBuilder
. Processing working directory - stores current working directory and adds its path to every processing file.
-
-
Constructor Summary
Constructors Constructor Description AbstractPatchBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.File
getPathInCurrentWorkingDirectory(java.io.File localFile)
void
setWorkingDirectory(java.io.File workingDir, boolean createDirectory)
Changes current working directory relative path.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.vcs.patches.PatchBuilder
changeOrCreateBinaryFile, changeOrCreateTextFile, createBinaryFile, createDirectory, createTextFile, deleteDirectory, deleteFile, renameDirectory, renameFile, setLastModified
-
-
-
-
Method Detail
-
getPathInCurrentWorkingDirectory
@NotNull protected java.io.File getPathInCurrentWorkingDirectory(@NotNull java.io.File localFile)
-
setWorkingDirectory
public void setWorkingDirectory(@NotNull java.io.File workingDir, boolean createDirectory) throws java.io.IOException
Changes current working directory relative path.- Specified by:
setWorkingDirectory
in interfacePatchBuilder
- Parameters:
workingDir
- new working dir.createDirectory
- if patcher has to create new directory for the current path.- Throws:
java.io.IOException
- problem to save current patcher command.
-
-