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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Copy 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 ignoredint
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
-
Constructor Details
-
FileSystemProjectCopier
public FileSystemProjectCopier()
-
-
Method Details
-
getPriority
Description copied from interface:ProjectCopier
Check the path to see if the implementation supports it- Specified by:
getPriority
in interfaceProjectCopier
- 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 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:
createWorkingStorage
in 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:
copy
in interfaceProjectCopier
- Parameters:
source
- The source directorytarget
- The target directoryrecursive
- Flag for copying recursively
-