cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alsoro...@apache.org
Subject cordova-paramedic git commit: Show args when adding platform/plugin
Date Fri, 28 Apr 2017 11:30:46 GMT
Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 52bf7a1b0 -> 22f2a73b9


Show args when adding platform/plugin


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/22f2a73b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/22f2a73b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/22f2a73b

Branch: refs/heads/master
Commit: 22f2a73b949a9dbfac3b8063bf39c76d700d08fc
Parents: 52bf7a1
Author: Alexander Sorokin <alexander.sorokin@akvelon.com>
Authored: Fri Apr 28 14:30:40 2017 +0300
Committer: Alexander Sorokin <alexander.sorokin@akvelon.com>
Committed: Fri Apr 28 14:30:40 2017 +0300

----------------------------------------------------------------------
 lib/PluginsManager.js | 4 ++--
 lib/paramedic.js      | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/22f2a73b/lib/PluginsManager.js
----------------------------------------------------------------------
diff --git a/lib/PluginsManager.js b/lib/PluginsManager.js
index 541e7dd..7565a3b 100644
--- a/lib/PluginsManager.js
+++ b/lib/PluginsManager.js
@@ -76,10 +76,10 @@ PluginsManager.prototype.installSinglePlugin = function (plugin) {
         plugin = path.resolve(this.storedCWD, pluginPath) + args;
     }
 
+    plugin += util.PARAMEDIC_COMMON_CLI_ARGS + util.PARAMEDIC_PLUGIN_ADD_ARGS;
     logger.normal('cordova-paramedic: installing ' + plugin);
-    // var pluginPath = path.resolve(this.storedCWD, plugin);
 
-    var plugAddCmd = exec(this.config.getCli() + ' plugin add ' + plugin + util.PARAMEDIC_COMMON_CLI_ARGS
+ util.PARAMEDIC_PLUGIN_ADD_ARGS);
+    var plugAddCmd = exec(this.config.getCli() + ' plugin add ' + plugin);
     if (plugAddCmd.code !== 0) {
         logger.error('Failed to install plugin : ' + plugin);
         throw new Error('Failed to install plugin : ' + plugin);

http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/22f2a73b/lib/paramedic.js
----------------------------------------------------------------------
diff --git a/lib/paramedic.js b/lib/paramedic.js
index 7792bf4..603a0e1 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -180,7 +180,7 @@ ParamedicRunner.prototype.installPlatform = function () {
     var self = this;
     var platform = this.config.getPlatform();
     var platformId = this.config.getPlatformId();
-    logger.info('cordova-paramedic: adding platform ' + platform);
+    logger.info('cordova-paramedic: adding platform ' + platform + "(" + util.PARAMEDIC_COMMON_CLI_ARGS
+ util.PARAMEDIC_PLATFORM_ADD_ARGS + ")");
 
     return execPromise(this.config.getCli() + ' platform add ' + platform + util.PARAMEDIC_COMMON_CLI_ARGS
+ util.PARAMEDIC_PLATFORM_ADD_ARGS)
     .then(function () {
@@ -202,7 +202,6 @@ ParamedicRunner.prototype.installPlatform = function () {
             } catch (err) {
                 logger.warn('cordova-paramedic: something went wrong while patching Android
platform:' + err.message);
             }
-            
         }
     });
 };


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


Mime
View raw message