使用ant 的exec时不能随意省略可执行文件的扩展名

我原来这样写:

<exec dir="${another.project}" executable="ant">

  </exec>

结果:Execute failed: java.io.IOException: CreateProcess: ant error=2

后来把 executable="ant" 改成 executable="ant.bat" 就成功了

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.