开发者

Can I have ant output an equivalent script?

开发者 https://www.devze.com 2023-03-10 19:53 出处:网络
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开发者_开发

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

精彩评论

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

关注公众号