you can
<echo>put your entire command line here</echo>
or redirect exec stdout with the ant exec task 'output' attribute e.g.
<exec executable="VBoxManage" failifexecutionfails="false"
output="Somefile.txt">
<arg line="controlvm ${vbox.vmname} poweroff"/>
</exec>
and view the contents of 'Somefile.txt' after execution
http://ant.apache.org/manual/CoreTasks/exec.html
HTH
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
> Date: Fri, 6 Mar 2009 06:44:49 -0800
> From: [email protected]
> To: [email protected]
> Subject: how to "echo" exec command
>
>
> how do I "echo" or display the full command exec is about to run? In my
> example I should see
> [exec] VBoxManage controlvm vm poweroff
> but nothing is shown.
>
> ant version=1.7 os = fedora 10 shell=bash, jdk=1.5.8
>
> <target name="vbox" depends="-init-run">
> <exec executable="VBoxManage" failifexecutionfails="false">
> <arg line="controlvm ${vbox.vmname} poweroff"/>
> </exec>
> ....
>
> vbox:
> [exec]
> [exec] VirtualBox Command Line Management Interface Version 2.1.4
> [exec] (C) 2005-2009 Sun Microsystems, Inc.
> [exec] All rights reserved.
>
> --
> View this message in context:
> http://www.nabble.com/how-to-%22echo%22-exec-command-tp22373827p22373827.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
_________________________________________________________________
Windows Live⢠Contacts: Organize your contact list.
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009