
com.liferay.portal.kernel.util.ReleaseInfo Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.liferay.portal.kernel.util;
import java.text.DateFormat;
import java.util.Date;
/**
* View Source
*
* @author Brian Wing Shun Chan
*
*/
public class ReleaseInfo {
static String name = "Liferay Portal Standard Edition";
static String version = "5.2.3";
static String codeName = "Augustine";
static String build = "5203";
static String date = "May 20, 2009";
static String releaseInfoPrefix = System.getProperty(
"liferay.release.info.prefix" , StringPool.BLANK);
static String releaseInfoSuffix = System.getProperty(
"liferay.release.info.suffix" , StringPool.BLANK);
static String releaseInfo =
releaseInfoPrefix + name + " " + version + " (" + codeName +
" / Build " + build + " / " + date + ")" + releaseInfoSuffix;
static String serverInfo = name + " / " + version;
public static int RELEASE_4_2_0_BUILD_NUMBER = 3500;
public static int RELEASE_4_2_1_BUILD_NUMBER = 3501;
public static int RELEASE_4_2_2_BUILD_NUMBER = 3502;
public static int RELEASE_4_3_0_BUILD_NUMBER = 4300;
public static int RELEASE_4_3_1_BUILD_NUMBER = 4301;
public static int RELEASE_4_3_2_BUILD_NUMBER = 4302;
public static int RELEASE_4_3_3_BUILD_NUMBER = 4303;
public static int RELEASE_4_3_4_BUILD_NUMBER = 4304;
public static int RELEASE_4_3_5_BUILD_NUMBER = 4305;
public static int RELEASE_4_3_6_BUILD_NUMBER = 4306;
public static int RELEASE_4_4_0_BUILD_NUMBER = 4400;
public static int RELEASE_5_0_0_BUILD_NUMBER = 5000;
public static int RELEASE_5_0_1_BUILD_NUMBER = 5001;
public static int RELEASE_5_1_0_BUILD_NUMBER = 5100;
public static int RELEASE_5_1_1_BUILD_NUMBER = 5101;
public static int RELEASE_5_1_2_BUILD_NUMBER = 5102;
public static int RELEASE_5_2_0_BUILD_NUMBER = 5200;
public static int RELEASE_5_2_1_BUILD_NUMBER = 5201;
public static int RELEASE_5_2_2_BUILD_NUMBER = 5202;
public static int RELEASE_5_2_3_BUILD_NUMBER = 5203;
public static final String getVersion() {
return version;
}
public static final String getCodeName() {
return codeName;
}
public static final int getBuildNumber() {
return Integer.parseInt(build);
}
public static final Date getBuildDate() {
DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
return GetterUtil.getDate(date, df);
}
public static final String getReleaseInfo() {
return releaseInfo;
}
public static final String getServerInfo() {
return serverInfo;
}
}