ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barnet Wagman ...@northbranchlogic.com>
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 
archive.

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 start_mysql.sh stop_mysql.sh"/>
</exec> 

works but

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

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?

Thanks,

bw


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


Mime
View raw message