Class CamelVersionHelper

java.lang.Object
org.apache.camel.tooling.util.CamelVersionHelper

public final class CamelVersionHelper extends Object
A simple util to test Camel versions. This implementation only checks the numeric values and disregard SNAPSHOT or any other qualifiers.
  • Method Details

    • isGE

      public static boolean isGE(String base, String other)
      Checks whether other >= base
      Parameters:
      base - the base version
      other - the other version
      Returns:
      true if GE, false otherwise
    • isGE

      public static boolean isGE(String base, String other, boolean majorMinorOnly)
    • prevMinor

      public static String prevMinor(String base)
      Returns the previous minor version number
      Parameters:
      base - the version
      Returns:
      the previous minor version, eg 3.3.0 as input, returns 3.2.0 as output