Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在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... -->