dehasi commented on a change in pull request #347: URL: https://github.com/apache/maven/pull/347#discussion_r628798379
########## File path: maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java ########## @@ -482,6 +500,68 @@ else if ( !parentIds.add( parentData.getId() ) ) return resultModel; } + private Map<String, Activation> getInterpolatedActivations( Model rawModel, + DefaultProfileActivationContext context, + DefaultModelProblemCollector problems ) + { + Map<String, Activation> interpolatedActivations = getProfileActivations( rawModel, true ); + for ( Activation activation : interpolatedActivations.values() ) + { + if ( activation.getFile() != null ) + { + replaceWithInterpolatedValue( activation.getFile(), context, problems ); + } + } + return interpolatedActivations; + } + + private void replaceWithInterpolatedValue( ActivationFile activationFile, ProfileActivationContext context, + DefaultModelProblemCollector problems ) + { + String path; + boolean missing; + + if ( isNotEmpty( activationFile.getExists() ) ) + { + path = activationFile.getExists(); + missing = false; + } + else if ( isNotEmpty( activationFile.getMissing() ) ) + { + path = activationFile.getMissing(); + missing = true; + } + else + { + return; + } + + try Review comment: answered above. -- 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