mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 17:10:15 +08:00
Emit log event instead of logging directly
This commit is contained in:
parent
472ab626d6
commit
2c3db19310
@ -24,6 +24,7 @@ var path = require('path');
|
|||||||
var shell = require('shelljs');
|
var shell = require('shelljs');
|
||||||
var superspawn = require('cordova-common').superspawn;
|
var superspawn = require('cordova-common').superspawn;
|
||||||
var CordovaError = require('cordova-common').CordovaError;
|
var CordovaError = require('cordova-common').CordovaError;
|
||||||
|
var events = require('cordova-common').events;
|
||||||
var check_reqs = require('../check_reqs');
|
var check_reqs = require('../check_reqs');
|
||||||
|
|
||||||
var GenericBuilder = require('./GenericBuilder');
|
var GenericBuilder = require('./GenericBuilder');
|
||||||
@ -178,7 +179,7 @@ GradleBuilder.prototype.prepBuildFiles = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
subProjects.forEach(function (p) {
|
subProjects.forEach(function (p) {
|
||||||
console.log('Subproject Path: ' + p);
|
events.emit('log', 'Subproject Path: ' + p);
|
||||||
var libName = p.replace(/[/\\]/g, ':').replace(name + '-', '');
|
var libName = p.replace(/[/\\]/g, ':').replace(name + '-', '');
|
||||||
depsList += ' implementation(project(path: "' + libName + '"))';
|
depsList += ' implementation(project(path: "' + libName + '"))';
|
||||||
insertExclude(p);
|
insertExclude(p);
|
||||||
|
@ -23,6 +23,7 @@ var util = require('util');
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var shell = require('shelljs');
|
var shell = require('shelljs');
|
||||||
var spawn = require('cordova-common').superspawn.spawn;
|
var spawn = require('cordova-common').superspawn.spawn;
|
||||||
|
var events = require('cordova-common').events;
|
||||||
var CordovaError = require('cordova-common').CordovaError;
|
var CordovaError = require('cordova-common').CordovaError;
|
||||||
var check_reqs = require('../check_reqs');
|
var check_reqs = require('../check_reqs');
|
||||||
|
|
||||||
@ -167,7 +168,7 @@ StudioBuilder.prototype.prepBuildFiles = function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
subProjects.forEach(function (p) {
|
subProjects.forEach(function (p) {
|
||||||
console.log('Subproject Path: ' + p);
|
events.emit('log', 'Subproject Path: ' + p);
|
||||||
var libName = p.replace(/[/\\]/g, ':').replace(name + '-', '');
|
var libName = p.replace(/[/\\]/g, ':').replace(name + '-', '');
|
||||||
if (libName !== 'app') {
|
if (libName !== 'app') {
|
||||||
depsList += ' implementation(project(path: ":' + libName + '"))';
|
depsList += ' implementation(project(path: ":' + libName + '"))';
|
||||||
|
Loading…
Reference in New Issue
Block a user