ariba.util.core
Class Version

java.lang.Object
  extended by ariba.util.core.Version

public final class Version
extends java.lang.Object

This class provides access to build version information. This information is stored in a resource file named BuildInfo.csv, which should exist in a component which is product specific. The build system will modify this file with the version information from the build, and check the file back in. This will allow developers to build with the same values (if they happen to build and install the component containing BuildInfo.csv) that their backdrop was compiled with. This should allow the RPC client-server version matching logic to continue to work. The BuildInfo.csv resource file contains build numbers and dates and is not localized in any way.

There is another resource file named ariba.util.version.csv, which is for the non-build related resources referenced in this class. This resource file lives in this component. It should be localized.

The 'rescheck' tool would normally report the BuildInfo resources as missing, however these are specifically filtered out.

NOTE: The resources from BuildInfo.csv are fetched with warnings turned off so that if a simple "product" (e.g. a test program) does not define BuildInfo.csv, things will still work, but they'll just get zero for the major, minor, path, and build values, and the date will be null.


Field Summary
static short build
           
static java.lang.String buildName
          Build name is only valid for shared services.
static java.lang.String BuildStringTable
           
static java.lang.String copyrightImage
           
static java.lang.String date
           
static java.lang.String hfpack
           
static java.lang.String langpack
           
static java.lang.String LocalStringTable
           
static byte major
           
static byte minor
           
static byte patch
           
static java.lang.String product
           
static short svcpack
           
static long version
           
static java.lang.String versionImage
           
static int year
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.lang.String makeString(long version)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BuildStringTable

public static final java.lang.String BuildStringTable
See Also:
Constant Field Values

LocalStringTable

public static final java.lang.String LocalStringTable
See Also:
Constant Field Values

product

public static final java.lang.String product

major

public static final byte major

minor

public static final byte minor

patch

public static final byte patch

build

public static final short build

svcpack

public static final short svcpack

hfpack

public static final java.lang.String hfpack

langpack

public static final java.lang.String langpack

date

public static final java.lang.String date

year

public static final int year

buildName

public static final java.lang.String buildName
Build name is only valid for shared services. It is normally null for CD.


version

public static final long version

copyrightImage

public static final java.lang.String copyrightImage

versionImage

public static final java.lang.String versionImage
Method Detail

makeString

public static final java.lang.String makeString(long version)

main

public static void main(java.lang.String[] args)


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.