mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
Remove extra console message
This commit is contained in:
parent
096e1e3caa
commit
505db38232
3
bin/templates/cordova/lib/build.js
vendored
3
bin/templates/cordova/lib/build.js
vendored
@ -470,11 +470,10 @@ function parseOpts(options, resolvedTarget) {
|
|||||||
// If some values are not specified as command line arguments - use build config to supplement them.
|
// If some values are not specified as command line arguments - use build config to supplement them.
|
||||||
// Command line arguemnts have precedence over build config.
|
// Command line arguemnts have precedence over build config.
|
||||||
if (buildConfig) {
|
if (buildConfig) {
|
||||||
console.log(path.resolve(buildConfig));
|
|
||||||
if (!fs.existsSync(buildConfig)) {
|
if (!fs.existsSync(buildConfig)) {
|
||||||
throw new Error('Specified build config file does not exist: ' + buildConfig);
|
throw new Error('Specified build config file does not exist: ' + buildConfig);
|
||||||
}
|
}
|
||||||
console.log('Reading build config file: '+ buildConfig);
|
console.log('Reading build config file: '+ path.resolve(buildConfig));
|
||||||
var config = JSON.parse(fs.readFileSync(buildConfig, 'utf8'));
|
var config = JSON.parse(fs.readFileSync(buildConfig, 'utf8'));
|
||||||
if (config.android && config.android[ret.buildType]) {
|
if (config.android && config.android[ret.buildType]) {
|
||||||
var androidInfo = config.android[ret.buildType];
|
var androidInfo = config.android[ret.buildType];
|
||||||
|
Loading…
Reference in New Issue
Block a user