aboutsummaryrefslogtreecommitdiffstats
path: root/lib/grunt
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-07-02 20:33:48 +0100
committerPete Bacon Darwin2013-07-02 20:58:37 +0100
commit6e1b64176f91ef6049cd03dc666554b7e04a9000 (patch)
treee72e2dcb3e40bd66fa580690f18cf41cfdc16f56 /lib/grunt
parent726e0c246bfbece82fcf606493e64b97d3e6e711 (diff)
downloadangular.js-6e1b64176f91ef6049cd03dc666554b7e04a9000.tar.bz2
chore(grunt-utils): fix java classpath on Windows
Diffstat (limited to 'lib/grunt')
-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 ' +