The best way I've found this is to add the debug or verbose flag to ant:
ant target-name -debug
or ant target-name -verbose
Then the executable line will be printed. For instance:
[apply] Executing 'lib\NUnit\bin\nunit-console-x86.exe' with arguments: [apply] '/noshadow' [apply] '/domain:multiple' [apply] '/labels' [apply] '/framework:net-4.5' [apply] '/nologo' [apply] 'C:\blah\foo.Tests.dll
Unfortunately, this will detail everything, not just the specific apply
.
source share