Browse Source

Update buildSrc to build on Windows

Closes gh-9724
pull/9743/head
Marcus Hert da Coregio 5 years ago committed by Josh Cummings
parent
commit
839269e9c5
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
  1. 6
      buildSrc/src/test/resources/samples/showcase/settings.gradle

6
buildSrc/src/test/resources/samples/showcase/settings.gradle

@ -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
@ -20,4 +22,4 @@ projects.each { File buildFile ->
project.buildFileName = buildFile.name project.buildFileName = buildFile.name
} }
project.projectDir = buildFile.parentFile project.projectDir = buildFile.parentFile
} }

Loading…
Cancel
Save