Class AbstractPatcher

    • Constructor Detail

      • AbstractPatcher

        protected AbstractPatcher​(@NotNull
                                  DataInputStream input)
      • AbstractPatcher

        protected AbstractPatcher​(@NotNull
                                  LowLevelPatcher input)
    • Method Detail

      • deleteFile

        protected abstract void deleteFile​(@NotNull
                                           String filePath,
                                           boolean deleteParentDirectoryIfEmpty,
                                           boolean isFile)
                                    throws IOException
        Throws:
        IOException
      • renameFile

        protected abstract void renameFile​(@NotNull
                                           String filePath,
                                           @NotNull
                                           String newPath,
                                           boolean deleteParentDirectoryIfEmpty,
                                           boolean isFile)
                                    throws IOException
        Throws:
        IOException
      • applyPatch

        public void applyPatch()
                        throws IOException
        Description copied from interface: Patcher
        Applies patch.
        Specified by:
        applyPatch in interface Patcher
        Throws:
        IOException - some file system operation failed or patch process terminated with see jetbrains.buildServer.vcs.patches.InterruptedPatchException or some problem occurred during the patch process (see jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException).
      • patchFailed

        protected void patchFailed​(@NotNull
                                   String message)
      • patchSucceeded

        protected void patchSucceeded​(@NotNull
                                      String message)
      • close

        public void close()
        Description copied from interface: Patcher
        Disposes the patcher process.
        Specified by:
        close in interface Patcher