ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Madison" <...@tfftech.com>
Subject Re: Using exec to run 'chmod a+x *'
Date Mon, 04 Aug 2003 02:13:58 GMT
why are you just not using the chmod task?

j.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Jon Madison, Software Developer
http://www.tfftech.com/
----- Original Message ----- 
From: "Barnet Wagman" <bw@northbranchlogic.com>
To: <user@ant.apache.org>
Sent: Sunday, August 03, 2003 6:03 PM
Subject: Using exec to run 'chmod a+x *'


| 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
| 
| 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/2/2003

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


Mime
View raw message