Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] what variable should i use to run some native touch point actions on the feature that is just installed?

Hi,

i want to use a chmod command to set some executable bits:

 currently i do this:

org.eclipse.equinox.p2.touchpoint.natives.chmod(targetDir:${installFolder}/features/project.artifactId_version/jre/Contents/Home/,targetFile:bin,permissions:755,options:-R);\
org.eclipse.equinox.p2.touchpoint.natives.chmod(targetDir:${installFolder}/features/project.artifactId_version/jre/Contents/Home/lib/,targetFile:jspawnhelper,permissions:755);

that works as long as the feature is installed inside the eclipse install dir..

But if that is a readonly dir and eclipse installs that feature really to the user home dir..
Then that bombs out because the dir is not there..

what should i use there?

i read here https://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instructions_35
that there is some kind of @artifact ?

But how to use that like this?


org.eclipse.equinox.p2.touchpoint.natives.chmod(targetDir:@artifact/jre/Contents/Home/,targetFile:bin,permissions:755,options:-R);

that look weird to me..

Back to the top