]> source.dussan.org Git - archiva.git/commitdiff
[MRM-166] ignore .reports and .index when doing discovery
authorBrett Porter <brett@apache.org>
Sat, 9 Sep 2006 15:28:22 +0000 (15:28 +0000)
committerBrett Porter <brett@apache.org>
Sat, 9 Sep 2006 15:28:22 +0000 (15:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@441798 13f79535-47bb-0310-9956-ffa450edef68

archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java

index 898559fe3e9d5206bf815a088e36d03c83e3d909..86b297913f88cfe91dc82da1eb8889fff93e91f0 100644 (file)
@@ -38,9 +38,10 @@ public abstract class AbstractArtifactDiscoverer
     /**
      * Standard patterns to exclude from discovery as they are not artifacts.
      */
-    private static final String[] STANDARD_DISCOVERY_EXCLUDES = {"bin/**", "reports/**", ".maven/**", "**/*.md5",
-        "**/*.MD5", "**/*.sha1", "**/*.SHA1", "**/*snapshot-version", "*/website/**", "*/licenses/**", "*/licences/**",
-        "**/.htaccess", "**/*.html", "**/*.asc", "**/*.txt", "**/*.xml", "**/README*", "**/CHANGELOG*", "**/KEYS*"};
+    private static final String[] STANDARD_DISCOVERY_EXCLUDES = {"bin/**", "reports/**", ".index", ".reports/**",
+        ".maven/**", "**/*.md5", "**/*.MD5", "**/*.sha1", "**/*.SHA1", "**/*snapshot-version", "*/website/**",
+        "*/licenses/**", "*/licences/**", "**/.htaccess", "**/*.html", "**/*.asc", "**/*.txt", "**/*.xml", "**/README*",
+        "**/CHANGELOG*", "**/KEYS*"};
 
     private List scanForArtifactPaths( File repositoryBase, List blacklistedPatterns )
     {
@@ -87,8 +88,8 @@ public abstract class AbstractArtifactDiscoverer
         return artifacts;
     }
 
-    /**
    * Returns an artifact object that is represented by the specified path in a repository
+/**
+ * Returns an artifact object that is represented by the specified path in a repository
      *
      * @param path       The path that is pointing to an artifact
      * @param repository The repository of the artifact