Package io.jawk.util

Class JawkVersion

java.lang.Object
io.jawk.util.JawkVersion

public final class JawkVersion extends Object
Reports the version of the Jawk that is running.

This is the single source of truth behind every version Jawk hands out: jawk -V on the command line, and ScriptEngineFactory.getEngineVersion() for JSR 223 hosts. Embedders can call it directly to stamp their own logs and diagnostics with the Jawk they loaded.

  • Method Details

    • getVersion

      public static String getVersion()
      Returns the version of the running Jawk.
      Returns:
      the version string, such as 7.2.00, or unknown when no build metadata is available