Class FileSystemProjectCopier

java.lang.Object
liquibase.command.copy.FileSystemProjectCopier
All Implemented Interfaces:
ProjectCopier, Plugin

public class FileSystemProjectCopier extends Object implements ProjectCopier
  • Constructor Details

    • FileSystemProjectCopier

      public FileSystemProjectCopier()
  • Method Details

    • getPriority

      public int getPriority(String path)
      Description copied from interface: ProjectCopier
      Check the path to see if the implementation supports it
      Specified by:
      getPriority in interface ProjectCopier
      Parameters:
      path - The path to check
      Returns:
      int
    • isRemote

      public boolean isRemote()
      Description copied from interface: ProjectCopier
      Return true if this ProjectCopier works with remote locations false if not
      Specified by:
      isRemote in interface ProjectCopier
      Returns:
      boolean
    • createWorkingStorage

      public File createWorkingStorage(String projectDir, boolean keepTempFiles)
      Create the project directory if it does not exist For the local file system implementation of ProjectCopier this will not be a temporary directory, so the keepTempFiles flag is ignored
      Specified by:
      createWorkingStorage in interface ProjectCopier
      Parameters:
      projectDir - The project directory
      keepTempFiles - *** IGNORED ***
      Returns:
      File
    • copy

      public void copy(String source, String target, boolean recursive)
      Copy files from the source to the remote location This is a no-op currently for this implementation of ProjectCopier
      Specified by:
      copy in interface ProjectCopier
      Parameters:
      source - The source directory
      target - The target directory
      recursive - Flag for copying recursively