diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-16 17:12:51 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-16 17:12:51 +1000 |
commit | 67985e0486f4c0d4fb65ca0859201d70e91703b5 (patch) | |
tree | 9812fa5b9a5ebe337adad1e4d96d8ecb7ae00ad6 /archiva-modules/plugins/maven2-repository/src | |
parent | 1e2bb57406f48a55f2bab3db3d62704a81827056 (diff) | |
download | archiva-67985e0486f4c0d4fb65ca0859201d70e91703b5.tar.gz archiva-67985e0486f4c0d4fb65ca0859201d70e91703b5.zip |
diamond operator
Diffstat (limited to 'archiva-modules/plugins/maven2-repository/src')
-rw-r--r-- | archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java index 4f795ebcc..c85518a42 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java @@ -87,6 +87,7 @@ import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FilenameFilter; import java.io.IOException; +import java.nio.file.Files; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -571,6 +572,9 @@ public class Maven2RepositoryStorage // scan all directories in the namespace, and only include those that are known to be projects List<String> projects = new ArrayList<>(); + + + File[] files = dir.listFiles( new DirectoryFilter( filter ) ); if ( files != null ) { |