akhikhl / gretty

Advanced gradle plugin for running web-apps on jetty and tomcat.
MIT License
656 stars 173 forks source link

Is web.xml location configurable? #134

Open chadshowalter opened 9 years ago

chadshowalter commented 9 years ago

I'd like the ability to launch two different java webapps that live in the same gradle project but require different web.xml files. The Gradle Jetty plugin, for example, which is missing many of Gretty's features, provides the location of web.xml as one of its configuration options. Is it possible to do something similar with Gretty?

aegliv commented 9 years ago

Have you looked at: http://akhikhl.github.io/gretty-doc/#_multiple_web_apps?

chadshowalter commented 9 years ago

I have, but it doesn't seem to fit my use case. I have javascript source that lives in a single gradle project. I would like to be able to use gretty with "inplaceMode: hard" from the same contextPath but with a different welcome page and web.xml.

I could, of course, structure my code differently to take advantage of gretty's multiple web apps feature, but I don't really want to do that for a few different reasons. One is that my javascript code uses Ext JS, which has a build tool (Sencha Cmd) that uses a workspace concept that seems easiest to map to a single gradle project. Another is that I don't think I can use overlays with multiple web apps and still use "inplaceMode: hard", which I much prefer for development, since it's easiest to get quick feedback when I make javascript changes.

Using gradle's jetty plugin, it is very straightforward to to accomplish what I want; I have not seen a way to accomplish this with Gretty.

patitonar commented 6 years ago

I'm having a similar issue. Is there a way to specify the web.xml location?

jasonpaulburke commented 6 years ago

Ditto