001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions Copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2006-2009 Sun Microsystems, Inc. 015 * Portions Copyright 2011-2015 ForgeRock AS. 016 */ 017package org.opends.server.util; 018 019/** 020 * This file contains a number of constants that are used throughout the 021 * Directory Server source. It was dynamically generated as part of the 022 * Directory Server build process and should not be edited directly. 023 */ 024@org.opends.server.types.PublicAPI( 025 stability=org.opends.server.types.StabilityLevel.UNCOMMITTED, 026 mayInstantiate=false, 027 mayExtend=false, 028 mayInvoke=true) 029public final class DynamicConstants 030{ 031 /** 032 * The official full product name for the Directory Server. 033 */ 034 public static String PRODUCT_NAME = "Gluu-OpenDJ"; 035 036 /** 037 * The short product name for the Directory Server. 038 */ 039 public static String SHORT_NAME = "Gluu-OpenDJ"; 040 041 /** 042 * The major version number for the Directory Server. 043 */ 044 public static int MAJOR_VERSION = 3; 045 046 /** 047 * The minor version number for the Directory Server. 048 */ 049 public static int MINOR_VERSION = 0; 050 051 /** 052 * The point version number for the Directory Server. 053 */ 054 public static int POINT_VERSION = 0; 055 056 /** 057 * The official build number for the Directory Server. 058 */ 059 public static int BUILD_NUMBER = 0; 060 061 /** 062 * The version qualifier string for the Directory Server. 063 */ 064 public static String VERSION_QUALIFIER = "1"; 065 066 /** 067 * The set of bug IDs for fixes included in this build of the Directory 068 * Server. 069 */ 070 public static String FIX_IDS = ""; 071 072 /** 073 * The build ID for the generated build of the Directory Server. 074 */ 075 public static String BUILD_ID = "20180405061508"; 076 077 /** 078 * The username of the user that created this build. 079 */ 080 public static String BUILD_USER = "tomcat"; 081 082 /** 083 * The Java version used to generate this build. 084 */ 085 public static String BUILD_JAVA_VERSION = "1.7.0_79"; 086 087 /** 088 * The vendor for the Java version used to generate this build. 089 */ 090 public static String BUILD_JAVA_VENDOR = "Oracle Corporation"; 091 092 /** 093 * The JVM version used to generate this build. 094 */ 095 public static String BUILD_JVM_VERSION = "24.79-b02"; 096 097 /** 098 * The vendor for the JVM used to generate this build. 099 */ 100 public static String BUILD_JVM_VENDOR = "Oracle Corporation"; 101 102 /** 103 * The operating system on which this build was generated. 104 */ 105 public static String BUILD_OS = "Linux 3.10.0-229.20.1.el7.x86_64 amd64"; 106 107 /** 108 * Indicates whether this is a debug build of the Directory Server that may 109 * include additional debugging facilities not available in standard release 110 * versions. 111 */ 112 public static boolean DEBUG_BUILD = false; 113 114 /** The revision on which this build is based. */ 115 public static String REVISION = "346f4069c1398ee36548c12fd91bea9be4c2aa46"; 116 117 /** 118 * The Subversion url repository location on which this build is based. 119 */ 120 public static String URL_REPOSITORY = 121 "https://stash.forgerock.org/projects/OPENDJ/repos/opendj/browse/opendj-server-legacy"; 122 123 /** 124 * The documentation home. 125 */ 126 public static String DOC_REFERENCE_HOME = 127 "http://opendj.forgerock.org/"; 128 129 /** 130 * The documentation url. 131 */ 132 public static String DOC_REFERENCE_WIKI = 133 "http://opendj.forgerock.org/docs.html"; 134 135 /** 136 * The documentation url. 137 */ 138 public static String DOC_QUICK_REFERENCE_GUIDE = 139 "http://opendj.forgerock.org/opendj-server-legacy/doc/bootstrap/admin-guide/"; 140 141 /** 142 * The administration guide. 143 */ 144 public static String ADMINISTRATION_GUIDE_URL = 145 "http://opendj.forgerock.org/opendj-server-legacy/doc/bootstrap/admin-guide/"; 146 147 /** 148 * A string representation of the version number. 149 */ 150 public static String VERSION_NUMBER_STRING = String.format("%s.%s.%s", MAJOR_VERSION, MINOR_VERSION, POINT_VERSION); 151 152 /** 153 * A string representation of the version number. 154 */ 155 public static String OPENDJ_NUMBER_STRING = VERSION_NUMBER_STRING; 156 157 /** 158 * A string representation of the release version. 159 */ 160 public static String RELEASE_VERSION_STRING = 161 OPENDJ_NUMBER_STRING; 162 163 164 /** 165 * Test if a specific class is provided to overwrite the BUILD definitions 166 * By the release definitions provided by 167 * org.opends.server.util.ReleaseDefinition 168 */ 169 170 static { 171 172 try { 173 Class c = Class.forName("org.opends.server.util.ReleaseDefinition"); 174 Object obj = c.newInstance(); 175 176 try { 177 PRODUCT_NAME = (String)c.getField("PRODUCT_NAME").get(obj); 178 } 179 catch (Exception ex) {} 180 try { 181 SHORT_NAME = (String)c.getField("SHORT_NAME").get(obj); 182 } 183 catch (Exception ex) {} 184 try { 185 MAJOR_VERSION = (Integer)c.getField("MAJOR_VERSION").get(obj); 186 } 187 catch (Exception ex) {} 188 try { 189 MINOR_VERSION = (Integer)c.getField("MINOR_VERSION").get(obj); 190 } 191 catch (Exception ex) {} 192 try { 193 POINT_VERSION = (Integer)c.getField("POINT_VERSION").get(obj); 194 } 195 catch (Exception ex) {} 196 try { 197 BUILD_NUMBER = (Integer)c.getField("BUILD_NUMBER").get(obj); 198 } 199 catch (Exception ex) {} 200 try { 201 VERSION_QUALIFIER = (String)c.getField("VERSION_QUALIFIER").get(obj); 202 } 203 catch (Exception ex) {} 204 try { 205 FIX_IDS = (String)c.getField("FIX_IDS").get(obj); 206 } 207 catch (Exception ex) {} 208 try{ 209 BUILD_ID = (String)c.getField("BUILD_ID").get(obj); 210 } 211 catch (Exception ex) {} 212 try{ 213 BUILD_USER = (String)c.getField("BUILD_USER").get(obj); 214 } 215 catch (Exception ex) {} 216 try{ 217 REVISION = (String)c.getField("REVISION_NUMBER").get(obj); 218 } 219 catch (Exception ex) {} 220 try{ 221 BUILD_JAVA_VERSION = (String)c.getField("BUILD_JAVA_VERSION").get(obj); 222 } 223 catch (Exception ex) {} 224 try{ 225 BUILD_JAVA_VENDOR = (String)c.getField("BUILD_JAVA_VENDOR").get(obj); 226 } 227 catch (Exception ex) {} 228 try{ 229 BUILD_JVM_VERSION = (String)c.getField("BUILD_JVM_VERSION").get(obj); 230 } 231 catch (Exception ex) {} 232 try{ 233 BUILD_JVM_VENDOR = (String)c.getField("BUILD_JVM_VENDOR").get(obj); 234 } 235 catch (Exception ex) {} 236 try{ 237 BUILD_OS = (String)c.getField("BUILD_OS").get(obj); 238 } 239 catch (Exception ex) {} 240 try{ 241 DEBUG_BUILD = (Boolean)c.getField("DEBUG_BUILD").get(obj); 242 } 243 catch (Exception ex) {} 244 try{ 245 URL_REPOSITORY = (String)c.getField("URL_REPOSITORY").get(obj); 246 } 247 catch (Exception ex) {} 248 try{ 249 DOC_REFERENCE_WIKI = 250 (String)c.getField("DOC_REFERENCE_WIKI").get(obj); 251 } 252 catch(Exception ex) {} 253 try{ 254 DOC_QUICK_REFERENCE_GUIDE = 255 (String)c.getField("DOC_QUICK_REFERENCE_GUIDE").get(obj); 256 } 257 catch(Exception ex) {} 258 try{ 259 ADMINISTRATION_GUIDE_URL = 260 (String)c.getField("ADMINISTRATION_GUIDE_URL").get(obj); 261 } 262 catch(Exception ex) {} 263 try{ 264 VERSION_NUMBER_STRING = 265 (String)c.getField("VERSION_NUMBER_STRING").get(obj); 266 } 267 catch (Exception ex) {} 268 try{ 269 RELEASE_VERSION_STRING = VERSION_NUMBER_STRING 270 + " (OpenDJ version = " 271 + OPENDJ_NUMBER_STRING + ")" ; 272 } 273 catch (Exception ex) {} 274 } catch (Exception ex) { 275 } 276 } 277 /** 278 * A compact version string for this product, suitable for use in path 279 * names and similar cases. 280 */ 281 public static String COMPACT_VERSION_STRING = 282 SHORT_NAME + "-" + VERSION_NUMBER_STRING; 283 284 /** 285 * A full version string for this product. 286 */ 287 public static String FULL_VERSION_STRING = PRODUCT_NAME + " " + RELEASE_VERSION_STRING 288 + (VERSION_QUALIFIER != null && !VERSION_QUALIFIER.isEmpty() ? "-" + VERSION_QUALIFIER : "") 289 + (FIX_IDS != null && !FIX_IDS.isEmpty() ? "+" + FIX_IDS : ""); 290 291 /** 292 * A printable version string for this product. 293 */ 294 public static final String PRINTABLE_VERSION_STRING = 295 FULL_VERSION_STRING + System.getProperty("line.separator") + 296 "Build " + BUILD_ID + System.getProperty("line.separator"); 297 298}