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.
我正在尝试使用 gradle 来安装和配置我所有的项目环境(例如:安装 tomcat)
所以,现在我需要做这样的事情:
我该如何做第三项?
谢谢
好的,我想通了,我可以使用 ant.exec 来做到这一点:
ant.exec(outputproperty:"cmdOut", executable: 'mvn', dir: 'projectName') { arg(line: 'clean install) }