ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viet nguyen <viet....@gmail.com>
Subject Re: AW: how to "echo" exec command
Date Fri, 06 Mar 2009 15:31:41 GMT

Thanks for getting back to me.

I'm aware of -verbose and -debug but they generate too much much
information.  I'm looking for something simple and analogous to @ in DOS
batch file.

I guess I can write an exec macrodef and print the command as Martin
suggested.






Jan.Materne wrote:
> 
> Start Ant with -verbose or -debug.
> 
> Jan 
> 
>>-----Ursprüngliche Nachricht-----
>>Von: viet nguyen [mailto:viet.atx@gmail.com] 
>>Gesendet: Freitag, 6. März 2009 15:45
>>An: user@ant.apache.org
>>Betreff: 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-tp22373827
>>p22373827.html
>>Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-%22echo%22-exec-command-tp22373827p22374727.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message