Package ro.fortsoft.pf4j

Examples of ro.fortsoft.pf4j.Version.atLeast()


          // enforce minimum system requirement
          if (!StringUtils.isEmpty(pr.requires)) {
            Version requires = Version.createVersion(pr.requires);
            Version system = gitblit.getSystemVersion();
            boolean isValid = system.isZero() || system.atLeast(requires);
            if (!isValid) {
              String msg = String.format("Plugin \"%s:%s\" requires Gitblit %s",
                  urlOrId, pr.version, pr.requires);
              throw new UnloggedFailure(1, msg);
            }
View Full Code Here


      // enforce minimum system requirement
      if (!StringUtils.isEmpty(pr.requires)) {
        Version requires = Version.createVersion(pr.requires);
        Version system = gitblit.getSystemVersion();
        boolean isValid = system.isZero() || system.atLeast(requires);
        if (!isValid) {
          throw new Failure(1, String.format("Plugin \"%s:%s\" requires Gitblit %s",
              pluginWrapper.getPluginId(), pr.version, pr.requires));
        }
      }
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.