DynamicConstants.java.stubs revision 6330
110N/A/*
110N/A * CDDL HEADER START
110N/A *
110N/A * The contents of this file are subject to the terms of the
110N/A * Common Development and Distribution License, Version 1.0 only
110N/A * (the "License"). You may not use this file except in compliance
110N/A * with the License.
110N/A *
110N/A * You can obtain a copy of the license at
110N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
110N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
110N/A * See the License for the specific language governing permissions
110N/A * and limitations under the License.
110N/A *
110N/A * When distributing Covered Code, include this CDDL HEADER in each
110N/A * file and include the License file at
110N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
110N/A * add the following below this CDDL HEADER, with the fields enclosed
873N/A * by brackets "[]" replaced with your own identifying information:
110N/A * Portions Copyright [yyyy] [name of copyright owner]
110N/A *
110N/A * CDDL HEADER END
110N/A *
110N/A *
4600N/A * Copyright 2006-2009 Sun Microsystems, Inc.
5612N/A * Portions Copyright 2011 ForgeRock AS
110N/A */
110N/Apackage org.opends.server.util;
110N/A
110N/A/**
110N/A * This file contains a number of constants that are used throughout the
110N/A * Directory Server source. It was dynamically generated as part of the
110N/A * Directory Server build process and should not be edited directly.
110N/A */
2095N/A@org.opends.server.types.PublicAPI(
2095N/A stability=org.opends.server.types.StabilityLevel.UNCOMMITTED,
2095N/A mayInstantiate=false,
2095N/A mayExtend=false,
2095N/A mayInvoke=true)
2095N/Apublic final class DynamicConstants
110N/A{
110N/A /**
110N/A * The official full product name for the Directory Server.
110N/A */
4463N/A public static String PRODUCT_NAME = "${PRODUCT_NAME}";
110N/A
110N/A /**
110N/A * The short product name for the Directory Server.
110N/A */
4463N/A public static String SHORT_NAME = "${SHORT_NAME}";
110N/A
110N/A /**
110N/A * The major version number for the Directory Server.
110N/A */
4463N/A public static int MAJOR_VERSION = ${MAJOR_VERSION};
110N/A
110N/A /**
110N/A * The minor version number for the Directory Server.
110N/A */
4463N/A public static int MINOR_VERSION = ${MINOR_VERSION};
110N/A
110N/A /**
110N/A * The point version number for the Directory Server.
110N/A */
4463N/A public static int POINT_VERSION = ${POINT_VERSION};
110N/A
110N/A /**
1344N/A * The official build number for the Directory Server.
1344N/A */
4463N/A public static int BUILD_NUMBER = ${BUILD_NUMBER};
1344N/A
1344N/A /**
110N/A * The version qualifier string for the Directory Server.
110N/A */
4463N/A public static String VERSION_QUALIFIER = "${VERSION_QUALIFIER}";
110N/A
110N/A /**
110N/A * The set of bug IDs for fixes included in this build of the Directory
110N/A * Server.
110N/A */
4463N/A public static String FIX_IDS = "${FIX_IDS}";
110N/A
110N/A /**
110N/A * The build ID for the generated build of the Directory Server.
110N/A */
4463N/A public static String BUILD_ID = "${timestamp}";
110N/A
110N/A /**
110N/A * The username of the user that created this build.
110N/A */
4463N/A public static String BUILD_USER = "${user.name}";
110N/A
110N/A /**
110N/A * The Java version used to generate this build.
110N/A */
4463N/A public static String BUILD_JAVA_VERSION = "${java.version}";
110N/A
110N/A /**
110N/A * The vendor for the Java version used to generate this build.
110N/A */
4463N/A public static String BUILD_JAVA_VENDOR = "${java.vendor}";
110N/A
110N/A /**
110N/A * The JVM version used to generate this build.
110N/A */
4463N/A public static String BUILD_JVM_VERSION = "${java.vm.version}";
110N/A
110N/A /**
110N/A * The vendor for the JVM used to generate this build.
110N/A */
4463N/A public static String BUILD_JVM_VENDOR = "${JVM_VENDOR}";
110N/A
110N/A /**
110N/A * The operating system on which this build was generated.
110N/A */
4463N/A public static String BUILD_OS = "${os.name} ${os.version} ${os.arch}";
110N/A
110N/A /**
110N/A * Indicates whether this is a debug build of the Directory Server that may
110N/A * include additional debugging facilities not available in standard release
110N/A * versions.
110N/A */
4463N/A public static boolean DEBUG_BUILD = ${DEBUG_BUILD};
529N/A
529N/A /**
729N/A * The Subversion revision number on which this build is based.
729N/A */
6330N/A public static long REVISION_NUMBER = ${REVISION_NUMBER}L;
729N/A
729N/A /**
4274N/A * The Subversion url repository location on which this build is based.
4274N/A */
4463N/A public static String URL_REPOSITORY =
4721N/A "${URL_REPOSITORY}";
4721N/A
4721N/A /**
4721N/A * The documentation home.
4721N/A */
4721N/A public static String DOC_REFERENCE_HOME =
4721N/A "${DOC_REFERENCE_HOME}";
4721N/A
4721N/A /**
4721N/A * The documentation url.
4721N/A */
4721N/A public static String DOC_REFERENCE_WIKI =
4721N/A "${DOC_REFERENCE_WIKI}";
4721N/A
4721N/A /**
4721N/A * The documentation url.
4721N/A */
4721N/A public static String DOC_QUICK_REFERENCE_GUIDE =
4721N/A "${DOC_QUICK_REFERENCE_GUIDE}";
4721N/A
4721N/A /**
4721N/A * The administration guide.
4721N/A */
4721N/A public static String ADMINISTRATION_GUIDE_URL =
4721N/A "${ADMINISTRATION_GUIDE_URL}";
4274N/A
4274N/A /**
1344N/A * A string representation of the version number.
1344N/A */
6330N/A public static String VERSION_NUMBER_STRING = "${VERSION-BUILD}";
1344N/A
4721N/A /**
4721N/A * A string representation of the version number.
4721N/A */
6330N/A public static String OPENDJ_NUMBER_STRING = VERSION_NUMBER_STRING;
4721N/A
4721N/A /**
4721N/A * A string representation of the release version.
4721N/A */
6330N/A public static String RELEASE_VERSION_STRING = OPENDJ_NUMBER_STRING;
4463N/A
4463N/A
1344N/A /**
4463N/A * Test if a specific class is provided to overwrite the BUILD definitions
4463N/A * By the release definitions provided by
4463N/A * org.opends.server.util.ReleaseDefinition
4463N/A */
4463N/A
4463N/A static {
4463N/A
4601N/A try {
4600N/A Class c;
4600N/A if (org.opends.server.util.SetupUtils.isWebStart())
4600N/A {
4601N/A Class<?> cS = Class.forName("org.opends.server.util.SetupUtils");
4600N/A java.net.URL[] urls = new java.net.URL[]
4600N/A {
4600N/A cS.getProtectionDomain().getCodeSource().getLocation()
4600N/A };
4600N/A ClassLoader webstartClassLoader = new java.net.URLClassLoader(urls);
4600N/A c = webstartClassLoader.loadClass(
4601N/A "org.opends.server.util.ReleaseDefinition");
4601N/A }
4601N/A else
4601N/A {
4600N/A c = Class.forName("org.opends.server.util.ReleaseDefinition");
4600N/A }
4463N/A Object obj = c.newInstance();
4463N/A
4463N/A try {
4463N/A PRODUCT_NAME = (String)c.getField("PRODUCT_NAME").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try {
4463N/A SHORT_NAME = (String)c.getField("SHORT_NAME").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try {
4463N/A MAJOR_VERSION = (Integer)c.getField("MAJOR_VERSION").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try {
4463N/A MINOR_VERSION = (Integer)c.getField("MINOR_VERSION").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try {
4463N/A POINT_VERSION = (Integer)c.getField("POINT_VERSION").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try {
4463N/A BUILD_NUMBER = (Integer)c.getField("BUILD_NUMBER").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try {
4463N/A VERSION_QUALIFIER = (String)c.getField("VERSION_QUALIFIER").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try {
4463N/A FIX_IDS = (String)c.getField("FIX_IDS").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A BUILD_ID = (String)c.getField("BUILD_ID").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A BUILD_USER = (String)c.getField("BUILD_USER").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A REVISION_NUMBER = (Long)c.getField("REVISION_NUMBER").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A BUILD_JAVA_VERSION = (String)c.getField("BUILD_JAVA_VERSION").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A BUILD_JAVA_VENDOR = (String)c.getField("BUILD_JAVA_VENDOR").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A BUILD_JVM_VERSION = (String)c.getField("BUILD_JVM_VERSION").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A BUILD_JVM_VENDOR = (String)c.getField("BUILD_JVM_VENDOR").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A BUILD_OS = (String)c.getField("BUILD_OS").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A DEBUG_BUILD = (Boolean)c.getField("DEBUG_BUILD").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4463N/A URL_REPOSITORY = (String)c.getField("URL_REPOSITORY").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4463N/A try{
4721N/A DOC_REFERENCE_WIKI =
4721N/A (String)c.getField("DOC_REFERENCE_WIKI").get(obj);
4721N/A }
4721N/A catch(Exception ex) {}
4721N/A try{
4721N/A DOC_QUICK_REFERENCE_GUIDE =
4721N/A (String)c.getField("DOC_QUICK_REFERENCE_GUIDE").get(obj);
4721N/A }
4721N/A catch(Exception ex) {}
4721N/A try{
4721N/A ADMINISTRATION_GUIDE_URL =
4721N/A (String)c.getField("ADMINISTRATION_GUIDE_URL").get(obj);
4721N/A }
4721N/A catch(Exception ex) {}
4721N/A try{
4463N/A VERSION_NUMBER_STRING =
4463N/A (String)c.getField("VERSION_NUMBER_STRING").get(obj);
4463N/A }
4463N/A catch (Exception ex) {}
4721N/A try{
4721N/A RELEASE_VERSION_STRING = VERSION_NUMBER_STRING
5612N/A + " (OpenDJ version = "
5636N/A + OPENDJ_NUMBER_STRING + ")" ;
4721N/A }
4721N/A catch (Exception ex) {}
4463N/A } catch (Exception ex) {
4463N/A }
4463N/A }
4463N/A /**
529N/A * A compact version string for this product, suitable for use in path
529N/A * names and similar cases.
529N/A */
4463N/A public static String COMPACT_VERSION_STRING =
1344N/A SHORT_NAME + "-" + VERSION_NUMBER_STRING;
529N/A
529N/A /**
529N/A * A full version string for this product.
529N/A */
4463N/A public static String FULL_VERSION_STRING =
4721N/A PRODUCT_NAME + " " + RELEASE_VERSION_STRING +
1344N/A (((FIX_IDS != null) && (FIX_IDS.length() > 0))
1344N/A ? "+" + FIX_IDS
1344N/A : "");
1349N/A
1349N/A /**
1349N/A * A printable version string for this product.
1349N/A */
1349N/A public static final String PRINTABLE_VERSION_STRING =
1350N/A FULL_VERSION_STRING + System.getProperty("line.separator") +
1350N/A "Build " + BUILD_ID + System.getProperty("line.separator");
4463N/A
110N/A}