From df03462c3786a4133bb3a2e89e93e2e7deb4d79a Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Wed, 25 Jun 2014 12:33:44 +0000
Subject: [PATCH] SSDM-513: bug fixed: Took the wrong revision number for build
 info

SVN: 31788
---
 gradle/javaproject.gradle | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gradle/javaproject.gradle b/gradle/javaproject.gradle
index 0a1cae01565..fb31b01cfdf 100644
--- a/gradle/javaproject.gradle
+++ b/gradle/javaproject.gradle
@@ -101,11 +101,11 @@ def findMaximum(lines, key) {
 
 def calculateBuildInfo() {
     def output = executeSVN(['info', '-R', '../' + project.name])
-    project.ext.revisionNumber = findMaximum(output, 'Revision:')
-    def maxLastChangedRev = findMaximum(output, 'Last Changed Rev:')
-    if (project.ext.revisionNumber < maxLastChangedRev) {
-        throw new GradleException("Maximum revision (${project.ext.revisionNumber}) is less than the maximum "
-                  + "last changed revision ($maxLastChangedRev).")
+    def maxRevisionNumber = findMaximum(output, 'Revision:')
+    project.ext.revisionNumber = findMaximum(output, 'Last Changed Rev:')
+    if (maxRevisionNumber < project.ext.revisionNumber) {
+        throw new GradleException("Maximum revision ($maxRevisionNumber) is less than the maximum "
+                  + "last changed revision ($project.ext.revisionNumber).")
     }
     project.ext.versionNumber = 'SNAPSHOT'
     def url = output.findAll({ it.startsWith('URL:')})[0].split('URL:')[1].trim()
-- 
GitLab