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 Enterprise Edition";
027
028 static String version = "6.0.10";
029
030 static String versionDisplayName = "6.0 EE";
031
032 static String codeName = "Bunyan";
033
034 static String build = "6010";
035
036 static String date = "September 7, 2010";
037
038 static String releaseInfoPrefix = System.getProperty(
039 "liferay.release.info.prefix" , StringPool.BLANK);
040
041 static String releaseInfoSuffix = System.getProperty(
042 "liferay.release.info.suffix" , StringPool.BLANK);
043
044 static String releaseInfo =
045 releaseInfoPrefix + name + " " + versionDisplayName + " (" + codeName +
046 " / Build " + build + " / " + date + ")" + releaseInfoSuffix;
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_5_0_0_BUILD_NUMBER = 5000;
073
074 public static int RELEASE_5_0_1_BUILD_NUMBER = 5001;
075
076 public static int RELEASE_5_1_0_BUILD_NUMBER = 5100;
077
078 public static int RELEASE_5_1_1_BUILD_NUMBER = 5101;
079
080 public static int RELEASE_5_1_2_BUILD_NUMBER = 5102;
081
082 public static int RELEASE_5_2_0_BUILD_NUMBER = 5200;
083
084 public static int RELEASE_5_2_1_BUILD_NUMBER = 5201;
085
086 public static int RELEASE_5_2_2_BUILD_NUMBER = 5202;
087
088 public static int RELEASE_5_2_3_BUILD_NUMBER = 5203;
089
090 public static int RELEASE_6_0_0_BUILD_NUMBER = 6000;
091
092 public static int RELEASE_6_0_1_BUILD_NUMBER = 6001;
093
094 public static int RELEASE_6_0_2_BUILD_NUMBER = 6002;
095
096 public static int RELEASE_6_0_3_BUILD_NUMBER = 6003;
097
098 public static int RELEASE_6_0_4_BUILD_NUMBER = 6004;
099
100 public static int RELEASE_6_0_5_BUILD_NUMBER = 6005;
101
102 public static int RELEASE_6_0_6_BUILD_NUMBER = 6006;
103
104 public static final String getVersion() {
105 return version;
106 }
107
108 public static final String getCodeName() {
109 return codeName;
110 }
111
112 public static final int getBuildNumber() {
113 return Integer.parseInt(build);
114 }
115
116 public static final Date getBuildDate() {
117 DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
118
119 return GetterUtil.getDate(date, df);
120 }
121
122 public static final String getReleaseInfo() {
123 return releaseInfo;
124 }
125
126 public static final String getServerInfo() {
127 return serverInfo;
128 }
129
130 }