Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-404

jetty plugin should configure the JettyPluginWebAppContext even if supplied by build script

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.5.2
    • Fix Version/s: 0.6

      Description

      Build scripts that need fine-grained control over Jetty can assign the webAppConfig property in AbstractJettyRunTask. However, when this is done, AbstractJettyRunTask.configureWebApplication() will no longer use the task properties contextPath, tmpDirectory, webDefaultXml and overrideWebXml to configure the context, forcing build scripts to duplicate this code.

      A better solution would be to always use those properties, regardless of whether the webAppConfig was created by the build script or not.

      Build scripts could still retain full configurability of the web app by omitting the above-mentioned configuration properties.

      Attaching suggested but untested patch.

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            marcusb Marcus Better
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: