From 8630479fc6c4d9d0e90d6a1486a4c56a1a3d2817 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Sat, 9 Sep 2006 15:28:22 +0000 Subject: [PATCH] [MRM-166] ignore .reports and .index when doing discovery git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@441798 13f79535-47bb-0310-9956-ffa450edef68 --- .../discoverer/AbstractArtifactDiscoverer.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java b/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java index 898559fe3..86b297913 100644 --- a/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java +++ b/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java @@ -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 -- 2.39.5