编程技术网

关注微信公众号,定时推送前沿、专业、深度的编程技术资料。

 找回密码
 立即注册

QQ登录

只需一步,快速开始

极客时间

packages 插件:underefaultExcludes似乎无法正确处理

作者: user1917 2022-5-12 16:16:37 显示全部楼层 |阅读模式

Packaging plugin: useDefaultExcludes does not seem to be handled correctly

I am experiencing a problem with the tycho-packaging-plugin (2.2.0 but later versions should be affected as well). I try to create a feature that contains a folder. I added that folder to the bin.includes entry. The folder is added but a hidden directory (starting with .) within that folder is not included in the feature. However, when exporting the feature as installable unit via Eclipse, the resulting JAR of the feature contains this hidden folder.

I looked around and found the useDefaultExcludes parameter of the packaging plugin. Even if the default excludes do not look like they would match my folder name, I gave it a try without any effect. I debugged the execution and it looks like that the flag is not properly handled to me. In the current version of the code, the flag is evaluated and the default excludes defined in the AbstractScanner are not applied. However, the created DefaultFileSet also has an internal flag usingDefaultExcludes, which is true by default. This flag is not affected by the current implementation of Tycho. I think, the code should call setUsingDefaultExcludes with false when the useDefaultExcludes parameter of the packaging plugin is false.

Just out of curiosity, I changed the flag within the DefaultFileSet to false in the debugger and it solved my problem. Therefore, I would highly appreciate a fix. If you would like to have a minimum running example or a pull request on this, please tell me.

该问题来自:eclipse/tycho/issues/215 , 试试查看该项目更多issue.

问题解答

SreenuAndroid 2022-5-12 16:49:42 显示全部楼层

最好的是为此提供PR,其中包括一个集成测试 showing 您的问题。然后,我们可以查看现有的集成测试套件是否会引起任何问题,并且我们也可以确保涵盖。

腾讯云服务器 阿里云服务器
腾讯云服务器 腾讯云服务器
关注微信
^