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