svn commit: r1833957 - /ofbiz/ofbiz-framework/trunk/settings.gradle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1833957 - /ofbiz/ofbiz-framework/trunk/settings.gradle

jleroux@apache.org
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, ':')
+    
 }