Hi,

I have made a pull request: https://github.com/gradle/gradle/pull/54 that
adds a parameter to the war convention which permits extra directories to
search for resources.  This is very important for situations where you use
the jettyRun plugin for development.  In many applications I have developed
I have had one or more of the following situations:


   - Javascript minification
   - configuration generation for a particular deployment target
   - Core application is generic and has overrides/overlays for a
   particular customer to customize various aspects of the project.


With the current plugin if I want to test locally I have to overwrite the
source files or generate files into the sources directories and make sure I
don't accidentally commit the generated changes/files.  This is a hassle.
 In addition it makes the clean tasks difficult to write.  The alternative
is to copy all files to target and use that as the webapp dir for jetty and
war plugins.  That is annoying because if you change a file you have to
remember to copy it back to the sources directory.

What I do when I use maven is I put all generated files in the target
directory and  have the jetty plugin get sources from the src/main/webapp
folder as well as target/generated/webapp.  This way I can modify the
sources (javascript html etc...) and have instant turnaround just by
reloading the webpage.  It is a pain to do this now.

The pull request I have submitted adds this ability.  (It also adds some
much needed documentation to the Jetty plugin docs and DSL docs)

If anyone is interested in getting this added please vote on:

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

Thanks

Jesse

Reply via email to