From 6e1b64176f91ef6049cd03dc666554b7e04a9000 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Tue, 2 Jul 2013 20:33:48 +0100 Subject: chore(grunt-utils): fix java classpath on Windows --- lib/grunt/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index 09281b8a..23211039 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -131,6 +131,7 @@ module.exports = { min: function(file, done) { + var classPathSep = (process.platform === "win32") ? ';' : ':'; var minFile = file.replace(/\.js$/, '.min.js'); var mapFile = minFile + '.map'; var mapFileName = mapFile.match(/[^\/]+$/)[0]; @@ -138,8 +139,8 @@ module.exports = { shell.exec( 'java ' + this.java32flags() + ' ' + - '-cp ./components/closure-compiler/compiler.jar' + - ':./components/ng-closure-runner/ngcompiler.jar ' + + '-classpath ./components/closure-compiler/compiler.jar' + classPathSep + + './components/ng-closure-runner/ngcompiler.jar ' + 'org.angularjs.closurerunner.NgClosureRunner ' + '--compilation_level SIMPLE_OPTIMIZATIONS ' + '--language_in ECMASCRIPT5_STRICT ' + -- cgit v1.2.3