[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
This commit is contained in:
Brett Porter 2006-09-09 15:28:22 +00:00
parent cad717586f
commit 8630479fc6
1 changed files with 6 additions and 5 deletions

View 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