aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-cli
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-07-11 23:28:01 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-07-11 23:28:01 +0200
commit830ea54e0c64bb5c7fe5b2006c171ebd2625e287 (patch)
treec6e65a81b5e92e6aa2f662398e1f32de5c7e8875 /archiva-cli
parent38b10a09f4c91ba6249baf95b1e4f487cb80ac79 (diff)
downloadarchiva-830ea54e0c64bb5c7fe5b2006c171ebd2625e287.tar.gz
archiva-830ea54e0c64bb5c7fe5b2006c171ebd2625e287.zip
Moving storage api to repository level
Diffstat (limited to 'archiva-cli')
-rw-r--r--archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java4
1 files changed, 2 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 d8078a981..3ff6b3f26 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
@@ -164,9 +164,9 @@ public class ArchivaCli
}
private void doScan( String path, String[] consumers )
- throws ConsumerException, MalformedURLException
+ throws ConsumerException, IOException
{
- BasicManagedRepository repo = new BasicManagedRepository( Paths.get(path).getFileName().toString(), "Archiva CLI Provided Repo", Paths.get(path).getParent());
+ BasicManagedRepository repo = BasicManagedRepository.newFilesystemInstance( Paths.get(path).getFileName().toString(), "Archiva CLI Provided Repo", Paths.get(path).getParent());
repo.setLocation( Paths.get(path).toUri() );
List<KnownRepositoryContentConsumer> knownConsumerList = new ArrayList<>();