Examples of SynchronizeShadowsTask


Examples of org.sonatype.nexus.tasks.SynchronizeShadowsTask

  private void synchronizeShadowsAtStartup() {
    final Collection<ShadowRepository> shadows = repositoryRegistry.getRepositoriesWithFacet(ShadowRepository.class);
    for (ShadowRepository shadow : shadows) {
      if (shadow.isSynchronizeAtStartup()) {
        final SynchronizeShadowsTask task = nexusScheduler.createTaskInstance(SynchronizeShadowsTask.class);
        task.setShadowRepositoryId(shadow.getId());
        nexusScheduler.submit("Shadow Sync (" + shadow.getId() + ")", task);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.