apache / apache/maven-shared-incremental

[MSHARED-767] Incremental should result in Stream

Open
#40 2 comments 0 reactions 0 assignees View on GitHub
maintenance
Dominant language
Java
Stars
4
Forks
10
Avg merge
49m
Merged PRs (30d)
2

Description

**[Robert Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)** opened **[MSHARED-767](https://issues.apache.org/jira/browse/MSHARED-767?redirect=false)** and commented

The current implementation is inefficient, it does a complete scan of the sourcefolder(s) whereas in general knowing the first change is already sufficient.
The Java 8 StreamAPI can help here.

The result should be a Stream of Resources(?) containing the filereference and a status (added, removed, changed). It must be possible to support localResources (where input and output can be compared) and remoteResources (where metadata must be stored to know if it has been changed). Filtering can be done by the consumer of the stream.

---

**Affects:** maven-shared-incremental-2.0.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the current incremental scan implementation and its localResources and remoteResources entry points. Review how resources and change status are currently represented, then determine how a Java 8 Stream could expose added, removed, and changed results while preserving metadata for remote resources. Done means the proposed API supports both resource types and lets consumers filter the stream.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.