public class Metadata
extends java.lang.Object
The version strings are mostly intended for support, debugging, and logging purposes, meaning the format and semantics of much of the data here is intentionally opaque.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DATE_STRING
The value returned by the getP4JDateString method if it
can not determine the correct date from the associated JAR
manifest.
|
static int |
DEFAULT_MINIMUM_SUPPORTED_SERVER_VERSION
The default minimum Perforce server level supported by the entire P4Java
API.
|
static java.lang.String |
DEFAULT_VERSION_STRING
The value returned by the getP4JVersionString method if it
can not determine the correct version from the associated JAR
manifest.
|
static java.lang.String |
P4JAVA_PROPS_KEY_PREFIX
The Java properties key prefix use to pick up P4Java properties
from the passed-in properties, etc.
|
Constructor and Description |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
static java.util.jar.Manifest |
getManifest()
Get the JAR Manifest associated with this P4Java instance,
if it exists.
|
static java.lang.String |
getP4JDateString()
Return the P4Java date string associated with this instance as contained
in the enclosing JAR file's manifest Build-Date attribute.
|
static java.lang.String |
getP4JVersionString()
Return the P4Java version string associated with this instance
as contained in the enclosing JAR file's manifest IMPLEMENTATION_TITLE
attribute.
|
static void |
main(java.lang.String[] args)
Public main method, used solely for allowing customers to
print version and other metadata information from the enclosing
JAR file's manifest.
|
public static final java.lang.String P4JAVA_PROPS_KEY_PREFIX
public static final int DEFAULT_MINIMUM_SUPPORTED_SERVER_VERSION
public static final java.lang.String DEFAULT_VERSION_STRING
public static final java.lang.String DEFAULT_DATE_STRING
public static java.lang.String getP4JVersionString()
The format and semantics of this string are not specified here.
public static java.lang.String getP4JDateString()
The format and semantics of this string are not specified here.
public static void main(java.lang.String[] args)
args
- not used.public static java.util.jar.Manifest getManifest() throws java.lang.Exception
java.lang.Exception
- if the manifest can't be found or retrieved
for any reason.