有没有办法在tomcat启动完成后写一个hook来执行一个ant脚本。试图更改 startup.bat 以在最后调用 ant 脚本,但是在 tomcat 完全启动之前调用了 ant。
任何想法将不胜感激。
最佳答案
无需处理与 Tomcat 相关的任何事情的简单方法:
<!-- run tomcat here -->
<!-- wait for the server to be available -->
<waitfor>
<http url="http://host:port">
</waitfor>
<!-- run other ant scripts from here... -->
关于java - Tomcat启动后的Ant脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10918961/