Webapp custom directories

Hi -

How can I structure my webapp in gradle to build using a custom layout.

I’d like my war file to be built something like the following:

WEB-INF
  + classes
  + lib
  + resources
  + services
      + com....
  + web.xml

The services directory is the one what it given me problems… I’d like to have the services directory contain another set of classes in it’s proper package structure. Could someone point me to some documentation on how best to set this up using gradle.

Thanks in advance.

…Chris

I’m not completely sure, but you might be able to do something like this:

war {
  from(sourceSets.servicesMain.output) {
    into 'WEB-INF/services'
  }
}