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
This commit is contained in:
Jacques Le Roux
2018-06-20 21:47:46 +00:00
parent daa5194031
commit 5f37e7ea51
+6 -1
View File
@@ -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, ':')
}