From: Joe W. <jo...@gm...> - 2012-02-26 03:51:47
|
Hi Andrzej, Great, I understand now. I just have one final question: Does the new "permissions" attribute for chmod still allow the alternate format (quoting from the current docs): [user|group|other]=[+|-][read|write|execute] For example, to set read and write permissions for the group, but not for others:</para> <synopsis>group=+read,+write,other=-read,-write ? Or does it only take the flat 'rwxrwxrwx' style? Thanks, Joe On Sat, Feb 25, 2012 at 3:55 PM, Andrzej Jan Taramina <an...@ch...> wrote: > Joe: > >> "The mode attribute on the chown ANT task is deprecated, but still >> works for backwards compatibility. Please convert your ANT scripts to >> use the new permissions attribute instead. If both are specfied, then >> the permissions attribute is the only one used." >> >> I looked and didn't see any changes to "chown" in your commit, only to >> "chmod". ("chown" doesn't even take a "mode" attribute.) Did you >> mean "chmod"? > > Sorry....my mistake. I meant chmod! > >> Also, you said to "use the new permissions attribute >> instead", but did you add a new permissions attribute to "chmod"? Or >> are you suggesting that people stop using "chmod" altogether, and >> instead modify their scripts to use "store" or "create" with the >> "permissions" attribute? > > I added a new permissions attribute to chmod. > > so you can do either of the following for the chmod ANT task: > > <exist:chmod ..... permissions="rwxr--r--"/> > <exist:chmod ..... mode="rwxr--r--"/> > > If you specify both, only the permissions= will be used. > >> Thanks in advance for clarifying this. Once I understand this, I'll >> update the documentation accordingly. > > Thanks for doing the docs! > >> Sure, I'll be happy to merge your ant task enhancements into >> stable/exist-2.0.x along with my revisions to the ant task >> documentation. I plan do this when I have the documentation revisions >> done. > > Much appreciated! > > > -- > Andrzej Taramina > Chaeron Corporation: Enterprise System Solutions > http://www.chaeron.com |