Skip to content

Commit

Permalink
Merge pull request #12465 from xuzha/xu-skip-hidden
Browse files Browse the repository at this point in the history
skip hidden files
  • Loading branch information
jpountz committed Jul 27, 2015
2 parents a99ccb6 + b0b9c12 commit 00ae4bb
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -312,6 +312,10 @@ static List<Bundle> getPluginBundles(Environment environment) throws IOException
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<>();
Expand Down

0 comments on commit 00ae4bb

Please sign in to comment.