You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Garrett Smith <dh...@gmail.com> on 2010/12/14 06:33:10 UTC

CHMOD and "."

I want Ant to change permissions on a directory, recursively. I have:

        <chmod perm="755">
        	<fileset dir="${build}/domunit"/>
        </chmod>

Yet the result does not include the "domunit" directory itself (see
below). How can I change this to set the permission on "." to 755?

tomomi:domunit garrett$ pwd
/Users/garrett/workspace/ape-javascript-library/build/domunit
tomomi:domunit garrett$ ls -al
total 136
drwx------   5 garrett  staff    170 Dec 12 22:03 .
drwx------  68 garrett  staff   2312 Dec 13 01:43 ..
-rwxr-xr-x   1 garrett  staff    625 Dec 12 22:03 TestReporter.css
-rwxr-xr-x   1 garrett  staff  64071 Dec 12 22:03 domunit.js
drwxr-xr-x   3 garrett  staff    102 Dec  8 21:23 eventsynth
tomomi:domunit garrett$
-- 
Garrett

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


Re: CHMOD and "."

Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Not sure this will work, but maybe:
         <chmod perm="755">
                <fileset dir="${build}/../domunit"/>
         </chmod>




On Mon, 13 Dec 2010, Garrett Smith wrote:

> I want Ant to change permissions on a directory, recursively. I have:
>
>        <chmod perm="755">
>        	<fileset dir="${build}/domunit"/>
>        </chmod>
>
> Yet the result does not include the "domunit" directory itself (see
> below). How can I change this to set the permission on "." to 755?
>
> tomomi:domunit garrett$ pwd
> /Users/garrett/workspace/ape-javascript-library/build/domunit
> tomomi:domunit garrett$ ls -al
> total 136
> drwx------   5 garrett  staff    170 Dec 12 22:03 .
> drwx------  68 garrett  staff   2312 Dec 13 01:43 ..
> -rwxr-xr-x   1 garrett  staff    625 Dec 12 22:03 TestReporter.css
> -rwxr-xr-x   1 garrett  staff  64071 Dec 12 22:03 domunit.js
> drwxr-xr-x   3 garrett  staff    102 Dec  8 21:23 eventsynth
> tomomi:domunit garrett$
>

-- 
Scot P. Floess


RHCT  (Certificate Number 605010084735240)

Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                            http://flossware.sourceforge.net
                            https://github.com/organizations/FlossWare

Chief Architect JPlate     http://sourceforge.net/projects/jplate
Chief Architect JavaPIM    http://sourceforge.net/projects/javapim
Chief Architect Keros      http://sourceforge.net/projects/keros

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


Re: CHMOD and "."

Posted by "Scot P. Floess" <sf...@nc.rr.com>.
And apparently I didn't read your requirement correctly...again

<chmod perm="755">
        <fileset dir="${build}" includes="domunit"/>
        <fileset dir="${build}/domunit"/>
</chmod>

That should work...



On Tue, 14 Dec 2010, Scot P. Floess wrote:

>
> Sorry, I hit send too soon...
> What I sent won't work either...
>
> You might try:
>
>         <chmod perm="755">
>                <fileset dir="${build}"  includes="domunit"/>
>         </chmod>
>
>
>>  I want Ant to change permissions on a directory, recursively. I have:
>>
>>         <chmod perm="755">
>>         	<fileset dir="${build}/domunit"/>
>>         </chmod>
>>
>>  Yet the result does not include the "domunit" directory itself (see
>>  below). How can I change this to set the permission on "." to 755?
>>
>>  tomomi:domunit garrett$ pwd
>>  /Users/garrett/workspace/ape-javascript-library/build/domunit
>>  tomomi:domunit garrett$ ls -al
>>  total 136
>>  drwx------   5 garrett  staff    170 Dec 12 22:03 .
>>  drwx------  68 garrett  staff   2312 Dec 13 01:43 ..
>>  -rwxr-xr-x   1 garrett  staff    625 Dec 12 22:03 TestReporter.css
>>  -rwxr-xr-x   1 garrett  staff  64071 Dec 12 22:03 domunit.js
>>  drwxr-xr-x   3 garrett  staff    102 Dec  8 21:23 eventsynth
>>  tomomi:domunit garrett$
>> 
>
>

-- 
Scot P. Floess


RHCT  (Certificate Number 605010084735240)

Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                            http://flossware.sourceforge.net
                            https://github.com/organizations/FlossWare

Chief Architect JPlate     http://sourceforge.net/projects/jplate
Chief Architect JavaPIM    http://sourceforge.net/projects/javapim
Chief Architect Keros      http://sourceforge.net/projects/keros

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


Re: CHMOD and "."

Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Sorry, I hit send too soon...
What I sent won't work either...

You might try:

         <chmod perm="755">
                <fileset dir="${build}"  includes="domunit"/>
         </chmod>


> I want Ant to change permissions on a directory, recursively. I have:
>
>        <chmod perm="755">
>        	<fileset dir="${build}/domunit"/>
>        </chmod>
>
> Yet the result does not include the "domunit" directory itself (see
> below). How can I change this to set the permission on "." to 755?
>
> tomomi:domunit garrett$ pwd
> /Users/garrett/workspace/ape-javascript-library/build/domunit
> tomomi:domunit garrett$ ls -al
> total 136
> drwx------   5 garrett  staff    170 Dec 12 22:03 .
> drwx------  68 garrett  staff   2312 Dec 13 01:43 ..
> -rwxr-xr-x   1 garrett  staff    625 Dec 12 22:03 TestReporter.css
> -rwxr-xr-x   1 garrett  staff  64071 Dec 12 22:03 domunit.js
> drwxr-xr-x   3 garrett  staff    102 Dec  8 21:23 eventsynth
> tomomi:domunit garrett$
>

-- 
Scot P. Floess


RHCT  (Certificate Number 605010084735240)

Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                            http://flossware.sourceforge.net
                            https://github.com/organizations/FlossWare

Chief Architect JPlate     http://sourceforge.net/projects/jplate
Chief Architect JavaPIM    http://sourceforge.net/projects/javapim
Chief Architect Keros      http://sourceforge.net/projects/keros

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