Package liquibase.command.copy
Class FileSystemProjectCopier
java.lang.Object
liquibase.command.copy.FileSystemProjectCopier
- All Implemented Interfaces:
ProjectCopier,Plugin
-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopy files from the source to the remote location This is a no-op currently for this implementation of ProjectCopiercreateWorkingStorage(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 ignoredintgetPriority(String path) Check the path to see if the implementation supports itbooleanisRemote()Return true if this ProjectCopier works with remote locations false if not
-
Constructor Details
-
FileSystemProjectCopier
public FileSystemProjectCopier()
-
-
Method Details
-
getPriority
Description copied from interface:ProjectCopierCheck the path to see if the implementation supports it- Specified by:
getPriorityin interfaceProjectCopier- Parameters:
path- The path to check- Returns:
- int
-
isRemote
public boolean isRemote()Description copied from interface:ProjectCopierReturn true if this ProjectCopier works with remote locations false if not- Specified by:
isRemotein interfaceProjectCopier- Returns:
- boolean
-
createWorkingStorage
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:
createWorkingStoragein interfaceProjectCopier- Parameters:
projectDir- The project directorykeepTempFiles- *** IGNORED ***- Returns:
- File
-
copy
Copy files from the source to the remote location This is a no-op currently for this implementation of ProjectCopier- Specified by:
copyin interfaceProjectCopier- Parameters:
source- The source directorytarget- The target directoryrecursive- Flag for copying recursively
-