diff options
author | Brett Porter <brett@apache.org> | 2014-08-01 17:28:55 +1000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2014-08-01 17:29:11 +1000 |
commit | 4568a435d6abdc2062df1e7e92569decfc50e290 (patch) | |
tree | da8139ac097e11e88d79ad2bafbe44d0eef5ba1f /archiva-cli | |
parent | 4ec9c4356f011964e9dde74e1eea9aa40f7c55be (diff) | |
download | archiva-4568a435d6abdc2062df1e7e92569decfc50e290.tar.gz archiva-4568a435d6abdc2062df1e7e92569decfc50e290.zip |
use final part of the repository directory as the ID
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 7fc1a2c37..f0ef555ce 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,7 +164,7 @@ public class ArchivaCli throws ConsumerException, MalformedURLException { ManagedRepository repo = new ManagedRepository(); - repo.setId( "cliRepo" ); + repo.setId( new File( path ).getName() ); repo.setName( "Archiva CLI Provided Repo" ); repo.setLocation( path ); |