diff --git a/tasks/jsduck.js b/tasks/jsduck.js
index <HASH>..<HASH> 100644
--- a/tasks/jsduck.js
+++ b/tasks/jsduck.js
@@ -12,8 +12,8 @@ module.exports = function(grunt) {
         var helpers = require('grunt-lib-contrib').init(grunt),
             cmd = 'jsduck',
             options = helpers.options(this),
-            src = this.file.src,
-            dest = outDir || this.file.dest,
+            src = this.hasOwnProperty('file') == true ? this.file.src : this.data.src,
+            dest = outDir || (this.hasOwnProperty('dest') == true ? this.file.dest : this.data.dest),
             args,
             done = this.async(),
             jsduck;
Update tasks/jsduck.js

Adds support for newer version of grunt. Fixes #1.