Class BuildInfo
java.lang.Object
org.frontcache.license.BuildInfo
The version and release date this jar was built as - read from
org/frontcache/build-info.properties,
which the build generates from version.properties (see generateBuildInfo in build.gradle).
Why a release date at all
It is the half of the perpetual-fallback check that the customer cannot move: a license is valid for a build when the build was released on or before the license'supdates-until. Both sides of that
comparison are fixed at signing / build time, so setting the clock back changes nothing.
The date is release-date from version.properties when it is set (the release cut sets it), and
the build day otherwise. A development build therefore carries "today", which is the honest answer: it
was released, to whoever built it, today.
Unknown is a value
Classes compiled by an IDE without running the Gradle resource step have no build-info at all. That yieldsUNKNOWN_VERSION and a null release date, and the license check skips the
updates-until comparison rather than failing it - a missing resource must not read as an
expired subscription.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BuildInfocurrent()The day this build was released, or null when the jar carries no build-info.The Frontcache version, orUNKNOWN_VERSION.toString()
-
Field Details
-
UNKNOWN_VERSION
- See Also:
-
-
Method Details
-
current
-
getVersion
The Frontcache version, orUNKNOWN_VERSION. -
getReleaseDate
The day this build was released, or null when the jar carries no build-info. -
toString
-