From 5f37e7ea5191acb2ebb95950aeb4efe9030761c9 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Wed, 20 Jun 2018 21:47:46 +0000 Subject: [PATCH] Fixed: Don't guess the system file separator (OFBIZ-10428) In case of Windows we need to escape "\" so adding "\\" } before fileSep is required git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833957 13f79535-47bb-0310-9956-ffa450edef68 --- settings.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index b1a775ae26..25b7a5d53e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -21,8 +21,13 @@ apply from: 'common.gradle' rootProject.name = 'ofbiz' def fileSep = System.getProperty("file.separator") +def isWindows = System.getProperty('os.name').toLowerCase().contains("windows") iterateOverActiveComponents { File component -> def subProject = (component.toString() - rootDir) - include subProject.replaceAll(fileSep, ':') + if (isWindows) + include subProject.replaceAll('\\' + fileSep, ':') + else + include subProject.replaceAll(fileSep, ':') + }