diff options
author | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-09-20 21:39:27 +0200 |
---|---|---|
committer | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-09-20 21:39:27 +0200 |
commit | 5806dc2980d390405dd9c2785fb8de3c81cd0bcb (patch) | |
tree | 0ff6ed301ae66533648eedd39a94685e76f6bab1 /archiva-cli | |
parent | 6577007992bd6db1a3b28605aab565cb5c6d84a9 (diff) | |
download | archiva-5806dc2980d390405dd9c2785fb8de3c81cd0bcb.tar.gz archiva-5806dc2980d390405dd9c2785fb8de3c81cd0bcb.zip |
Switching some more files to java.nio
Diffstat (limited to 'archiva-cli')
-rw-r--r-- | archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java | 3 |
1 files changed, 1 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 f853db81d..dad00f651 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 @@ -36,7 +36,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.support.ClassPathXmlApplicationContext; -import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; @@ -168,7 +167,7 @@ public class ArchivaCli throws ConsumerException, MalformedURLException { ManagedRepository repo = new ManagedRepository(); - repo.setId( new File( path ).getName() ); + repo.setId( Paths.get( path ).getFileName().toString()); repo.setName( "Archiva CLI Provided Repo" ); repo.setLocation( path ); |