tasks/pkgbuild.js
function abs_path(file, cwd) {
        if(!file || file.length === 0) {
            return null;
        }
                          
        function get_path(p) {
            var dir = grunt.file.isPathAbsolute(p) ? "" : (cwd || ".");
            return path.join(dir, p);
        }
                          
        if(_.isArray(file)) {
            return _.map(file, function(p) {
                return get_path(p);
            });
        } else {
            return get_path(file);
        }
    }
function abs_path(file, cwd) {
        if(!file || file.length === 0) {
            return null;
        }
                          
        function get_path(p) {
            var dir = grunt.file.isPathAbsolute(p) ? "" : (cwd || ".");
            return path.join(dir, p);
        }
                          
        if(_.isArray(file)) {
            return _.map(file, function(p) {
                return get_path(p);
            });
        } else {
            return get_path(file);
        }
    }
function abs_path ( file , cwd ) { if ( ! file || file . length === 0 ) { return null ; } function get_path ( p ) { var dir = grunt . file . isPathAbsolute ( p ) ? "" : ( cwd || "." ) ; return path . join ( dir , p ) ; } if ( _ . isArray ( file ) ) { return _ . map ( file , function ( p ) { return get_path ( p ) ; } ) ; } else { return get_path ( file ) ; } }
get absolute path
get absolute path