Skip to content

Commit 4aa4705

Browse files
committed
remove preceding : from gradle subproject paths. Fixes #9569
1 parent 3999d33 commit 4aa4705

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

grails-core/src/main/groovy/grails/boot/GrailsApp.groovy

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,14 @@ class GrailsApp extends SpringApplication {
145145
def projectPaths = binding.getVariables().get('projectPaths')
146146
if(projectPaths) {
147147
for(path in projectPaths) {
148-
watchBaseDirectories << new File(parentDir, path.toString())
148+
if(path) {
149+
150+
def pathStr = path.toString()
151+
if(pathStr.startsWith(':')) {
152+
pathStr = pathStr.substring(1)
153+
}
154+
watchBaseDirectories << new File(parentDir, pathStr)
155+
}
149156
}
150157
}
151158
}

0 commit comments

Comments
 (0)