From 97fef3a6296504b4f743bae372ff4fcb7f0a0110 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Fri, 6 May 2016 15:15:24 +0200 Subject: [PATCH] =?UTF-8?q?setPluginVersionAndSince=20=E2=80=94=20set=20un?= =?UTF-8?q?til-build=20to=20version.*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/scripts/layouts.gant | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant index 7b87103e70db..2d2c56280509 100644 --- a/build/scripts/layouts.gant +++ b/build/scripts/layouts.gant @@ -684,8 +684,9 @@ def setPluginVersionAndSince(String moduleName, String version) { def text = file.text if (!text.contains("")) { def dotIndex = version.indexOf('.') - def untilBuild = dotIndex > 0 ? (Integer.parseInt(version.substring(0, dotIndex)) + 1).toString() + ".0" : version - file.text = text.replace("", "\n ${version}\n \n") + def untilBuild = dotIndex > 0 ? Integer.parseInt(version.substring(0, dotIndex)) + ".*" : version + def anchor = text.contains("") ? "" : "" + file.text = text.replace(anchor, "${anchor}\n ${version}\n \n") } } }