diff options
Diffstat (limited to 'archiva-modules/archiva-maven/archiva-maven-repository')
3 files changed, 0 insertions, 56 deletions
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/AbstractDefaultRepositoryContent.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/AbstractDefaultRepositoryContent.java index c43d401d8..2f2b2f749 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/AbstractDefaultRepositoryContent.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/AbstractDefaultRepositoryContent.java @@ -78,13 +78,6 @@ public abstract class AbstractDefaultRepositoryContent implements RepositoryCont } @Override - public ArtifactReference toArtifactReference( String path ) - throws LayoutException - { - return defaultPathParser.toArtifactReference( path ); - } - - @Override public ItemSelector toItemSelector( String path ) throws LayoutException { return defaultPathParser.toItemSelector( path ); diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/ManagedDefaultRepositoryContent.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/ManagedDefaultRepositoryContent.java index eedd3663f..734174732 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/ManagedDefaultRepositoryContent.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/ManagedDefaultRepositoryContent.java @@ -1597,36 +1597,6 @@ public class ManagedDefaultRepositoryContent return repository.getRoot().getStorage( ); } - /** - * Convert a path to an artifact reference. - * - * @param path the path to convert. (relative or full location path) - * @throws LayoutException if the path cannot be converted to an artifact reference. - */ - @Override - public ArtifactReference toArtifactReference( String path ) - throws LayoutException - { - String repoPath = convertUriToPath( repository.getLocation( ) ); - if ( ( path != null ) && path.startsWith( repoPath ) && repoPath.length( ) > 0 ) - { - return super.toArtifactReference( path.substring( repoPath.length( ) + 1 ) ); - } - else - { - repoPath = path; - if ( repoPath != null ) - { - while ( repoPath.startsWith( "/" ) ) - { - repoPath = repoPath.substring( 1 ); - } - } - return super.toArtifactReference( repoPath ); - } - } - - public void setFiletypes( FileTypes filetypes ) { this.filetypes = filetypes; diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/RemoteDefaultRepositoryContent.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/RemoteDefaultRepositoryContent.java index 0e7ce7309..abdefbf50 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/RemoteDefaultRepositoryContent.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven/content/RemoteDefaultRepositoryContent.java @@ -73,25 +73,6 @@ public class RemoteDefaultRepositoryContent this.repository = repository; } - /** - * Convert a path to an artifact reference. - * - * @param path the path to convert. (relative or full url path) - * @throws LayoutException if the path cannot be converted to an artifact reference. - */ - @Override - public ArtifactReference toArtifactReference( String path ) - throws LayoutException - { - - if ( ( path != null ) && repository.getLocation()!=null && path.startsWith( repository.getLocation().toString() ) ) - { - return super.toArtifactReference( path.substring( repository.getLocation().toString().length( ) ) ); - } - - return super.toArtifactReference( path ); - } - @Override public RepositoryURL toURL( ArtifactReference reference ) { |