Permalink
Browse files

LPS-26445 Parent build number

  • Loading branch information...
1 parent 631b27f commit dd113f6375d099582cce6f59443921fff8da3bb2 @zsoltbalogh zsoltbalogh committed with sergiogonzalez Apr 3, 2012
Showing with 8 additions and 0 deletions.
  1. +2 −0 build-common-java.xml
  2. +6 −0 portal-service/src/com/liferay/portal/kernel/util/ReleaseInfo.java
View
@@ -174,6 +174,7 @@
project.setProperty("release.info.code.name", ReleaseInfo.getCodeName());
project.setProperty("release.info.build.date", String.valueOf(ReleaseInfo.getBuildDate()));
project.setProperty("release.info.build.number", String.valueOf(ReleaseInfo.getBuildNumber()));
+ project.setProperty("release.info.parent.build.number", String.valueOf(ReleaseInfo.getParentBuildNumber()));
project.setProperty("release.info.release.info", ReleaseInfo.getReleaseInfo());
project.setProperty("release.info.server.info", ReleaseInfo.getServerInfo());
project.setProperty("release.info.vendor", ReleaseInfo.getVendor());
@@ -210,6 +211,7 @@
<attribute name="Liferay-Portal-Build-Number" value="${release.info.build.number}" />
<attribute name="Liferay-Portal-Build-Revision" value="${build.revision}" />
<attribute name="Liferay-Portal-Build-Time" value="${build.time}" />
+ <attribute name="Liferay-Portal-Parent-Build-Number" value="${release.info.parent.build.number}" />
<attribute name="Liferay-Portal-Release-Info" value="${release.info.release.info}" />
<attribute name="Liferay-Portal-Server-Info" value="${release.info.server.info}" />
<attribute name="Liferay-Portal-Version" value="${release.info.version}" />
@@ -79,6 +79,10 @@ 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 =
@@ -116,6 +120,8 @@ public static final String getVersion() {
private static final String _NAME = "Liferay Portal Community Edition";
+ private static final int _PARENT_BUILD_NUMBER = _BUILD_NUMBER;
+
private static final String _RELEASE_INFO_PREFIX = System.getProperty(
"liferay.release.info.prefix" , StringPool.BLANK);

0 comments on commit dd113f6

Please sign in to comment.