[ 
https://issues.apache.org/jira/browse/MSHARED-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16681590#comment-16681590
 ] 

Michael Osipov commented on MSHARED-767:
----------------------------------------

This is a good idea. We actually need to overhaul all of our API with Java 7 
and 8 features, but this will take years...

> Incremental should result in Stream
> -----------------------------------
>
>                 Key: MSHARED-767
>                 URL: https://issues.apache.org/jira/browse/MSHARED-767
>             Project: Maven Shared Components
>          Issue Type: Task
>          Components: maven-shared-incremental
>    Affects Versions: maven-shared-incremental-2.0.0
>            Reporter: Robert Scholte
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to