From 839d3e0028126a5969485fa8e7c074f6630a7bd7 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 19 Jan 2012 00:01:42 +0000 Subject: [PATCH] fix rest call for scanRepositoryNow fullScan parameter was not honoured git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233135 13f79535-47bb-0310-9956-ffa450edef68 --- .../admin/repository/managed/DefaultManagedRepositoryAdmin.java | 2 +- .../archiva/rest/services/DefaultRepositoriesService.java | 2 +- 2 files changed, 2 insertions(+), 2 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 d78d64136..0a20f1847 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 @@ -550,7 +550,7 @@ public class DefaultManagedRepositoryAdmin if ( context != null ) { - log.debug( "skip adding repository with id {} as already exists", repository.getId() ); + log.debug( "skip adding repository indexingContent with id {} as already exists", repository.getId() ); return context; } diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java index c9fe58836..91d9c7b83 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java @@ -202,7 +202,7 @@ public class DefaultRepositoriesService ArtifactIndexingTask task = new ArtifactIndexingTask( repository, null, ArtifactIndexingTask.Action.FINISH, context ); - task.setExecuteOnEntireRepo( true ); + task.setExecuteOnEntireRepo( fullScan ); task.setOnlyUpdate( false ); archivaIndexingTaskExecutor.executeTask( task );