diff options
author | Martin Stockhammer <martin_s@apache.org> | 2017-09-03 11:01:15 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2017-09-03 11:01:15 +0200 |
commit | b5eddeb67b31ab0529351a02cce5a38d126a21fe (patch) | |
tree | 6d816067b6e828f2bb3546d235175f207520810f /archiva-cli | |
parent | cd1f4a9e79c91e11f1183045b6aeb8b93017d319 (diff) | |
download | archiva-b5eddeb67b31ab0529351a02cce5a38d126a21fe.tar.gz archiva-b5eddeb67b31ab0529351a02cce5a38d126a21fe.zip |
Moving converter module to java.nio
Diffstat (limited to 'archiva-cli')
-rw-r--r-- | archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java index 880c5f17a..f853db81d 100644 --- a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java +++ b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java @@ -41,6 +41,7 @@ import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; @@ -263,9 +264,9 @@ public class ArchivaCli p.load( fis ); } - File oldRepositoryPath = new File( p.getProperty( SOURCE_REPO_PATH ) ); + Path oldRepositoryPath = Paths.get( p.getProperty( SOURCE_REPO_PATH ) ); - File newRepositoryPath = new File( p.getProperty( TARGET_REPO_PATH ) ); + Path newRepositoryPath = Paths.get( p.getProperty( TARGET_REPO_PATH ) ); LOGGER.info( "Converting {} to {}", oldRepositoryPath, newRepositoryPath ); |