Complex(?) Eclipse Launch Configuration
I have two Eclipse Projects where one is a Spring Project that is deployed on a server and the second is a normal Java Application. If I change something on my server I always need to restart the server and then start the Java Application manually. Is it 开发者_运维问答possible to start both with "one click"? Also, is it possible that if I launch a program the previous launched program is killed before?
Thanks, heinrich
I suggest using an ant script:
- Deploy Spring project
- Restart Server
- Restart App
Every application server comes with appropriate ant task, in your case deploying a project and restarting the server. Restarting your application depends on the type.
You can then run the script in the "External Tools Configuration" and you have a one click solution.
精彩评论