From 8ea3e18a824a85147bdedf84418abb040a5881d1 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Fri, 6 Dec 2024 10:52:24 +0100 Subject: [PATCH] LDEV-5183 - add support for "gradle" style --- core/src/main/java/lucee/runtime/mvn/MavenUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/lucee/runtime/mvn/MavenUtil.java b/core/src/main/java/lucee/runtime/mvn/MavenUtil.java index 8dcc8d24d2..084c950529 100644 --- a/core/src/main/java/lucee/runtime/mvn/MavenUtil.java +++ b/core/src/main/java/lucee/runtime/mvn/MavenUtil.java @@ -244,19 +244,19 @@ public String toString() { if (!StringUtil.isEmpty(g, true)) sb.append(g); if (!StringUtil.isEmpty(a, true)) { - if (!sb.isEmpty()) sb.append(':'); + if (sb.length() > 0) sb.append(':'); sb.append(a); } if (!StringUtil.isEmpty(v, true)) { - if (!sb.isEmpty()) sb.append(':'); + if (sb.length() > 0) sb.append(':'); sb.append(v); } if (!StringUtil.isEmpty(s, true)) { - if (!sb.isEmpty()) sb.append(':'); + if (sb.length() > 0) sb.append(':'); sb.append(s); } if (!StringUtil.isEmpty(o, true)) { - if (!sb.isEmpty()) sb.append(':'); + if (sb.length() > 0) sb.append(':'); sb.append(o); } return sb.toString();