001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.kernel.util;
022:
023: import java.text.DateFormat;
024:
025: import java.util.Date;
026:
027: /**
028: * <a href="ReleaseInfo.java.html"><b><i>View Source</i></b></a>
029: *
030: * @author Brian Wing Shun Chan
031: *
032: */
033: public class ReleaseInfo {
034:
035: static String name = "Liferay Enterprise Portal";
036:
037: static String version = "4.4.2";
038:
039: static String codeName = "Spurgeon";
040:
041: static String build = "4402";
042:
043: static String date = "February 22, 2008";
044:
045: static String releaseInfo = name + " " + version + " (" + codeName
046: + " / Build " + build + " / " + date + ")";
047:
048: static String serverInfo = name + " / " + version;
049:
050: public static int RELEASE_4_2_0_BUILD_NUMBER = 3500;
051:
052: public static int RELEASE_4_2_1_BUILD_NUMBER = 3501;
053:
054: public static int RELEASE_4_2_2_BUILD_NUMBER = 3502;
055:
056: public static int RELEASE_4_3_0_BUILD_NUMBER = 4300;
057:
058: public static int RELEASE_4_3_1_BUILD_NUMBER = 4301;
059:
060: public static int RELEASE_4_3_2_BUILD_NUMBER = 4302;
061:
062: public static int RELEASE_4_3_3_BUILD_NUMBER = 4303;
063:
064: public static int RELEASE_4_3_4_BUILD_NUMBER = 4304;
065:
066: public static int RELEASE_4_3_5_BUILD_NUMBER = 4305;
067:
068: public static int RELEASE_4_3_6_BUILD_NUMBER = 4306;
069:
070: public static int RELEASE_4_4_0_BUILD_NUMBER = 4400;
071:
072: public static int RELEASE_4_4_1_BUILD_NUMBER = 4401;
073:
074: public static int RELEASE_4_4_2_BUILD_NUMBER = 4402;
075:
076: public static final String getVersion() {
077: return version;
078: }
079:
080: public static final String getCodeName() {
081: return codeName;
082: }
083:
084: public static final int getBuildNumber() {
085: return Integer.parseInt(build);
086: }
087:
088: public static final Date getBuildDate() {
089: DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
090:
091: return GetterUtil.getDate(date, df);
092: }
093:
094: public static final String getReleaseInfo() {
095: return releaseInfo;
096: }
097:
098: public static final String getServerInfo() {
099: return serverInfo;
100: }
101:
102: }
|