]> source.dussan.org Git - archiva.git/commitdiff
use final part of the repository directory as the ID
authorBrett Porter <brett@apache.org>
Fri, 1 Aug 2014 07:28:55 +0000 (17:28 +1000)
committerBrett Porter <brett@apache.org>
Fri, 1 Aug 2014 07:29:11 +0000 (17:29 +1000)
archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java

index 7fc1a2c370d3eafeddd55f2323684a1bfa3459fd..f0ef555ce7f50b20fd1c518883957b852aed3d10 100644 (file)
@@ -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 );