git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@708112
13f79535-47bb-0310-9956-
ffa450edef68
ArchivaTaskScheduler taskScheduler = (ArchivaTaskScheduler) wac.getBean(PlexusToSpringUtils.buildSpringId(ArchivaTaskScheduler.class));
TaskQueueExecutor databaseUpdateQueue = (TaskQueueExecutor) wac.getBean(PlexusToSpringUtils.buildSpringId(TaskQueueExecutor.class, "database-update"));
TaskQueueExecutor repositoryScanningQueue = (TaskQueueExecutor) wac.getBean(PlexusToSpringUtils.buildSpringId(TaskQueueExecutor.class, "repository-scanning"));
- Banner banner = new Banner();
try
{
securitySync.startup();
resolverFactory.startup();
taskScheduler.startup();
- banner.display();
+ Banner.display();
}
catch ( ArchivaException e )
{
import java.util.regex.Pattern;
import org.apache.commons.lang.StringUtils;
-import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
import org.slf4j.LoggerFactory;
/**
return injectVersion( decode( encodedBanner ), version );
}
- public void display()
+ public static void display()
{
String banner = getBanner( ArchivaVersion.determineVersion() );
LoggerFactory.getLogger( Banner.class ).info( StringUtils.repeat( "_", 25 ) + "\n" + banner );