System Tools and Scripting Plugins → FileUtils Plugin → Synchronize Directories Step
This step moves any files in a source directory that are not yet in the destination directory to the destination and deletes files in the destination that are not in the source. Synchronization is based on file date-time stamp.
Required properties:
Property Name | Description |
---|---|
Source Directory | The directory to synchronize |
Destination Directories | Specify a new-line-separated list of directories to which to sync |
Include Files |
Specify a comma or space-separated list of patterns of files to include. Pattern Matching Rules: * matches zero or more characters ? matches one character ** matches zero or more directories Examples: *.java - matches .java, x.java, and FooBar.java ?.java - matches x.java, A.java **/*.txt - matches all txt files recursively **/CVS/* - matches all files in CVS directories anywhere in the directory tree org/apache/jakarta/** - matches all files in the org/apache/jakarta directory tree org/apache/**/CVS/* - matches all files in CVS directories anywhere in the in the directory tree under org/apache/ **/test/** - matches all files that have a test element in their path, including test as a filename |
Optional properties:
Property Name | Description |
---|---|
Overwrite | Overwrite destination files even if they are newer than source files. |
Exclude Files | Specify a comma or space-separated list of patterns of files to exclude. Pattern matching rules are the same as those listed in Include Files. |
Include in Preserve |
File pattern for files to retain in the destination directories even if they are not in the source directory. The pattern matching rules are the same as for Include Files. |
Exclude from Preserve | File pattern for files to exclude from being kept in the destination directories if they are not in the source directories. The pattern matching rules are the same as for Exclude Files. |
Copyright © 2013–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.