aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-cli/src
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2008-04-28 02:17:44 +0000
committerMaria Odea B. Ching <oching@apache.org>2008-04-28 02:17:44 +0000
commitf4fc560e7162b814754976ba0feccc92037ee708 (patch)
tree8bf9dc50908c1d09b62e7b34c16711ce7ec4cc3d /archiva-cli/src
parent36562a669647390e5d2065e3cfd77c3b268c9319 (diff)
downloadarchiva-f4fc560e7162b814754976ba0feccc92037ee708.tar.gz
archiva-f4fc560e7162b814754976ba0feccc92037ee708.zip
[MRM-773]
-added the constraints for getting the different versions of a specific artifact -added the whenGathered field in beginScan(..) of RepositoryContentConsumer interface and updated all implementing consumers git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@652043 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-cli/src')
-rw-r--r--archiva-cli/src/main/java/org/apache/maven/archiva/cli/AbstractProgressConsumer.java4
-rw-r--r--archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java5
2 files changed, 6 insertions, 3 deletions
diff --git a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/AbstractProgressConsumer.java b/archiva-cli/src/main/java/org/apache/maven/archiva/cli/AbstractProgressConsumer.java
index 6e916fa19..9082418c2 100644
--- a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/AbstractProgressConsumer.java
+++ b/archiva-cli/src/main/java/org/apache/maven/archiva/cli/AbstractProgressConsumer.java
@@ -19,6 +19,8 @@ package org.apache.maven.archiva.cli;
* under the License.
*/
+import java.util.Date;
+
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer;
import org.apache.maven.archiva.consumers.ConsumerException;
@@ -36,7 +38,7 @@ public abstract class AbstractProgressConsumer
{
private int count = 0;
- public void beginScan( ManagedRepositoryConfiguration repository )
+ public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered )
throws ConsumerException
{
this.count = 0;
diff --git a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java b/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java
index 04f52768d..2986574c7 100644
--- a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java
+++ b/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java
@@ -21,6 +21,7 @@ package org.apache.maven.archiva.cli;
import java.io.File;
import java.util.ArrayList;
+import java.util.Date;
import java.util.List;
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
@@ -94,10 +95,10 @@ public class ProjectReaderConsumer
return includes;
}
- public void beginScan( ManagedRepositoryConfiguration repository )
+ public void beginScan( ManagedRepositoryConfiguration repository, Date whenGathered )
throws ConsumerException
{
- super.beginScan( repository );
+ super.beginScan( repository, whenGathered );
this.repo = repository;
}