diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-17 09:57:30 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-17 09:57:30 +1000 |
commit | bb3014071965a7a620284886aa3ccf96b7aa6d0e (patch) | |
tree | 863a676d9588f9b09c530350b519aaa0ee9ebdd2 /archiva-cli | |
parent | b2ebfd6cc257b7040644dc52e38aa5b8c4faaa4e (diff) | |
download | archiva-bb3014071965a7a620284886aa3ccf96b7aa6d0e.tar.gz archiva-bb3014071965a7a620284886aa3ccf96b7aa6d0e.zip |
using more java.nio.file
Diffstat (limited to 'archiva-cli')
-rw-r--r-- | archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java | 4 |
1 files changed, 3 insertions, 1 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 e899562b0..25e994773 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 @@ -43,6 +43,8 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; +import java.nio.file.Files; +import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -259,7 +261,7 @@ public class ArchivaCli Properties p = new Properties(); - try (FileInputStream fis = new FileInputStream( properties )) + try (InputStream fis = Files.newInputStream( Paths.get(properties))) { p.load( fis ); } |