Update buildSrc to build on Windows
Closes gh-9724
This commit is contained in:
committed by
Josh Cummings
parent
64b7af473d
commit
839269e9c5
@@ -1,3 +1,5 @@
|
|||||||
|
import java.util.regex.Matcher
|
||||||
|
|
||||||
rootProject.name = 'spring-gradle-build-conventions-sample'
|
rootProject.name = 'spring-gradle-build-conventions-sample'
|
||||||
|
|
||||||
|
|
||||||
@@ -10,7 +12,7 @@ String rootDirPath = rootDir.absolutePath + File.separator
|
|||||||
projects.each { File buildFile ->
|
projects.each { File buildFile ->
|
||||||
String buildFilePath = buildFile.parentFile.absolutePath
|
String buildFilePath = buildFile.parentFile.absolutePath
|
||||||
|
|
||||||
String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(File.separator, ':')
|
String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(Matcher.quoteReplacement(File.separator), ':')
|
||||||
|
|
||||||
include projectPath
|
include projectPath
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user