Package org.sonatype.nexus.tasks

Examples of org.sonatype.nexus.tasks.DeleteRepositoryFoldersTask


  public void inspect(final RepositoryRegistryEventPostRemove evt) {
    Repository repository = evt.getRepository();

    try {
      // remove the storage folders for the repository
      DeleteRepositoryFoldersTask task = nexusScheduler.createTaskInstance(DeleteRepositoryFoldersTask.class);

      task.setRepository(repository);

      nexusScheduler.submit("Deleting repository folder for repository \"" + repository.getName() + "\" (id="
          + repository.getId() + ").", task);
    }
    catch (Exception e) {
View Full Code Here

TOP

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

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.