I use Tomcat as a web server and Ant as a build tool and I need to make the process of deploying a little bit more faster, so that I can focus on the main thing - my program.
So I tried to create a small .bat file which contains all the operations I need to do for deployment to work on my machine. It includes tomcat server shutdown, ant buildfile, a directory deletion and copying of the newly created .war into the server directory.
All paths and commands are working without any problem when I type them on my command prompt, so the problem is not in the commands.
The prob is that the .bat program terminates after any of the tomcat or ant operations I use and doesn't complete the sequence. Probably because their nature is the same - executing in command prompt themselves. When I use 3 different .bat files each of them including only one tomcat/ant command, then all works fine.
Any ideas how to deal with it? Is it possible to automate the process in command prompt?
P.S. I forgot to mention (but I guess it's obvious) that I use Windows (7 in particular).