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:
+6
-1
@@ -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, ':')
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user