Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.5
-
Component/s: ContinuousBuild
-
Labels:None
-
Environment:all versions
Description
Hi,
We would like to be able to hook into the War.groovy process for such things as excluding/including files in the staging directory that gets put into the WAR based on the arguments passed to "grails war"
For example, we would like to provide a custom fileset to the copy of $baseDir/web-app -> staging. I customized the War.groovy to grab a closure from Config.groovy. Basically we are requesting that hooks like this be added to War.groovy
Ant.copy(todir:stagingDir, overwrite:true) { if(config.grails.war.copyToWebApp.fileset instanceof Closure) { def dirset = config.grails.war.copyToWebApp.fileset dirset.delegate = delegate dirset.resolveStrategy = Closure.DELEGATE_FIRST dirset(args) // arguments } else { fileset(dir:"${basedir}/web-app", includes:"**") } }
also it would be great if the "args" variable could be passed to the closure as an argument