Ant script: Have <exec> tag dump out entire command line

What about some good old echoing via:

<echoxml>
 <exec executable="..." failonerror="true" >
  <arg value="..."/>
  <arg value="..."/>
   ...
 </exec>
</echoxml>

for testing your stuff (attribute values, properties resolved .. etc.) before activating the real thing !?
That's what I use frequently, because ant -verbose | debug is too chatty when I need to check only specific parts. Afterwards simply delete or comment the echoxml tags.

For echoxml you need Ant >= 1.7


ant -v usually does the trick but you may find you have a lot of output to look through.

Tags:

Java

Eclipse

Ant