how can read pom.xml , 'artifactid' 'groupid' etc in gruntfile.js.
'xml-parser'- saw in npm how can use in gruntfile.js , has example . new grunt .
thanks advise.
search npm registry xml parser
var fs = require('fs'); var parse = require('xml-parser'); var xml = fs.readfilesync('example.xml', 'utf8'); var obj = parse(xml);
obj parsed xml