diff options
author | Olivier Lamy <olamy@apache.org> | 2011-09-01 08:49:08 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-09-01 08:49:08 +0000 |
commit | 745243b347400e3db9c94882d676b654f3af4f4c (patch) | |
tree | 01e33ec8b72da7d5f62d71951f16b6908050f9c8 /archiva-modules/archiva-base | |
parent | 2d5d7683fd3715aae30a22a190d895d51b9d820a (diff) | |
download | archiva-745243b347400e3db9c94882d676b654f3af4f4c.tar.gz archiva-745243b347400e3db9c94882d676b654f3af4f4c.zip |
remove some logic methods not anymore used as move to repo admin api
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1163946 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
2 files changed, 18 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java index 34938fa50..bc5d0cf9e 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java @@ -467,7 +467,7 @@ public class DefaultManagedRepositoryAdmin } - private String removeExpressions( String directory ) + public String removeExpressions( String directory ) { String value = StringUtils.replace( directory, "${appserver.base}", registry.getString( "appserver.base", "${appserver.base}" ) ); @@ -654,4 +654,14 @@ public class DefaultManagedRepositoryAdmin { this.repositoryTaskScheduler = repositoryTaskScheduler; } + + public Registry getRegistry() + { + return registry; + } + + public void setRegistry( Registry registry ) + { + this.registry = registry; + } } diff --git a/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdmin.java index 35aac68b7..0696b4218 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/src/main/java/org/apache/archiva/admin/repository/managed/ManagedRepositoryAdmin.java @@ -48,4 +48,11 @@ public interface ManagedRepositoryAdmin AuditInformation auditInformation, boolean resetStats ) throws RepositoryAdminException; + /** + * replace some interpolations ${appserver.base} with correct values + * @param directory + * @return + */ + String removeExpressions( String directory ); + } |