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 2018/02/15 14:45:54 UTC
[cordova-windows] 02/26: move method
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-msbuild_cleanup
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git
commit d1052f6d13b8271cd700e6e70d18a53f4183d19e
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Wed Feb 14 19:09:40 2018 +0100
move method
---
template/cordova/lib/MSBuildTools.js | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/template/cordova/lib/MSBuildTools.js b/template/cordova/lib/MSBuildTools.js
index cfbf4e0..0444ba3 100644
--- a/template/cordova/lib/MSBuildTools.js
+++ b/template/cordova/lib/MSBuildTools.js
@@ -85,17 +85,6 @@ module.exports.findAvailableVersion = function () {
});
};
-function findAllAvailableVersionsFallBack () {
- var versions = ['15.0', '14.0', '12.0', '4.0'];
- events.emit('verbose', 'Searching for available MSBuild versions...');
-
- return Q.all(versions.map(checkMSBuildVersion)).then(function (unprocessedResults) {
- return unprocessedResults.filter(function (item) {
- return !!item;
- });
- });
-}
-
// build.js -> run()
// check_reqs.js -> checkMSBuild()
module.exports.findAllAvailableVersions = function () {
@@ -113,6 +102,17 @@ module.exports.findAllAvailableVersions = function () {
return findAllAvailableVersionsFallBack();
};
+function findAllAvailableVersionsFallBack () {
+ var versions = ['15.0', '14.0', '12.0', '4.0'];
+ events.emit('verbose', 'Searching for available MSBuild versions...');
+
+ return Q.all(versions.map(checkMSBuildVersion)).then(function (unprocessedResults) {
+ return unprocessedResults.filter(function (item) {
+ return !!item;
+ });
+ });
+}
+
/**
* Gets MSBuildTools instance for user-specified location
*
--
To stop receiving notification emails like this one, please contact
janpio@apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org