开发者

Can I have ant output an equivalent script?

Is there any way that I can have ant output a file of all the commands that a given run executes? I'd like to be able to run the script, and it would build the project as though it were bui开发者_开发知识库lt by ant.


No. Ant doesn't always work through the shell so there are not necessarily commands there to be logged.

org.apache.tools.ant.Task.perform is not required to use java.lang.Runtime to spawn processes. It can use java.io to manipulate files via classes that have no main method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜