|
4
|
| Matthew · 技术社区 · 16 年前 |
|
|
1
5
一般来说,您可以依赖Ant按顺序执行任务。这个
然而,考虑到Tomcat的性质以及“阻止Tomcat”的含义,什么是
因此,
You'll need some other mechanism in your script to make sure that you don't try to start a Tomcat instance while another instance on the same port is still in the midst of shutting down (such as sleeping an arbitrary number of seconds). |
|
|
2
2
Yes, order of tasks matters, and in your case 'stop' with run before 'start'. However, 'stop tomcat' (the process, not just the task) is not guaranteed to complete before 'start' will get kicked off. You may want to make 'start' check and wait until tomcat is not running before starting a new instance. |
|
|
3
1
Yes, stop will run before start. Of course, making two separate targets allows you to start and stop from ant, which may be individually useful. |
|
|
gigashark · 部署生成的Maven Spring项目不起作用 8 年前 |
|
|
Tristan Le Gacque · ApachePOI:NoClassDefFoundError:org。阿帕奇。poi。openxml4j。例外情况。invalidFormatException无效格式异常 8 年前 |
|
|
Carlos Chávez · Tomcat/Hibernate配置 8 年前 |