Skip to content

Commit

Permalink
adding ignore parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
benbarnett committed Apr 30, 2013
1 parent e45e473 commit fc00d37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/dox.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ module.exports = function(grunt) {
_args.push('"' + _opts.title + '"');
}

// Pass through ignore params if set
if (this.data.ignore) {
_args.push('--ignore');
this.data.ignore.forEach(function(ignorePath) {
_args.push(doxPath + ignorePath);
});

}

exec(formatter + ' ' + _args.join(" "), {maxBuffer: 5000*1024}, function(error, stout, sterr){
if (error) { grunt.log.error("ERROR: "+ error); }
Expand Down

0 comments on commit fc00d37

Please sign in to comment.