Class Info

java.lang.Object
VASSAL.Info

public final class Info extends Object
Class for storing release-related information
  • Field Details Link icon

    • javaBinPath Link icon

      @Deprecated(since="2020-10-03", forRemoval=true) public static final String javaBinPath
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use getJavaBinPath() instead.
      The path to the JVM binary.
  • Method Details Link icon

    • setConfig Link icon

      public static void setConfig(Config c)
    • getVersion Link icon

      public static String getVersion()
      A valid version format is "w.x.y[-z]", where 'w','x', and 'y' are integers and z is a string. In the version number, w.x are the major/minor release number, y is the bug-fix release number, and the 'z' identifies an intermediate build: e.g., 3.3.3-alpha1 or 3.3.3-SNAPSHOT
      Returns:
      the full version of the VASSAL engine.
    • getReportableVersion Link icon

      public static String getReportableVersion()
      Bugzilla (and other potential external reporting tools) require only the primary numeric portion of the version number: e.g., 3.3.3-SNAPSHOT return 3.3.3.
      Returns:
      The reportable version number
    • getErrorLogPath Link icon

      public static File getErrorLogPath()
      Returns:
      a version-specific errorLog path
    • getJavaBinPath Link icon

      public static File getJavaBinPath()
    • getBaseDir Link icon

      public static File getBaseDir()
      Returns the directory where VASSAL is installed.
      Returns:
      a File representing the directory
    • getDocDir Link icon

      public static File getDocDir()
    • getConfDir Link icon

      public static File getConfDir()
    • getCacheDir Link icon

      public static File getCacheDir()
    • getTempDir Link icon

      public static File getTempDir()
    • getPrefsDir Link icon

      public static File getPrefsDir()
    • getScreenBounds Link icon

      @Deprecated(since="2020-10-03", forRemoval=true) public static Rectangle getScreenBounds(Component c)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      size of screen accounting for the screen insets (e.g., Windows taskbar)
    • isMacOSX Link icon

      @Deprecated(since="2020-08-06", forRemoval=true) public static boolean isMacOSX()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use SystemUtils.IS_OS_MAC instead
    • isModuleTooNew Link icon

      public static boolean isModuleTooNew(String version)
    • hasOldFormat Link icon

      public static boolean hasOldFormat(String version)
    • getBinDir Link icon

      @Deprecated(since="2020-10-03", forRemoval=true) public static File getBinDir()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use getBaseDir() instead.
    • getHomeDir Link icon

      @Deprecated(since="2020-10-02", forRemoval=true) public static File getHomeDir()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use getConfDir() instead.