是否可以从 Ant 运行命令(.cmd 文件)?我需要为此编写 Java 代码吗?
<exec executable="cmd" os="Windows XP"> <arg value="/C"/> <arg value="command to run"/> </exec>