Jetty plugin doesn't ignore web.xml


(lu.strzelecki) #1

I try to run jetty without web.xml. I have web.xml in project but I don’t want to load this file.

According to documentation: http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.jetty.JettyRun.html “webXml The web.xml file to use. When null, no web.xml file is used.”

I’ve created project to reproduce issue: https://github.com/lstrzelecki-issues/jettySkipWebXml

When i run script runme.sh I’m expectint that jetty will run properly. But it doesn’t becouse invalid web.xml is loaded.

$ gradle --version
------------------------------------------------------------
Gradle 1.8
------------------------------------------------------------
  Build time:
 2013-09-24 07:32:33 UTC
Build number: none
Revision:
   7970ec3503b4f5767ee1c1c69f8b4186c4763e3d
  Groovy:
     1.8.6
Ant:
        Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy:
        2.2.0
JVM:
        1.6.0_45 (Sun Microsystems Inc. 20.45-b01)
OS:
         Linux 3.8.0-19-generic amd64