gradle/gradle — pull request #54 by jesseeichar (2011-12-06 10:36:02+00:00)
Title: New War and JettyRun additionalWebAppDirs option

See http://issues.gradle.org/browse/GRADLE-1178.

I am aware that in war you can add extra files using the from option. However JettyRun does not take the from files into account.

I have considered trying to use the from files to build a jetty ResourceCollection but ResourceCollections only accept directories. Since from can have files (and normally does) it is not a good candidate for additional webapp resources (with respect to Jetty).

So to address this I have added a new property for adding additional directories to a war (and JettyRun).

In summary, in this pull request I have done the following things:
* Added option additionalWebAppDirs in the WarPluginConvention object
* Added option additionalWebAppDirs to JettyRun
* Added documentation for new option in the DSL documentation
* Added JettyRun documentation for ScanIntervalSeconds, ScanTargets, ScanTargetPattern, reload
* updated subprojects/docs/src/samples/webApplication/customised project so that the project has some extra customisations, (the ones documented above)