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/06 07:52:05 UTC
[logging-parent] 04/30: Fix `Files.isRegularFile()` call for BSH
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release/10.0.0
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
commit 47ea23354bbdf1b71f27a9b349043c34e231abba
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 4bb90aa..1eaab55 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);
}