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