This is an automated email from the ASF dual-hosted git repository. jianglongtao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push: new 3ecab22eb7b Optimize PluginJarLoader, filter out hidden jar file (#35100) 3ecab22eb7b is described below commit 3ecab22eb7bc0f17bafc14458c0f25e363a244e8 Author: jiangML <1060319...@qq.com> AuthorDate: Tue Apr 1 15:56:48 2025 +0800 Optimize PluginJarLoader, filter out hidden jar file (#35100) --- .../apache/shardingsphere/agent/core/plugin/jar/PluginJarLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/jar/PluginJarLoader.java b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/jar/PluginJarLoader.java index 0e4763e7769..2ab2957e0d1 100644 --- a/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/jar/PluginJarLoader.java +++ b/agent/core/src/main/java/org/apache/shardingsphere/agent/core/plugin/jar/PluginJarLoader.java @@ -67,7 +67,7 @@ public final class PluginJarLoader { @Override public FileVisitResult visitFile(final Path path, final BasicFileAttributes attributes) { File currentFile = path.toFile(); - if (currentFile.isFile() && currentFile.getName().endsWith(".jar")) { + if (currentFile.isFile() && !currentFile.isHidden() && currentFile.getName().endsWith(".jar")) { result.add(currentFile); } return FileVisitResult.CONTINUE;