ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: problems with chmod
Date Mon, 30 Sep 2002 16:01:40 GMT
That's the one bad thing about the new 'file' attribute of <fileset>... It
might confuse people. Maybe a check to see if 'file' is used in conjunction
with the others <fileset> attributes should be in order, with proper issuing
of a warning message... Any takers ;-) --DD

-----Original Message-----
From: Jesse Stockall [mailto:jesse@cryptocard.com] 
Sent: Monday, September 30, 2002 7:03 AM
To: Ant Users List
Subject: Re: problems with chmod

On Fri, 2002-09-27 at 21:45, Jennifer Moter wrote:
> I'm having problems making a shell script executable:
>   <chmod file="${stage.tomcat.home}/bin" perm="ugo+rx" includes="*.sh"/>
> 

If you are trying to change the permissions on the contents of a
directory your <chmod> target should look like this:

<chmod dir="${stage.tomcat.home}/bin" perm="ugo+rx" includes="*.sh"/>
       ~~~
Your example was changing the permissions of the
${stage.tomcat.home}/bin directory itself, rather than the contents.

Jesse

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


Mime
View raw message