java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_base.MeltUtil

public class MeltUtil extends Object
Util methods for melt
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • NEWLINE

      private static final String NEWLINE
    • WELCOME

      private static final String WELCOME
    • MELT_PROPERTIES

      private static Properties MELT_PROPERTIES
  • Constructor Details

    • MeltUtil

      public MeltUtil()
  • Method Details

    • createWelcomeMessage

      private static String createWelcomeMessage()
    • getWelcomeMessage

      public static String getWelcomeMessage()
      ASCII welcome text logged to INFO (also includes the version).
    • logWelcomeMessage

      public static void logWelcomeMessage()
      ASCII welcome text logged to INFO (also includes the version).
    • getMeltVersion

      public static String getMeltVersion()
      Get the melt version. If version can not be detected or found, return the empty string.
      Returns:
      the melt version as a string.
    • getMeltHash

      public static String getMeltHash()
      Returns the git commit hash of the MELT build. If hash can not be detected or found, return the empty string.
      Returns:
      the git commit hash of the MELT build
    • getMeltShortHash

      public static String getMeltShortHash()
      Returns the short git commit hash of the MELT build. If hash can not be detected or found, return the empty string.
      Returns:
      the short git commit hash of the MELT build
    • loadMeltProperties

      private static Properties loadMeltProperties()
    • getMeltPropertyOrDefault

      public static String getMeltPropertyOrDefault(String key, String defaultValue)
    • getMeltPropertyOrDefault

      public static String getMeltPropertyOrDefault(String key, String defaultValue, String initialValue)