Hello,

The <exec> task allows you execute any abritary commandline (including pipes) 
string.  The <exec> task also has a 'outputproperty' attribute that allows you 
define the name of a property whose value will be the output the commandline 
execution

 Good Luck,

Ninju


----- Original Message ----
From: Mr raju varghese <[EMAIL PROTECTED]>
To: user@ant.apache.org
Sent: Saturday, February 10, 2007 3:42:07 AM
Subject: ant run command piping and get out put to value


Hi,

I need Ant to run some commands and save out put to a
property value. how can i achive that. For example 

command:
svn info | grep version

I need to put output of the above command to property
called 'svninfo'. And also how can i pipe commands
using Ants exec.

Thanks,
Raju





____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to