mirror of https://github.com/apache/archiva.git
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
This commit is contained in:
parent
bf40346375
commit
839d3e0028
|
@ -550,7 +550,7 @@ public class DefaultManagedRepositoryAdmin
|
||||||
|
|
||||||
if ( context != null )
|
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;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,7 @@ public class DefaultRepositoriesService
|
||||||
ArtifactIndexingTask task =
|
ArtifactIndexingTask task =
|
||||||
new ArtifactIndexingTask( repository, null, ArtifactIndexingTask.Action.FINISH, context );
|
new ArtifactIndexingTask( repository, null, ArtifactIndexingTask.Action.FINISH, context );
|
||||||
|
|
||||||
task.setExecuteOnEntireRepo( true );
|
task.setExecuteOnEntireRepo( fullScan );
|
||||||
task.setOnlyUpdate( false );
|
task.setOnlyUpdate( false );
|
||||||
|
|
||||||
archivaIndexingTaskExecutor.executeTask( task );
|
archivaIndexingTaskExecutor.executeTask( task );
|
||||||
|
|
Loading…
Reference in New Issue