You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2018/06/20 21:47:46 UTC
svn commit: r1833957 - /ofbiz/ofbiz-framework/trunk/settings.gradle
Author: jleroux
Date: Wed Jun 20 21:47:46 2018
New Revision: 1833957
URL: http://svn.apache.org/viewvc?rev=1833957&view=rev
Log:
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, ':')
+
}