diff options
author | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-11-20 08:20:42 +0100 |
---|---|---|
committer | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-11-20 08:20:42 +0100 |
commit | 754b2d594076355d6e9d0b7698d309c87a0d672b (patch) | |
tree | fc263ab07783ed35617a0d6a085a0b458d1ef0fb /archiva-cli | |
parent | 2fe8227634acfeaf7837e953e0f8fd2a44dae3a5 (diff) | |
download | archiva-754b2d594076355d6e9d0b7698d309c87a0d672b.tar.gz archiva-754b2d594076355d6e9d0b7698d309c87a0d672b.zip |
Adding local path to repository API
Diffstat (limited to 'archiva-cli')
-rw-r--r-- | archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java | 2 |
1 files changed, 1 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 d274c3db3..b2ca3782f 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 @@ -168,7 +168,7 @@ public class ArchivaCli private void doScan( String path, String[] consumers ) throws ConsumerException, MalformedURLException { - BasicManagedRepository repo = new BasicManagedRepository( Paths.get(path).getFileName().toString(), "Archiva CLI Provided Repo" ); + BasicManagedRepository repo = new BasicManagedRepository( Paths.get(path).getFileName().toString(), "Archiva CLI Provided Repo", Paths.get(path).getParent()); repo.setLocation( Paths.get(path).toUri() ); List<KnownRepositoryContentConsumer> knownConsumerList = new ArrayList<>(); |