lib/maven-archetype-file-filtering.js
function replaceProperties (lines, properties) {
  var filteredLines = [];
  lines.forEach((line) => {
    for (var prop in properties) {
      line = expandReference(line, prop, properties[prop]);
    }
    filteredLines.push(line);
  });
  return filteredLines;
}
function replaceProperties (lines, properties) {
  var filteredLines = [];
  lines.forEach((line) => {
    for (var prop in properties) {
      line = expandReference(line, prop, properties[prop]);
    }
    filteredLines.push(line);
  });
  return filteredLines;
}
function replaceProperties ( lines , properties ) { var filteredLines = [ ] ; lines . forEach ( ( line ) => { for ( var prop in properties ) { line = expandReference ( line , prop , properties [ prop ] ) ; } filteredLines . push ( line ) ; } ) ; return filteredLines ; }
Given a list of lines from a file, we go through each line and replace properties that
are provided with the associated value.

NOTE: This does not process properties if they are not in the properties parameter.

@param {!Array<string>} lines are processed one at a time
@param {!Object} properties are replaced
@returns {!Array<string>} original lines with properties replaced
Given a list of lines from a file we go through each line and replace properties that are provided with the associated value .