I take it you're a Windows person. The "echo on" and "echo off"
parameters are really part of the CMD.EXE "DOS" shell on Windows. It's
not a feature of Ant or of the OS.
When you use the command, you are running the command without the shell.
What you can do, if you really want to do this is run
you can
put your entire command line here
or redirect exec stdout with the ant exec task 'output' attribute e.g.
and view the contents of 'Somefile.txt' after execution
http://ant.apache.org/manual/CoreTasks/exec.html
HTH
Martin
__
Dis