001
014
015 package com.liferay.portal.kernel.util;
016
017 import java.text.DateFormat;
018
019 import java.util.Date;
020
021
024 public class ReleaseInfo {
025
026 static String name = "Liferay Portal Community Edition";
027
028 static String vendor = "Liferay, Inc.";
029
030 static String version = "6.1.0";
031
032 static String versionDisplayName = "6.1.0 CE";
033
034 static String codeName = "Paton";
035
036 static String build = "6100";
037
038 static int buildNumber = Integer.parseInt(build);
039
040 static String date = "March 24, 2011";
041
042 static String releaseInfoPrefix = System.getProperty(
043 "liferay.release.info.prefix" , StringPool.BLANK);
044
045 static String releaseInfoSuffix = System.getProperty(
046 "liferay.release.info.suffix" , StringPool.BLANK);
047
048 static String releaseInfo =
049 releaseInfoPrefix + name + " " + versionDisplayName + " (" + codeName +
050 " / Build " + build + " / " + date + ")" + releaseInfoSuffix;
051
052 static String serverInfo = name + " / " + version;
053
054 public static int RELEASE_5_0_0_BUILD_NUMBER = 5000;
055
056 public static int RELEASE_5_0_1_BUILD_NUMBER = 5001;
057
058 public static int RELEASE_5_1_0_BUILD_NUMBER = 5100;
059
060 public static int RELEASE_5_1_1_BUILD_NUMBER = 5101;
061
062 public static int RELEASE_5_1_2_BUILD_NUMBER = 5102;
063
064 public static int RELEASE_5_2_0_BUILD_NUMBER = 5200;
065
066 public static int RELEASE_5_2_1_BUILD_NUMBER = 5201;
067
068 public static int RELEASE_5_2_2_BUILD_NUMBER = 5202;
069
070 public static int RELEASE_5_2_3_BUILD_NUMBER = 5203;
071
072 public static int RELEASE_6_0_0_BUILD_NUMBER = 6000;
073
074 public static int RELEASE_6_0_1_BUILD_NUMBER = 6001;
075
076 public static int RELEASE_6_0_2_BUILD_NUMBER = 6002;
077
078 public static int RELEASE_6_0_3_BUILD_NUMBER = 6003;
079
080 public static int RELEASE_6_0_4_BUILD_NUMBER = 6004;
081
082 public static int RELEASE_6_0_5_BUILD_NUMBER = 6005;
083
084 public static int RELEASE_6_0_6_BUILD_NUMBER = 6006;
085
086 public static int RELEASE_6_1_0_BUILD_NUMBER = 6100;
087
088 public static final String getName() {
089 return name;
090 }
091
092 public static String getVendor() {
093 return vendor;
094 }
095
096 public static final String getVersion() {
097 return version;
098 }
099
100 public static final String getCodeName() {
101 return codeName;
102 }
103
104 public static final int getBuildNumber() {
105 return buildNumber;
106 }
107
108 public static final Date getBuildDate() {
109 DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
110
111 return GetterUtil.getDate(date, df);
112 }
113
114 public static final String getReleaseInfo() {
115 return releaseInfo;
116 }
117
118 public static final String getServerInfo() {
119 return serverInfo;
120 }
121
122 }