mthmulders commented on a change in pull request #444:
URL: https://github.com/apache/maven/pull/444#discussion_r575231766



##########
File path: 
maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionDataRepository.java
##########
@@ -133,22 +126,14 @@ private Properties loadResumptionFile( Path 
rootBuildDirectory )
     // This method is made package-private for testing purposes
     void applyResumptionProperties( MavenExecutionRequest request, Properties 
properties )
     {
-        if ( properties.containsKey( RESUME_FROM_PROPERTY ) && 
StringUtils.isEmpty( request.getResumeFrom() ) )
+        if ( properties.containsKey( RESUME_PROJECT_LIST )
+                && StringUtils.isEmpty( request.getResumeFrom() ) )
         {
-            String propertyValue = properties.getProperty( 
RESUME_FROM_PROPERTY );
-            request.setResumeFrom( propertyValue );
+            String propertyValue = properties.getProperty( RESUME_PROJECT_LIST 
);
+            Stream.of( propertyValue.split( PROPERTY_DELIMITER ) )
+                    .filter( StringUtils::isNotEmpty )
+                    .forEach( request.getSelectedProjects():: add );

Review comment:
       ```suggestion
                       .forEach( request.getSelectedProjects()::add );
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to