aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-cli
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2014-08-01 17:28:55 +1000
committerBrett Porter <brett@apache.org>2014-08-01 17:29:11 +1000
commit4568a435d6abdc2062df1e7e92569decfc50e290 (patch)
treeda8139ac097e11e88d79ad2bafbe44d0eef5ba1f /archiva-cli
parent4ec9c4356f011964e9dde74e1eea9aa40f7c55be (diff)
downloadarchiva-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.java2
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 );