P2 Touchpoint chmod 不起作用?

2023-12-31

我使用的是 Eclipse 3.5.2,并且使用以下信息创建了 p2.inf:

instructions.install = \
chmod(targetDir:@artifact,targetFile:$os$/libfoo.so,permissions:755);

instructions.install.import= \
org.eclipse.equinox.p2.touchpoint.natives.chmod

我将 p2.inf 放在片段的 META-INF 文件夹中,但是当我安装更新站点时,libfoo.so 没有执行权限。

拔掉头发后,我尝试引用一个不存在的 *.so 的 p2.inf,但似乎什么也没有发生。没有任何类型的错误消息、异常或警告表明 P2 接触点操作失败...

这是怎么回事?有任何想法吗?


导入行应该是org.eclipse.equinox.p2.touchpoint.eclipse.chmod (i.e. eclipse而不是natives),根据以下评论org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.ChmodAction http://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/ChmodAction.java?h=R3_6_maintenance

// This basically a copy of the chmod action in the native touchpoint,
// only it provides @artifact support.

(为了比较,请参见'natives' chmod 操作 http://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/actions/ChmodAction.java?h=R3_6_maintenance)

我还没有检查对“os”等插值变量的支持。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

P2 Touchpoint chmod 不起作用? 的相关文章

随机推荐