Author: jleroux
Date: Wed Jun 20 21:47:46 2018
New Revision: 1833957
URL:
http://svn.apache.org/viewvc?rev=1833957&view=revLog:
Fixed: Don't guess the system file separator
(OFBIZ-10428)
In case of Windows we need to escape "\" so adding "\\" } before fileSep
is required
Modified:
ofbiz/ofbiz-framework/trunk/settings.gradle
Modified: ofbiz/ofbiz-framework/trunk/settings.gradle
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/settings.gradle?rev=1833957&r1=1833956&r2=1833957&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/settings.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/settings.gradle Wed Jun 20 21:47:46 2018
@@ -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, ':')
+
}