mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(grunt-utils): fix java classpath on Windows
This commit is contained in:
parent
726e0c246b
commit
6e1b64176f
1 changed files with 3 additions and 2 deletions
|
|
@ -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 ' +
|
||||
|
|
|
|||
Loading…
Reference in a new issue