You could use the -exec argument to find instead. I am on a bus at the moment, but from memory the syntax would be:

find <all your args> -exec chmod -v 755 \{\} \;

Check that in the manpages though! Should be fairly straightforward to antify that.

I don't know if there's a way to pipe in ant but it would be useful.

Andrew.


On 2 Jul 2008, at 00:58, jantje <[EMAIL PROTECTED]> wrote:


Hi there,

I need to do a /bin/bash operation, the "|" is a pipe:
find /tmp/module/ -type d | xargs chmod -v 755;

"find" I can include in an exec-task:
 <exec executable="/usr/bin/find" failonerror="true">
     <arg value="/tmp/module/"/>
     <arg value="-type"/>
     <arg value="d"/>
   </exec>

 But the result of this exec-task has to be "piped" to:
  xargs chmod -v 755;

 I really can't find a solution, anyone? Is it possible? :-)

 thanks and greetings..
--
View this message in context: 
http://www.nabble.com/Pipeline-in-exec-task-tp18227711p18227711.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]


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

Reply via email to