rework directory scanner to ensure it can enforce exclusions and it uses path#54
rework directory scanner to ensure it can enforce exclusions and it uses path#54rmannibucau wants to merge 2 commits intoapache:masterfrom
Conversation
There was a problem hiding this comment.
will bypass --> bypasses
In general, tech writing prefers the present tense
better yet bypass the visit --> does not visit
| /* expExclDirs */ NONE ); | ||
| } | ||
|
|
||
| public void testIsSymbolicLink() |
There was a problem hiding this comment.
No more relevant since there we use directly Files API and it was testing an internal
| import org.junit.rules.TemporaryFolder; | ||
|
|
||
| import java.io.File; | ||
| import java.io.FileWriter; |
There was a problem hiding this comment.
danger: this class depends on platform default encoding. Avoid.
There was a problem hiding this comment.
it is fine, it is just used to "touch" the file, not write content
src/test/java/org/apache/maven/shared/utils/io/conductor/EnforceExcludesOverIncludesTest.java
Outdated
Show resolved
Hide resolved
|
@rmannibucau Is this PR still valid and needed? We're looking to release maven-shared-utils and I'm wondering if we should include this. |
|
IMHO this is relevant and would fix https://issues.apache.org/jira/browse/MSHARED-989. |
| * If an exclude is defined on a folder it does not visit of the children | ||
| * even if some include can match children. | ||
| */ | ||
| public class EnforceExcludesOverIncludes implements ScanConductor, ScannerAware |
There was a problem hiding this comment.
Wouldn't it make sense if this class would directly implement https://docs.oracle.com/javase/7/docs/api/java/nio/file/DirectoryStream.Filter.html instead? That way one could get rid of the ScanConductor interface...
|
Any progress? |
|
@rmannibucau @kwin Do you guys want to pick this up? I would merge this into 4.0.0. |
|
I don't have capacity for this unfortunately. |
Alright, then I will remove the fix version and retain the class as-is for 4.0.0. |
No description provided.