]> source.dussan.org Git - archiva.git/commitdiff
fix rest call for scanRepositoryNow fullScan parameter was not honoured
authorOlivier Lamy <olamy@apache.org>
Thu, 19 Jan 2012 00:01:42 +0000 (00:01 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 19 Jan 2012 00:01:42 +0000 (00:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233135 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java

index d78d6413698a0a5e9011794c270ee9c68bf58c85..0a20f1847bbd0b7e10fd452b005a6e81ba377336 100644 (file)
@@ -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;
             }
 
index c9fe5883639dab9832f2bdc492440bfa1c8f764a..91d9c7b83b6b1695aa6825f406e0cd39be7a3f7a 100644 (file)
@@ -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 );