aboutsummaryrefslogtreecommitdiffstats
path: root/lib/grunt/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/grunt/utils.js')
-rw-r--r--lib/grunt/utils.js5
1 files 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 ' +