Examples of allowSnapshots()


Examples of org.moxie.Repository.allowSnapshots()

        // get repository by identifier
        Repository repository = getBuild().getConfig().getRepository(repositoryId);
        if (repository == null) {
          throw new MoxieException("Failed to find repositoryId: {0}", repositoryId);
        }
        if (isSnapshot && !repository.allowSnapshots()) {
          if (allowSnapshots) {
            getConsole().warn("Repository \"{0}\" prohibits snapshots! Overridden by \"allowSnapshots\" attribute!", repository.toString());
          } else {
            throw new MoxieException("Repository \"{0}\" prohibits installation or deployment of snapshots!",
              repository.toString(), repository.getRepositoryUrl());
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.