Package com.gitblit.manager

Examples of com.gitblit.manager.IGitblit.installPlugin()


    public void run() throws Failure {
      IGitblit gitblit = getContext().getGitblit();
      try {
        String ulc = urlOrId.toLowerCase();
        if (ulc.startsWith("http://") || ulc.startsWith("https://")) {
          if (gitblit.installPlugin(urlOrId, !disableChecksum)) {
            stdout.println(String.format("Installed %s", urlOrId));
          } else {
            throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));
          }
        } else {
View Full Code Here


                  urlOrId, pr.version, pr.requires);
              throw new UnloggedFailure(1, msg);
            }
          }

          if (gitblit.installPlugin(pr.url, !disableChecksum)) {
            stdout.println(String.format("Installed %s", urlOrId));
          } else {
            throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));
          }
        }
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.