Class ICUDebug

java.lang.Object
com.ibm.icu.impl.ICUDebug

public final class ICUDebug extends Object
  • Field Details

    • params

      private static String params
    • debug

      private static boolean debug
    • help

      private static boolean help
  • Constructor Details

    • ICUDebug

      public ICUDebug()
  • Method Details

    • enabled

      public static boolean enabled()
    • enabled

      public static boolean enabled(String name)
      Returns true if a certain named debug flag is enabled.

      To enable debugging when running maven one must define ICUDebug. For example this runs all the tests in LocaleMatcherTest without debugging:

          mvn package -f main/core/ -Dtest=LocaleMatcherTest
      
      And this runs the same tests, but with debugging enabled:
          mvn package -f main/core/ -Dtest=LocaleMatcherTest -DICUDebug=localematchertest
      
      You must check what name is used for the debugging flag by inspecting the code, it is not always the lowercase class name.
      Parameters:
      name - the name if the debug flag to enable
      Returns:
      true if the debugging should be enabled for that flag
    • value

      public static String value(String arg)