Package org.sonatype.nexus.tasks

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

Related Classes of org.sonatype.nexus.tasks.SynchronizeShadowsTask

Copyright © 2018 www.massapicom. 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.