Package net.grinder.util

Examples of net.grinder.util.VersionNumber


    String curJavaVersion = System.getProperty("java.version", "1.6");
    checkJavaVersion(curJavaVersion);
  }

  static void checkJavaVersion(String curJavaVersion) {
    if (new VersionNumber(curJavaVersion).compareTo(new VersionNumber("1.6")) < 0) {
      LOG.info("- Current java version {} is less than 1.6. nGrinder Agent might not work well", curJavaVersion);
    }
  }
View Full Code Here


    if (newVersion.contains("-SNAPSHOT")) {
      return true;
    }
    installedVersion = installedVersion.replaceAll("\\(.*\\)", "").trim();
    newVersion = newVersion.replaceAll("\\(.*\\)", "").trim();
    return new VersionNumber(newVersion).compareTo(new VersionNumber(installedVersion)) > 0;
  }
View Full Code Here

TOP

Related Classes of net.grinder.util.VersionNumber

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.