Package liquibase.command.copy
Interface ProjectCopier
- All Superinterfaces:
Plugin
- All Known Implementing Classes:
FileSystemProjectCopier
Copy project files from a source location to a target location
-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Copy files from the source location to the targetcreateWorkingStorage
(String target, boolean keepTempFiles) Create a local directory that can be used as an intermediate area to store files to be copied.int
getPriority
(String path) Check the path to see if the implementation supports itboolean
isRemote()
Return true if this ProjectCopier works with remote locations false if not
-
Method Details
-
getPriority
Check the path to see if the implementation supports it- Parameters:
path
- The path to check- Returns:
- int
-
isRemote
boolean isRemote()Return true if this ProjectCopier works with remote locations false if not- Returns:
- boolean
-
createWorkingStorage
Create a local directory that can be used as an intermediate area to store files to be copied.- Parameters:
target
- The target location for the copykeepTempFiles
- True if the temp files should be kept false if not- Returns:
- File The local diectory
-
copy
Copy files from the source location to the target- Parameters:
source
- The source locationtarget
- The target locationrecursive
- Recurse through the source location if tre
-