Commits

Kazunori Ninomiya  committed f72c28b

expand bug fix.

  • Participants
  • Parent commits 798bcd0

Comments (0)

Files changed (1)

File tasks/ect.js

   {
     var re, length
       , src  = file.src
-      , orig = file.orig
+      , orig = _.clone(file.orig)
       , root = options.root
       ;
 
 
       case 'string':
         if (typeof file.cwd === 'undefined') {
-          file.cwd = root;
-          src = grunt.file.expandMapping(orig.src, null, {
-            cwd: file.cwd,
-            flatten: file.flatten,
-            ext: file.ext,
-          }).map(function(v) {
-            return v.src[0];
+          orig.cwd = root;
+          src = grunt.task.normalizeMultiTaskFiles(orig)[0].src;
+          src = src.map(function(v) {
+            return !grunt.file.doesPathContain(root, v) ?
+              path.join(root, path.sep, v) : v;
           });
         }
         /* falls through */