Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2835

Assign context equal to project name in newly created Gradle Web Application projects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.1
    • None
    • None

    Description

      Newly created Gradle Web Application projects have by default an empty context path inĀ src/main/webapp/WEB-INF/context.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <Context path=""/>
      

      I think it would be better to use the project name prepended with a slash.

      <?xml version="1.0" encoding="UTF-8"?>
      <Context path="/project-name"/>
      

      This is more consistent with the analogous maven web application project and moreover it is a saner default when multiple projects are deployed on the same application server.

      Attachments

        Activity

          People

            lkishalmi Laszlo Kishalmi
            AlexFalappa Alessandro Falappa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: