alexgolec
alexgolec

Reputation: 28272

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 built by ant.

Upvotes: 2

Views: 74

Answers (1)

Mike Samuel
Mike Samuel

Reputation: 120576

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.

Upvotes: 1

Related Questions