diff options
author | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-09-14 07:45:04 +0200 |
---|---|---|
committer | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-09-14 07:45:04 +0200 |
commit | 0eadc9bab1d34861559535f8e6c22caa0dd06064 (patch) | |
tree | 83ed0ca07e3929b921eb134535236198a0c461b0 /archiva-modules/metadata | |
parent | a446c038534d32994762e051cbea170499e51bbe (diff) | |
download | archiva-0eadc9bab1d34861559535f8e6c22caa0dd06064.tar.gz archiva-0eadc9bab1d34861559535f8e6c22caa0dd06064.zip |
Migrating maven2-repository to java.nio
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java index 8c7b2894f..77bcb9ec0 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java @@ -21,7 +21,7 @@ package org.apache.archiva.metadata.repository.storage; import org.apache.archiva.metadata.model.ArtifactMetadata; -import java.io.File; +import java.nio.file.Path; public interface RepositoryPathTranslator { @@ -31,13 +31,13 @@ public interface RepositoryPathTranslator String toPath( String namespace, String projectId ); - File toFile( File basedir, String namespace, String projectId, String projectVersion, String filename ); + Path toFile( Path basedir, String namespace, String projectId, String projectVersion, String filename ); - File toFile( File basedir, String namespace, String projectId ); + Path toFile( Path basedir, String namespace, String projectId ); - File toFile( File basedir, String namespace ); + Path toFile(Path basedir, String namespace ); - File toFile( File basedir, String namespace, String projectId, String projectVersion ); + Path toFile( Path basedir, String namespace, String projectId, String projectVersion ); ArtifactMetadata getArtifactForPath( String repoId, String relativePath ); |