jetbrains.buildServer.vcs
Class AbstractPatchBuilder

java.lang.Object
  extended by jetbrains.buildServer.vcs.AbstractPatchBuilder
All Implemented Interfaces:
PatchBuilder, PatchBuilderBase
Direct Known Subclasses:
PatchBuilderFileNamesCorrector

public abstract class AbstractPatchBuilder
extends java.lang.Object
implements PatchBuilder

Implements general functioonality to implement PatchBuilder. Processing working directory - stores current working directory and adds its path to every processing file.


Constructor Summary
AbstractPatchBuilder()
           
 
Method Summary
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, createTextFile
 
Methods inherited from interface jetbrains.buildServer.vcs.patches.PatchBuilderBase
createDirectory, deleteDirectory, deleteFile, renameDirectory, renameFile, setLastModified
 

Constructor Detail

AbstractPatchBuilder

public AbstractPatchBuilder()
Method Detail

getPathInCurrentWorkingDirectory

protected java.io.File getPathInCurrentWorkingDirectory(java.io.File localFile)

setWorkingDirectory

public void setWorkingDirectory(java.io.File workingDir,
                                boolean createDirectory)
                         throws java.io.IOException
Changes current working directory relative path.

Specified by:
setWorkingDirectory in interface PatchBuilderBase
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.