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/05 15:41:24 UTC
[cordova-windows] 01/01: fix: fail on no build config / msbuild to
build
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-fail_on_no_msbuild
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git
commit 2e639e6e0f96daf59f593792b8f725ab2aa83b64
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Fri Jul 5 17:40:47 2019 +0200
fix: fail on no build config / msbuild to build
---
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 d172736..71df946 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