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.
精彩评论