From 5eaec2f448ed2b12c73b95bf421d88ac7e674053 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 17 Aug 2009 20:17:36 +0000 Subject: [PATCH] o Restored methods for backward-compat git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@805122 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/artifact/repository/ArtifactRepository.java | 8 +++++++- .../repository/DefaultArtifactRepository.java | 6 ++++++ .../artifact/repository/MavenArtifactRepository.java | 11 +++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepository.java b/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepository.java index d16469d232..ab3617c429 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepository.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/repository/ArtifactRepository.java @@ -53,7 +53,13 @@ public interface ArtifactRepository void setLayout( ArtifactRepositoryLayout layout ); String getKey(); - + + @Deprecated + boolean isUniqueVersion(); + + @Deprecated + boolean isBlacklisted(); + // // New interface methods for the repository system. // diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java b/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java index 29e6e4a160..b4271f2a34 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java @@ -230,4 +230,10 @@ public class DefaultArtifactRepository { // do nothing } + + public boolean isUniqueVersion() + { + return true; + } + } diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java b/maven-compat/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java index fcff6a0855..13f14d10e6 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java @@ -357,4 +357,15 @@ public class MavenArtifactRepository { this.proxy = proxy; } + + public boolean isBlacklisted() + { + return false; + } + + public boolean isUniqueVersion() + { + return true; + } + }