ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: Using exec to run 'chmod a+x *'
Date Mon, 04 Aug 2003 15:47:54 GMT
As an academic discussion, the reason the exec didn't
work with wildcards is that expansion is performed by
a shell.  Therefore if you wanted to do this on Unix,
you would have wanted to invoke the "sh" or some other
shell executable, passing it arguments including the
command to run (chmod) and the wildcard files... the
simpler way to do this is Ant would be to use <apply>
with a fileset and chmod as the executable, thus
letting Ant take care of the wildcard expansion.

Incidentally, the <chmod> task is documented with a
permissions attribute (not the exact name) that takes
values such as "a+x" or "g+w"... does anyone know if
the octal permissions also work with this task?  I
would think they should...


--- Barnet Wagman <> wrote:
> Jon Madison wrote:
> >why are you just not using the chmod task?
> >
> I thought that I had read somewhere in the
> documentation that chmod 
> wasn't supported but clearly I'm wrong.  Thanks.
> bw

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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

View raw message