summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-admin
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-04-02 19:27:38 +0000
committerOlivier Lamy <olamy@apache.org>2012-04-02 19:27:38 +0000
commit59420ec4c489cb93803bdc156c3ae92f3c9b516b (patch)
tree7f8b081421aaf0d9c5a35539a1106f0a8afc88cd /archiva-modules/archiva-base/archiva-repository-admin
parent69f3413fcb2dce7afcc6af60d9b9c54a16b52082 (diff)
downloadarchiva-59420ec4c489cb93803bdc156c3ae92f3c9b516b.tar.gz
archiva-59420ec4c489cb93803bdc156c3ae92f3c9b516b.zip
adding repository with existing location, confirm modal was not closed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-admin')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java
index 4dee8b409..6aa3341f4 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java
@@ -568,6 +568,7 @@ public class DefaultManagedRepositoryAdmin
if ( !indexDirectory.isAbsolute() )
{
indexDirectory = new File( managedRepository, repository.getIndexDirectory() );
+ repository.setIndexDirectory( indexDirectory.getAbsolutePath() );
}
}
else
@@ -579,6 +580,7 @@ public class DefaultManagedRepositoryAdmin
getRegistry().getString( "appserver.base" ) + File.separatorChar + "repositories"
+ File.separatorChar +
repository.getLocation(), ".indexer" );
+ repository.setIndexDirectory( indexDirectory.getAbsolutePath() );
}
}