diff --git a/tasks/closure-compiler.js b/tasks/closure-compiler.js index 17bc38e..2023f54 100644 --- a/tasks/closure-compiler.js +++ b/tasks/closure-compiler.js @@ -32,8 +32,12 @@ module.exports = function(grunt) { '\n'); return false; } + + if(closurePath.indexOf('.jar')-closurePath.length!==-4) { + closurePath += '/build/compiler.jar'; + } - var command = 'java -jar "' + closurePath + '/build/compiler.jar"'; + var command = 'java -jar "' + closurePath + '"'; data.cwd = data.cwd || './';