Skip to content

Commit

Permalink
Tweaked check for messaging dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Jun 8, 2023
1 parent 100057a commit c2b9fcb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4556,12 +4556,14 @@ public void installFeaturesToTempDir(File fileChanged, File srcDir, String targe
FileUtils.copyDirectory(serverDirectory, tempConfig, new FileFilter() {
public boolean accept(File pathname) {
String name = pathname.getName();
String parent = pathname.getParentFile().getName();
String serverDirName = serverDirectory.getName();
// skip:
// - ignore list
// - workarea and logs dirs from the server directory, since those can be
// - workarea, messaging and logs dirs from the server directory, since those can be
// changing
boolean skip = ignoreFileOrDir(pathname) || (pathname.isDirectory() &&
(name.equals("workarea") || name.equals("logs") || name.equals("messageStore") || name.equals("Log")));
(name.equals("workarea") || name.equals("logs") || (name.equals("messaging") && parent.equals(serverDirName))));
return !skip;
}
}, true);
Expand Down

0 comments on commit c2b9fcb

Please sign in to comment.