This might seem a trivial question, but I have Googled for about 1 hour and not found an answer that directly addresses it, so here goes:
Stack:
- Java
- Tomcat7
- MySQL
- OpenDS
Development Environment IntelliJ IDEA (personal) - Some of our developers prefer Eclipse
I have a Java/Spring project that we deploy to multiple environments and I am trying to create a build process for us developers to use that will allow us to create a deployable WAR file from our workstation. Eg., I want to be able to build a WAR that I can then, either through ANT or manually, deploy to the Servlet container for:
- Sandbox - a build that will run on the given workstation with local Tomcat, etc.
- DEV - From my workstation, build a WAR that can be sent to another team to deploy on managed DEV servers
- QA - Same as DEV with obvious differences in replacement variables like other server names that are referenced, passwords passed as their encrypted strings, etc.
- PROD - same as QA...
What I would like to be able to do is, either from the command line or through IntelliJ, specify which environment I want to package a WAR file for, and run it. Then take the WAR and do what I need to do with it.
Again, I know this sounds trivial, and there is something very elemental about ANT that I am missing, but any help you can provide is greatly appreciated.