ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barnet Wagman>
Subject Using exec to run 'chmod a+x *'
Date Sun, 03 Aug 2003 23:03:26 GMT
I'm sure this question has been asked before, but I can't find it in the 

I need need to perform a chmod operation on all the files in a directory 
(on a Linux system).

However, exec does not seem to be able to handle file name expansion; it 
chokes on the '*', i.e.

<exec dir="tmp/bin" executable="chmod">
            <arg line=" a+x"/>

works but

<exec dir="tmp/bin" executable="chmod">
            <arg line=" a+x *"/>

I tried using <arg value ...> but that generates the same error 
message.  Presumably exec is calling the actual chmod executable without 
using a shell. 

Can someone tell me the preferred way to do this?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message