You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/07/08 15:19:29 UTC
[cordova-windows] branch master updated: fix: fail on no build
config / msbuild to build (#351)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git
The following commit(s) were added to refs/heads/master by this push:
new 95d0487 fix: fail on no build config / msbuild to build (#351)
95d0487 is described below
commit 95d0487faab0c61de438a1bf51ac75ea5f1d2ce8
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Mon Jul 8 17:19:24 2019 +0200
fix: fail on no build config / msbuild to build (#351)
---
template/cordova/lib/build.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/template/cordova/lib/build.js b/template/cordova/lib/build.js
index 22f2330..eccb5c8 100644
--- a/template/cordova/lib/build.js
+++ b/template/cordova/lib/build.js
@@ -333,6 +333,10 @@ function buildTargets (config, myBuildTargets, msbuild) {
var hasAnyCpu = false;
var shouldBundle = !!config.bundle;
+ if (myBuildTargets.length === 0) {
+ throw new CordovaError('No build configuration (pairs of project to build and target architecture) to build');
+ }
+
// collect all build configurations (pairs of project to build and target architecture)
myBuildTargets.forEach(function (buildTarget) {
config.buildArchs.forEach(function (buildArch) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org