Package jetbrains.buildServer.vcs
Class AbstractPatchBuilder
- java.lang.Object
-
- jetbrains.buildServer.vcs.AbstractPatchBuilder
-
- All Implemented Interfaces:
PatchBuilder
- Direct Known Subclasses:
PatchBuilderFileNamesCorrector,PatchBuilderImpl
public abstract class AbstractPatchBuilder extends 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 FilegetPathInCurrentWorkingDirectory(File localFile)voidsetWorkingDirectory(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 File getPathInCurrentWorkingDirectory(@NotNull File localFile)
-
setWorkingDirectory
public void setWorkingDirectory(@NotNull File workingDir, boolean createDirectory) throws IOExceptionChanges current working directory relative path.- Specified by:
setWorkingDirectoryin interfacePatchBuilder- Parameters:
workingDir- new working dir.createDirectory- if patcher has to create new directory for the current path.- Throws:
IOException- problem to save current patcher command.
-
-