/
ReleaseInfo.java
302 lines (225 loc) · 7.66 KB
/
ReleaseInfo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.util;
import com.liferay.petra.string.StringPool;
import java.text.DateFormat;
import java.util.Date;
/**
* @author Brian Wing Shun Chan
*/
public class ReleaseInfo {
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_0_0_BUILD_NUMBER = 5000;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_0_1_BUILD_NUMBER = 5001;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_1_0_BUILD_NUMBER = 5100;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_1_1_BUILD_NUMBER = 5101;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_1_2_BUILD_NUMBER = 5102;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_1_5_BUILD_NUMBER = 5105;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_1_6_BUILD_NUMBER = 5106;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_1_7_BUILD_NUMBER = 5107;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_0_BUILD_NUMBER = 5200;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_1_BUILD_NUMBER = 5201;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_2_BUILD_NUMBER = 5202;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_3_BUILD_NUMBER = 5203;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_5_BUILD_NUMBER = 5205;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_7_BUILD_NUMBER = 5207;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_8_BUILD_NUMBER = 5208;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_5_2_9_BUILD_NUMBER = 5209;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_0_BUILD_NUMBER = 6000;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_1_BUILD_NUMBER = 6001;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_2_BUILD_NUMBER = 6002;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_3_BUILD_NUMBER = 6003;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_4_BUILD_NUMBER = 6004;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_5_BUILD_NUMBER = 6005;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_6_BUILD_NUMBER = 6006;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_10_BUILD_NUMBER = 6010;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_11_BUILD_NUMBER = 6011;
/**
* @deprecated As of Judson (7.1.x), with no direct replacement
*/
@Deprecated
public static final int RELEASE_6_0_12_BUILD_NUMBER = 6012;
public static final int RELEASE_6_1_0_BUILD_NUMBER = 6100;
public static final int RELEASE_6_1_1_BUILD_NUMBER = 6101;
public static final int RELEASE_6_1_10_BUILD_NUMBER = 6110;
public static final int RELEASE_6_1_20_BUILD_NUMBER = 6120;
public static final int RELEASE_6_2_0_BUILD_NUMBER = 6200;
public static final int RELEASE_6_2_1_BUILD_NUMBER = 6201;
public static final int RELEASE_6_2_2_BUILD_NUMBER = 6202;
public static final int RELEASE_6_2_3_BUILD_NUMBER = 6203;
public static final int RELEASE_6_2_10_BUILD_NUMBER = 6210;
public static final int RELEASE_7_0_0_BUILD_NUMBER = 7000;
public static final int RELEASE_7_0_1_BUILD_NUMBER = 7001;
public static final int RELEASE_7_0_2_BUILD_NUMBER = 7002;
public static final int RELEASE_7_0_3_BUILD_NUMBER = 7003;
public static final int RELEASE_7_0_4_BUILD_NUMBER = 7004;
public static final int RELEASE_7_0_5_BUILD_NUMBER = 7005;
public static final int RELEASE_7_0_6_BUILD_NUMBER = 7006;
public static final int RELEASE_7_0_10_BUILD_NUMBER = 7010;
public static final int RELEASE_7_1_0_BUILD_NUMBER = 7100;
public static final int RELEASE_7_1_1_BUILD_NUMBER = 7101;
public static final int RELEASE_7_1_2_BUILD_NUMBER = 7102;
public static final int RELEASE_7_1_10_BUILD_NUMBER = 7110;
public static final Date getBuildDate() {
DateFormat df = DateFormat.getDateInstance(DateFormat.LONG);
return GetterUtil.getDate(_DATE, df);
}
public static final int getBuildNumber() {
return _BUILD_NUMBER;
}
public static final String getCodeName() {
return _CODE_NAME;
}
public static final String getName() {
return _NAME;
}
public static final int getParentBuildNumber() {
return _PARENT_BUILD_NUMBER;
}
public static final String getReleaseInfo() {
if (_releaseInfo == null) {
_releaseInfo = StringBundler.concat(
_RELEASE_INFO_PREFIX, _NAME, " ", _VERSION_DISPLAY_NAME, " (",
_CODE_NAME, " / Build ", _BUILD, " / ", _DATE, ")",
_RELEASE_INFO_SUFFIX);
}
return _releaseInfo;
}
public static final String getServerInfo() {
if (_serverInfo == null) {
_serverInfo = _NAME + " / " + _VERSION;
}
return _serverInfo;
}
public static String getVendor() {
return _VENDOR;
}
public static final String getVersion() {
return _VERSION;
}
private static final String _BUILD = "7102";
private static final int _BUILD_NUMBER = GetterUtil.getInteger(_BUILD);
private static final String _CODE_NAME = "Judson";
private static final String _DATE = "January 7, 2019";
private static final String _NAME = "Liferay Community Edition Portal";
private static final int _PARENT_BUILD_NUMBER = _BUILD_NUMBER;
private static final String _RELEASE_INFO_PREFIX = System.getProperty(
"liferay.release.info.prefix", StringPool.BLANK);
private static final String _RELEASE_INFO_SUFFIX = System.getProperty(
"liferay.release.info.suffix", StringPool.BLANK);
private static final String _VENDOR = "Liferay, Inc.";
private static final String _VERSION = "7.1.2";
private static final String _VERSION_DISPLAY_NAME = "7.1.2 CE GA3";
private static String _releaseInfo;
private static String _serverInfo;
}