Merge pull request #12465 from xuzha/xu-skip-hidden

skip hidden files
This commit is contained in:
Adrien Grand 2015-07-27 10:06:45 +02:00
commit 00ae4bb792
1 changed files with 4 additions and 0 deletions

View File

@ -312,6 +312,10 @@ public class PluginsService extends AbstractComponent {
try (DirectoryStream<Path> stream = Files.newDirectoryStream(pluginsDirectory)) {
for (Path plugin : stream) {
try {
if (Files.isHidden(plugin)) {
logger.trace("--- skip hidden plugin file[{}]", plugin.toAbsolutePath());
continue;
}
logger.trace("--- adding plugin [{}]", plugin.toAbsolutePath());
PluginInfo info = PluginInfo.readFromProperties(plugin);
List<URL> urls = new ArrayList<>();