Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #803 from sonatype/NXCM-5197-warn-to-debug-in-hasI…
Browse files Browse the repository at this point in the history
…ntersectingTasksThatRuns

TRIVIAL: warn -> debug for mismatch between plexus and sisu name in tasks
  • Loading branch information
jdillon committed Apr 9, 2013
2 parents 42e261f + 7c70a62 commit 46b1f8d
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -125,6 +125,9 @@ protected boolean hasIntersectingTasksThatRuns( Map<String, List<ScheduledTask<?
// get all activeTasks that runs and are descendants of AbstractNexusRepositoriesTask // get all activeTasks that runs and are descendants of AbstractNexusRepositoriesTask
for ( String taskType : activeTasks.keySet() ) for ( String taskType : activeTasks.keySet() )
{ {
// FIXME: Use nexus scheduler to perform any task lookups so the code can be isolated/managed in one place
// FIXME: avoid using plexus container apis directly

ComponentDescriptor<?> cd = ComponentDescriptor<?> cd =
plexusContainer.getComponentDescriptor( SchedulerTask.class, SchedulerTask.class.getName(), plexusContainer.getComponentDescriptor( SchedulerTask.class, SchedulerTask.class.getName(),
taskType ); taskType );
Expand Down Expand Up @@ -163,7 +166,8 @@ && repositorySetIntersectionIsNotEmpty( task.getTaskParams().get( getRepositoryF
} }
else else
{ {
getLogger().warn( "Could not find component that implements SchedulerTask of type='" + taskType + "'!" ); // this can happen due to mismatch between plexus and sisu naming, nothing we need to WARN the user about however
getLogger().debug( "Could not find component that implements SchedulerTask of type='" + taskType + "'!" );
} }
} }


Expand Down

0 comments on commit 46b1f8d

Please sign in to comment.