use final part of the repository directory as the ID

This commit is contained in:
Brett Porter 2014-08-01 17:28:55 +10:00
parent 4ec9c4356f
commit 4568a435d6
1 changed files with 1 additions and 1 deletions

View 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 );