Skip to content

Commit 9ccaa08

Browse files
graemerochergraemerocher
authored andcommitted
make sure fork settings are a map prior to assignment
1 parent 3210c8c commit 9ccaa08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-bootstrap/src/main/groovy/grails/util/BuildSettings.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ class BuildSettings extends AbstractBuildSettings {
15081508
String syspropDebugArgs = System.getProperty("grails.project.fork.run.debugArgs")
15091509
boolean debugFork = Boolean.getBoolean(ForkedGrailsProcess.DEBUG_FORK)
15101510
if (syspropDebugArgs || debugFork) {
1511-
if (result.run instanceof Boolean) {
1511+
if (!(result.run instanceof Map)) {
15121512
result.run = [:]
15131513
}
15141514
result.run.debug = true
@@ -1518,7 +1518,7 @@ class BuildSettings extends AbstractBuildSettings {
15181518
}
15191519
syspropDebugArgs = System.getProperty("grails.project.fork.test.debugArgs")
15201520
if (syspropDebugArgs || debugFork) {
1521-
if (result.test instanceof Boolean) {
1521+
if (!(result.test instanceof Map)) {
15221522
result.test = [:]
15231523
}
15241524
result.test.debug = true

0 commit comments

Comments
 (0)