diff options
| author | Pete Bacon Darwin | 2013-07-02 20:33:48 +0100 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-07-02 20:58:37 +0100 | 
| commit | 6e1b64176f91ef6049cd03dc666554b7e04a9000 (patch) | |
| tree | e72e2dcb3e40bd66fa580690f18cf41cfdc16f56 /lib/grunt/utils.js | |
| parent | 726e0c246bfbece82fcf606493e64b97d3e6e711 (diff) | |
| download | angular.js-6e1b64176f91ef6049cd03dc666554b7e04a9000.tar.bz2 | |
chore(grunt-utils): fix java classpath on Windows
Diffstat (limited to 'lib/grunt/utils.js')
| -rw-r--r-- | lib/grunt/utils.js | 5 | 
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 ' + | 
