Commit ae020b53 authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Добавлено чтение пути к closure-compiler из переменной среды.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65037 954022d7-b5bf-4e40-9824-e11837661b57
parent 1a05adc3
module.exports = function(grunt) {
var revision="unknown", defaultConfig, packageFile, toolsConfig, toolsFile;
var path = require('path');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
......@@ -194,6 +196,9 @@ module.exports = function(grunt) {
var map_file_path = packageFile['compile']['sdk']['dst'] + '.map';
var map_record_file_path = map_file_path + '.tmp';
var concat_res = {};
var closureHome = (undefined !== process.env['CLOSURE_HOME'])? process.env['CLOSURE_HOME'] : "" ;
var compilerFile = path.join(closureHome, toolsFile['closure_compiler']);
grunt.log.ok('compilerFile = %s'.green, compilerFile);
concat_res[packageFile['compile']['sdk']['dst']] = [
packageFile['compile']['sdk']['dst'],
packageFile['compile']['defines']['dst'],
......@@ -201,7 +206,7 @@ module.exports = function(grunt) {
grunt.initConfig({
closureCompiler: {
options: {
compilerFile: toolsFile['closure_compiler'],
compilerFile: compilerFile,
javaFlags: ['-Xms2048m']
},
sdk: {
......
{
"closure_compiler": "/home/ubuntu/compiler.jar",
"closure_compiler": "compiler.jar",
"menu_path": "../../../menu/sdk"
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment