Skip to content

Commit

Permalink
Fixes task compileGroovy execute failed on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jun 7, 2024
1 parent 4ed646d commit e7b90fb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@ class GrailsGradlePlugin extends GroovyPlugin {
def projectType = getGrailsProjectType()
def isPlugin = projectType == GrailsProjectType.PLUGIN
def grailsAppDir = new File(project.projectDir, grailsAppDir).absolutePath
if (System.getProperty('os.name').startsWith('Windows')) {
projectDir = projectDir.replace('\\', '\\\\')
grailsAppDir = grailsAppDir.replace('\\', '\\\\')
}
configScriptTask.inputs.property('name', projectName)
configScriptTask.inputs.property('version', projectVersion)
configScriptTask.doLast {
Expand Down

0 comments on commit e7b90fb

Please sign in to comment.