eventWarStart = { warName ->
    def stagingFixtures = "${grailsSettings.projectWorkDir}/staging/fixtures"
    ant.mkdir(dir: stagingFixtures)
    ant.copy(todir: stagingFixtures) {
        fileset(dir: "${grailsSettings.baseDir}/fixtures")
    }
}
eventWarStart = { warName ->
    
    def stagingFixtures
    if (grailsSettings.metaClass.hasProperty(grailsSettings, 'projectWarExplodedDir')) {
        stagingFixtures = grailsSettings.projectWarExplodedDir.path
    } else {
        stagingFixtures = grailsSettings.projectWorkDir.path + '/staging'
    }
    stagingFixtures += '/fixtures'
    
    ant.mkdir(dir: stagingFixtures)
    ant.copy(todir: stagingFixtures) {
        fileset(dir: "${grailsSettings.baseDir}/fixtures")
    }
}
Support including fixtures in WAR deployment on Grails 1.1.1+
Support including fixtures in WAR deployment on Grails 1.1.1+

Grails 1.1.1 introduced the build setting “projectWarExplodedDir” and changed the actual name of this directory from “staging” to “stage”. Or implementation gracefully handles both versions.

