I have a web application which runs on Jetty. I pack my applications as .war and then deploy it on the server.
I would like to serve the same application to multiple tenants without copying the whole project with different name each time. The only difference between tenants is the parameter file which contains the database connection details.
Currently for each tenant I copy-paste my project in Eclipse with a new name and then change the parameter file. If I change anything in the code I have to update it on all projects.
The ideal would be to have a command to run the same code on different names each using different property file: app.war -> dummy.com/app1 dummy.com/app2 dummy.com/app3
How that can be achieved?