Class AbstractPatchBuilder

  • All Implemented Interfaces:
    PatchBuilder
    Direct Known Subclasses:
    PatchBuilderFileNamesCorrector

    public abstract class AbstractPatchBuilder
    extends java.lang.Object
    implements PatchBuilder
    Implements general functionality to implement PatchBuilder. Processing working directory - stores current working directory and adds its path to every processing file.
    • Constructor Detail

      • AbstractPatchBuilder

        public AbstractPatchBuilder()
    • 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 interface PatchBuilder
        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.