chore(grunt-utils): fix java classpath on Windows

This commit is contained in:
Pete Bacon Darwin 2013-07-02 20:33:48 +01:00
parent 726e0c246b
commit 6e1b64176f

View file

@ -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 ' +