You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To encourage user to use modern API all File references should be replaced by Path references, even though currently due to the Plexus-Scanner-API only File pathes are actually supported.
I have checked m2e and it uses AbstractScanner only (so directory scanner is not really a concern for it and mostly used for the default impl) and mostly uses it to check if a delta found matches.
@kwin as you recently made some plugins Build API aware, I wonder if you can shade some light how useful the methods newScanner/newDeleteScanner are actually are, I feel like we can simply get rid of them completely and just offer a newDeltaStream() that list all items (deleted, new, changed) and then users can use other method of the context to decide what state they actually have (if the implementation itself actually is not using a different filtering mechanism already) ...
The Path-based replacement is being done as new packages instead of changing BuildContext: the Messages API (merged, 1.3.0) already takes Path, and the Resources API is tracked in #76 (PR #104). Closing as a duplicate of #76.
Activity
laeubi commentedon Nov 23, 2022
Seems a prerequisite here:
laeubi commentedon Nov 24, 2022
Another option would be to get rid of the
ScannerAPI completely and return aDirectoryStreaminstead ...laeubi commentedon Nov 24, 2022
I have checked m2e and it uses
AbstractScanneronly (so directory scanner is not really a concern for it and mostly used for the default impl) and mostly uses it to check if a delta found matches.@kwin as you recently made some plugins Build API aware, I wonder if you can shade some light how useful the methods
newScanner/newDeleteScannerare actually are, I feel like we can simply get rid of them completely and just offer anewDeltaStream()that list all items (deleted, new, changed) and then users can use other method of the context to decide what state they actually have (if the implementation itself actually is not using a different filtering mechanism already) ...slachiewicz commentedon Nov 8, 2026
The Path-based replacement is being done as new packages instead of changing BuildContext: the Messages API (merged, 1.3.0) already takes Path, and the Resources API is tracked in #76 (PR #104). Closing as a duplicate of #76.