Skip to content

Commit d0f3abf

Browse files
committed
use default parameter
1 parent 12fd7e6 commit d0f3abf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-gradle/model/src/main/groovy/grails/util/BuildSettings.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class BuildSettings {
253253
}
254254
BASE_DIR = System.getProperty(APP_BASE_DIR) ? new File(System.getProperty(APP_BASE_DIR)) : (IOUtils.findApplicationDirectoryFile() ?: new File('.'))
255255
GRAILS_APP_DIR_PRESENT = new File(BASE_DIR, 'grails-app').exists() || new File(BASE_DIR, 'Application.groovy').exists()
256-
TARGET_DIR = new File(BASE_DIR, System.getProperty('project.target.dir') ?: 'build')
256+
TARGET_DIR = new File(BASE_DIR, System.getProperty('project.target.dir', 'build'))
257257
RESOURCES_DIR = !GRAILS_APP_DIR_PRESENT ? null : (System.getProperty(PROJECT_RESOURCES_DIR) ? new File(System.getProperty(PROJECT_RESOURCES_DIR)) : new File(TARGET_DIR, 'resources/main'))
258258
}
259259
}

0 commit comments

Comments
 (0)