aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-core
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2006-09-01 01:47:48 +0000
committerBrett Porter <brett@apache.org>2006-09-01 01:47:48 +0000
commit96ba48bf47f30f099a9b2bf83cd2f3686f5382ed (patch)
tree2a8598e15ebf5331c7f5bdbe75344a3169927f62 /archiva-core
parentf8dd7d4c5d7d09afa61e8de69999fb7517de6b28 (diff)
downloadarchiva-96ba48bf47f30f099a9b2bf83cd2f3686f5382ed.tar.gz
archiva-96ba48bf47f30f099a9b2bf83cd2f3686f5382ed.zip
[MRM-144] various minor improvements to code
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@439134 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-core')
-rw-r--r--archiva-core/src/main/java/org/apache/maven/archiva/scheduler/IndexerTask.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/IndexerTask.java b/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/IndexerTask.java
index 4468b2b1d..52487d4f0 100644
--- a/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/IndexerTask.java
+++ b/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/IndexerTask.java
@@ -106,8 +106,15 @@ public class IndexerTask
if ( repositoryConfiguration.isIndexed() )
{
- // TODO! include global ones
- String blacklistedPatterns = repositoryConfiguration.getBlackListPatterns();
+ List blacklistedPatterns = new ArrayList();
+ if ( repositoryConfiguration.getBlackListPatterns() != null )
+ {
+ blacklistedPatterns.addAll( repositoryConfiguration.getBlackListPatterns() );
+ }
+ if ( configuration.getGlobalBlackListPatterns() != null )
+ {
+ blacklistedPatterns.addAll( configuration.getGlobalBlackListPatterns() );
+ }
boolean includeSnapshots = repositoryConfiguration.isIncludeSnapshots();
ArtifactRepository repository = repoFactory.createRepository( repositoryConfiguration );