Thank you very much. I appreciate your help greatly.

Regards,

M. Grubb

On Mon, 2002-01-28 at 10:51, Stefan Bodewig wrote:
> On 25 Jan 2002, Michael Grubb <[EMAIL PROTECTED]> wrote:
> 
> OK, this time I've tested my answer 8-)
> 
> > <chmod perm="u=rwx,g=rx,o=rx">
> >     <fileset dir="${dist}>
> >             <include name="*" />
> >             <exclude name="*/**"/>
> >     </fileset>
> > </chmod>
> 
> doesn't give you anything as the exclude matches your directories as
> well - and exclude wins over include.  Actually, the include pattern
> alone is enough:
> 
> [bodewig@bodewig tmp]$ cat test.xml 
> <project default="foo">
>   <target name="foo">
>     <mkdir dir="a/b/c" />
>     <mkdir dir="a/d/e" />
>     <exec executable="ls" dir="a">
>       <arg value="-l" />
>     </exec>
>     <exec executable="ls" dir="a/b">
>       <arg value="-l" />
>     </exec>
> 
>     <chmod type="dir" perm="o-x">
>       <fileset dir="a">
>         <include name="*" />
>       </fileset>
>     </chmod>
> 
>     <exec executable="ls" dir="a">
>       <arg value="-l" />
>     </exec>
>     <exec executable="ls" dir="a/b">
>       <arg value="-l" />    
>     </exec>    
>     <delete dir="a" />
>   </target>
> </project>
> 
> [bodewig@bodewig tmp]$ ant -f test.xml 
> Buildfile: test.xml
> 
> foo:
>     [mkdir] Created dir: /tmp/a/b/c
>     [mkdir] Created dir: /tmp/a/d/e
>      [exec] insgesamt 8
>      [exec] drwxrwxr-x    3 bodewig  bodewig      4096 Jan 28 17:49 b
>      [exec] drwxrwxr-x    3 bodewig  bodewig      4096 Jan 28 17:49 d
>      [exec] insgesamt 4
>      [exec] drwxrwxr-x    2 bodewig  bodewig      4096 Jan 28 17:49 c
>      [exec] insgesamt 8
>      [exec] drwxrwxr--    3 bodewig  bodewig      4096 Jan 28 17:49 b
>      [exec] drwxrwxr--    3 bodewig  bodewig      4096 Jan 28 17:49 d
>      [exec] insgesamt 4
>      [exec] drwxrwxr-x    2 bodewig  bodewig      4096 Jan 28 17:49 c
>    [delete] Deleting directory /tmp/a
> 
> BUILD SUCCESSFUL
> Total time: 0 seconds
> 
> You see, the permissions for b and d have been changed, but not for c.
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to