[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] problems with chmod touchpoint action

I am trying to use the chmod touchpoint action on the install phase for my plug-in, and I can't get it to work quite right. It works fine for something simple like changing the permissions of one file:

<instruction key='install'>
chmod(targetDir:${installFolder}/path/to/file,targetFile:myFile,permissions:+x);
</instruction>


But when I try to recursively set permissions on a directory, like I would with "chmod -R +x myDirectory/", it does not work:

<instruction key='install'>
chmod(targetDir:${installFolder}/path/to/parentDirectory,targetFile:myDirectory,permissions:-R +x);
</instruction>


I have also tried putting the "-R +x" in double quotes and single quotes, nothing works. I have also tried specifying * for targetFile just to see if that would work, and that doesn't even seem to work.

What's the deal? chmod'ing a directory or files is one of the most common uses of install handlers...how are we supposed to migrate our plug-ins to p2 if it won't work? Hopefully I'm doing something wrong...

As an aside, could you have made p2 a little more complicated? My frustration is growing by the day...

- Ryan