Class BuildInfo

java.lang.Object
nl.bimbase.bimworks.client.BuildInfo

public final class BuildInfo extends Object
The build of this SDK, which it sends with every request (docs/sdk-client-identification-design.md §5.2). The Ops builder stamps the three values right before it compiles (BimWorksClientBuildJob); run from sources they stay as they are here, and the SDK reports itself as v="dev". The values are private constants behind methods, so an application reads them from the jar it runs with, never from the one it was compiled against.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    When it was built, UTC, ISO 8601 to the second; empty from sources.
    static String
    The commit it was built from, 12 hex digits; empty from sources.
    static nl.sascom.backplane.common.client.ClientIdentity
    What this SDK says it is (§5.1): java or java-shaded, with this build's values.
    static boolean
    Whether this is the shaded jar (nl.bimbase.bimworks:clientshaded).
    static String
    The BIM.works build this SDK was built with, e.g.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • version

      public static String version()
      The BIM.works build this SDK was built with, e.g. 3.0.0-b.38; DEV from sources.
    • built

      public static String built()
      When it was built, UTC, ISO 8601 to the second; empty from sources.
    • commit

      public static String commit()
      The commit it was built from, 12 hex digits; empty from sources.
    • isShaded

      public static boolean isShaded()
      Whether this is the shaded jar (nl.bimbase.bimworks:clientshaded). The shade plugin relocates Jetty, and with it this class literal, so the answer is what actually runs, also when an application shades the jar again.
    • identity

      public static nl.sascom.backplane.common.client.ClientIdentity identity()
      What this SDK says it is (§5.1): java or java-shaded, with this build's values.