You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/09/04 10:10:12 UTC
[logging-parent] 02/05: Fix `Files.isRegularFile()` call for BSH
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
commit 33ce4463f0c2ca31fd322b461d7e4969c32fd25f
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Sep 4 11:04:13 2023 +0200
Fix `Files.isRegularFile()` call for BSH
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index fa2a429..b6923ce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -636,11 +636,11 @@
// Find attachments that will go into the distribution
SortedMap attachmentPathByFile = new TreeMap();
- Stream paths = Files.walk(new File(repoDirectoryParent).toPath(), 8, new FileVisitOption[0]);
+ Stream paths = Files.walk(new File(repoDirectoryParent).toPath(), 8, /* required for BSH method resolution: */ new FileVisitOption[0]);
try {
paths.forEach(new Consumer() {
public void accept(Path path) {
- if (Files.isRegularFile(path) &&
+ if (Files.isRegularFile(path, /* required for BSH method resolution: */ new LinkOption[0]) &&
path.toAbsolutePath().toString().matches("${attachmentFilepathPattern}")) {
attachmentPathByFile.put(path.toFileName().toString(), path);
}