Author: brett
Date: Sat Sep 9 08:28:22 2006
New Revision: 441798
URL: http://svn.apache.org/viewvc?view=rev&rev=441798
Log:
[MRM-166] ignore .reports and .index when doing discovery
Modified:
maven/archiva/trunk/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java
Modified:
maven/archiva/trunk/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java
URL:
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java?view=diff&rev=441798&r1=441797&r2=441798
==============================================================================
---
maven/archiva/trunk/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java
(original)
+++
maven/archiva/trunk/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java
Sat Sep 9 08:28:22 2006
@@ -38,9 +38,10 @@
/**
* 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 @@
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