ariba.util.core
Class Version

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

public final class Version
extends 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 String buildName
          Build name is only valid for shared services.
static String BuildStringTable
           
static String copyrightImage
           
static String date
           
static String hfpack
           
static String langpack
           
static String LocalStringTable
           
static byte major
           
static byte minor
           
static byte patch
           
static String product
           
static short svcpack
           
static long version
           
static String versionImage
           
 
Method Summary
static void main(String[] args)
           
static 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 String BuildStringTable
See Also:
Constant Field Values

LocalStringTable

public static final String LocalStringTable
See Also:
Constant Field Values

product

public static final 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 String hfpack

langpack

public static final String langpack

date

public static final String date

buildName

public static final 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 String copyrightImage

versionImage

public static final String versionImage
Method Detail

makeString

public static final String makeString(long version)

main

public static void main(String[] args)


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