Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

RFE: Support multi web apps #141

Open
vyazelenko opened this issue Feb 29, 2016 · 0 comments
Open

RFE: Support multi web apps #141

vyazelenko opened this issue Feb 29, 2016 · 0 comments
Labels

Comments

@vyazelenko
Copy link

Currently (as of 2.2.4) it is only possible to run a single web app. However there are use cases where multiple web apps should be deployed into Tomcat. It would be great if such a feature was supported by gradle-tomcat-plugin. This is similar to Multiple web-apps provided by https://github.com/akhikhl/gretty plugin.

I was thinking that this could be achieved by adding webapps configuration block, e.g.:

tomcat {
    httpPort = 8090
    httpsPort = 8091
    enableSSL = true

    webapps {
        webapp {
            reloadable=true
            contextPath= 'sample-app1'
            webDefaultXml=...
            additionalRuntimeResources=...
        }

        webapp {
            reloadable=false
            contextPath= 'sample-app2'
            webDefaultXml=...
            additionalRuntimeResources=...
        }
    }
}

Each webapp then will contain all web app specific configuration and tomcat will contain Tomcat configuration. For compatibility it is probably makes sense to still support old way of configuring single app as before.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants