lib/maven-archetype-metadata.js
function _getFileSet (fileSetElement) {
    var filtered = utils.toBoolean(fileSetElement.getAttribute('filtered'), false);
    var packaged = utils.toBoolean(fileSetElement.getAttribute('packaged'), false);
    var encoding = fileSetElement.getAttribute('encoding');
    var directory = domutils.getChild(fileSetElement, 'desc', 'directory').textContent;
    var includes = domutils.selectMatchingXPath('desc:includes/desc:include', fileSetElement);
    var excludes = domutils.selectMatchingXPath('desc:excludes/desc:exclude', fileSetElement);
    var fileSet = {
      filtered: filtered, packaged: packaged, encoding: encoding, directory: directory, includes: [], excludes: [],
    };
    includes.forEach(function (include) {
      fileSet.includes.push(include.textContent);
    });
    excludes.forEach(function (exclude) {
      fileSet.excludes.push(exclude.textContent);
    });
    return fileSet;
  }
function _getFileSet (fileSetElement) {
    var filtered = utils.toBoolean(fileSetElement.getAttribute('filtered'), false);
    var packaged = utils.toBoolean(fileSetElement.getAttribute('packaged'), false);
    var encoding = fileSetElement.getAttribute('encoding');
    var directory = domutils.getChild(fileSetElement, 'desc', 'directory').textContent;
    var includes = domutils.selectMatchingXPath('desc:includes/desc:include', fileSetElement);
    var excludes = domutils.selectMatchingXPath('desc:excludes/desc:exclude', fileSetElement);
    var fileSet = {
      filtered: filtered, packaged: packaged, encoding: encoding, directory: directory, includes: [], excludes: [],
    };
    includes.forEach(function (include) {
      fileSet.includes.push(include.textContent);
    });
    excludes.forEach(function (exclude) {
      fileSet.excludes.push(exclude.textContent);
    });
    return fileSet;
  }
function _getFileSet ( fileSetElement ) { var filtered = utils . toBoolean ( fileSetElement . getAttribute ( 'filtered' ) , false ) ; var packaged = utils . toBoolean ( fileSetElement . getAttribute ( 'packaged' ) , false ) ; var encoding = fileSetElement . getAttribute ( 'encoding' ) ; var directory = domutils . getChild ( fileSetElement , 'desc' , 'directory' ) . textContent ; var includes = domutils . selectMatchingXPath ( 'desc:includes/desc:include' , fileSetElement ) ; var excludes = domutils . selectMatchingXPath ( 'desc:excludes/desc:exclude' , fileSetElement ) ; var fileSet = { filtered : filtered , packaged : packaged , encoding : encoding , directory : directory , includes : [ ] , excludes : [ ] , } ; includes . forEach ( function ( include ) { fileSet . includes . push ( include . textContent ) ; } ) ; excludes . forEach ( function ( exclude ) { fileSet . excludes . push ( exclude . textContent ) ; } ) ; return fileSet ; }
Produces a JavaScript object representing a fileSet.

@param {Element} fileSetElement
@returns {{filtered: (boolean|undefined), packaged: (boolean|undefined), encoding: (string|*), directory, includes: Array, excludes: Array}}
@private
Produces a JavaScript object representing a fileSet .