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 16:50:58 UTC

[cordova-windows] branch janpio-fail_on_no_msbuild2 created (now 5d403ba)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a change to branch janpio-fail_on_no_msbuild2
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git.


      at 5d403ba  fix: fail on no build config / msbuild to build

This branch includes the following new commits:

     new 5d403ba  fix: fail on no build config / msbuild to build

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-windows] 01/01: fix: fail on no build config / msbuild to build

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-fail_on_no_msbuild2
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git

commit 5d403ba8536125fb1ed3f7e485abde67dff7b02d
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