diff options
Diffstat (limited to 'archiva-cli')
-rw-r--r-- | archiva-cli/src/main/java/org/apache/archiva/cli/AbstractProgressConsumer.java | 6 | ||||
-rw-r--r-- | archiva-cli/src/main/java/org/apache/archiva/cli/ArtifactCountConsumer.java | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/archiva-cli/src/main/java/org/apache/archiva/cli/AbstractProgressConsumer.java b/archiva-cli/src/main/java/org/apache/archiva/cli/AbstractProgressConsumer.java index 0742df402..f53789c0c 100644 --- a/archiva-cli/src/main/java/org/apache/archiva/cli/AbstractProgressConsumer.java +++ b/archiva-cli/src/main/java/org/apache/archiva/cli/AbstractProgressConsumer.java @@ -37,18 +37,21 @@ public abstract class AbstractProgressConsumer { private int count = 0; + @Override public void beginScan( ManagedRepository repository, Date whenGathered ) throws ConsumerException { this.count = 0; } + @Override public void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo ) throws ConsumerException { beginScan( repository, whenGathered ); } + @Override public void processFile( String path ) throws ConsumerException { @@ -60,17 +63,20 @@ public abstract class AbstractProgressConsumer } + @Override public void processFile( String path, boolean executeOnEntireRepo ) throws ConsumerException { processFile( path ); } + @Override public void completeScan() { System.out.println( "Final Count of Artifacts processed by " + getId() + ": " + count ); } + @Override public void completeScan( boolean executeOnEntireRepo ) { completeScan(); diff --git a/archiva-cli/src/main/java/org/apache/archiva/cli/ArtifactCountConsumer.java b/archiva-cli/src/main/java/org/apache/archiva/cli/ArtifactCountConsumer.java index 7efde1622..6ac24d5ce 100644 --- a/archiva-cli/src/main/java/org/apache/archiva/cli/ArtifactCountConsumer.java +++ b/archiva-cli/src/main/java/org/apache/archiva/cli/ArtifactCountConsumer.java @@ -67,26 +67,31 @@ public class ArtifactCountConsumer includes.add( "**/*.zip" ); } + @Override public String getDescription() { return description; } + @Override public String getId() { return id; } + @Override public boolean isPermanent() { return false; } + @Override public List<String> getExcludes() { return null; } + @Override public List<String> getIncludes() { return includes; |