Class DirectoryPatchBuilder
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.DirectoryPatchBuilder
-
- All Implemented Interfaces:
LowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>,LowLevelPatchBuilder
public class DirectoryPatchBuilder extends Object implements LowLevelPatchBuilder
Applies patch to a directory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.vcs.patches.LowLevelPatchBuilder
LowLevelPatchBuilder.WriteFileContent
-
-
Constructor Summary
Constructors Constructor Description DirectoryPatchBuilder(File baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDirectory(String file)voidchangeBinary(String file, long length, LowLevelPatchBuilder.WriteFileContent content, boolean create)voidchangeTextUsingBytes(String file, byte[] lineSeparator, long length, LowLevelPatchBuilder.WriteFileContent content, boolean create)voidclose()voiddelete(String file, boolean isFile, boolean emptyParent)voidexit(String message)voidfail(String message)voidflush()voidinterrupt()voidnoOp()voidrename(String oldName, String newName, boolean isFile, boolean emptyParent)voidsetFileMode(String file, String mode)voidsetTimeStamp(String file, long timestamp)
-
-
-
Constructor Detail
-
DirectoryPatchBuilder
public DirectoryPatchBuilder(@NotNull File baseDir)
-
-
Method Detail
-
delete
public void delete(@NotNull String file, boolean isFile, boolean emptyParent) throws IOException- Specified by:
deletein interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
rename
public void rename(@NotNull String oldName, @NotNull String newName, boolean isFile, boolean emptyParent) throws IOException- Specified by:
renamein interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
setTimeStamp
public void setTimeStamp(@NotNull String file, long timestamp) throws IOException- Specified by:
setTimeStampin interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
setFileMode
public void setFileMode(@NotNull String file, @NotNull String mode) throws IOException- Specified by:
setFileModein interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
addDirectory
public void addDirectory(@NotNull String file) throws IOException- Specified by:
addDirectoryin interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
changeBinary
public void changeBinary(@NotNull String file, long length, @NotNull LowLevelPatchBuilder.WriteFileContent content, boolean create) throws IOException- Specified by:
changeBinaryin interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
changeTextUsingBytes
public void changeTextUsingBytes(@NotNull String file, @NotNull byte[] lineSeparator, long length, @NotNull LowLevelPatchBuilder.WriteFileContent content, boolean create) throws IOException- Specified by:
changeTextUsingBytesin interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
exit
public void exit(@NotNull String message) throws IOException- Specified by:
exitin interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
fail
public void fail(@NotNull String message) throws IOException- Specified by:
failin interfaceLowLevelPatch<LowLevelPatchBuilder.WriteFileContent,String>- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceLowLevelPatchBuilder- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceLowLevelPatchBuilder- Throws:
IOException
-
interrupt
public void interrupt() throws IOException- Specified by:
interruptin interfaceLowLevelPatchBuilder- Throws:
IOException
-
noOp
public void noOp() throws IOException- Specified by:
noOpin interfaceLowLevelPatchBuilder- Throws:
IOException
-
-