diff options
author | Brett Porter <brett@apache.org> | 2009-03-10 01:38:09 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-03-10 01:38:09 +0000 |
commit | bf03bbad7ae8caac18adbfe9010e18956872e37a (patch) | |
tree | 5ec39d8aca9efbd843d14665c384e072f5bc5f04 /archiva-modules | |
parent | e75840b71f2ef6a4569f40bc6c332a7133ff9813 (diff) | |
download | archiva-bf03bbad7ae8caac18adbfe9010e18956872e37a.tar.gz archiva-bf03bbad7ae8caac18adbfe9010e18956872e37a.zip |
[MRM-1102] reduce verbosity of ZipExceptions
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751941 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java index 6203611cb..39a04e8ff 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java @@ -27,6 +27,7 @@ import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; +import java.util.zip.ZipException; import org.apache.lucene.document.Document; import org.apache.lucene.index.IndexReader; @@ -187,6 +188,11 @@ public class NexusIndexerConsumer indexerEngine.index( context, artifactContext ); } } + catch ( ZipException e ) + { + // invalid JAR file + log.info( e.getMessage() ); + } catch ( IOException e ) { throw new ConsumerException( e.getMessage(), e ); |