else
{
File artifactFile = new File( managedRepository, path );
// specify in indexing task that this is not a repo scan request!
ArtifactIndexingTask task =
new ArtifactIndexingTask( repository, artifactFile, ArtifactIndexingTask.Action.ADD,
getIndexingContext(), false );
// only update index we don't need to scan the full repo here
task.setOnlyUpdate( true );
try
{
log.debug( "Queueing indexing task '{}' to add or update the artifact in the index.", task );
scheduler.queueTask( task );
}