gpt4 book ai didi

java - Tomcat启动后的Ant脚本

转载 作者:行者123 更新时间:2023-11-28 22:14:11 24 4
gpt4 key购买 nike

有没有办法在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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com