Fix settings.gradle on Windows

Fixes: gh-5724
This commit is contained in:
Rob Winch
2018-08-22 10:21:41 -05:00
committed by Josh Cummings
parent 31650d7eaa
commit 54cc2e4509

View File

@@ -16,7 +16,7 @@ buildFiles.each { File buildFile ->
boolean isDefaultName = 'build.gradle'.equals(buildFile.name)
if(isDefaultName) {
String buildFilePath = buildFile.parentFile.absolutePath
String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(File.separator, ':')
String projectPath = buildFilePath.replace(rootDirPath, '').replace(File.separator, ':')
include projectPath
} else {
String projectName = buildFile.name.replace('.gradle', '');