cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [1/8] js commit: if no --platformVersion, set it to N/A instead of failing
Date Mon, 18 May 2015 23:20:59 GMT
Repository: cordova-js
Updated Branches:
  refs/heads/master f811f2c89 -> 4a250651c


if no --platformVersion, set it to N/A instead of failing


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

Branch: refs/heads/master
Commit: fcef6f27470518421deeab9f8e82d4313d2d199a
Parents: 9f78456
Author: Steve Gill <stevengill97@gmail.com>
Authored: Mon May 11 17:10:38 2015 -0700
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Mon May 18 02:05:20 2015 -0700

----------------------------------------------------------------------
 tasks/compile.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/fcef6f27/tasks/compile.js
----------------------------------------------------------------------
diff --git a/tasks/compile.js b/tasks/compile.js
index 849e909..f9a1b51 100644
--- a/tasks/compile.js
+++ b/tasks/compile.js
@@ -35,9 +35,9 @@ module.exports = function(grunt) {
             }
         });
         if(!platformVersion){
-            console.log('please add a platform version flag and value');
-            console.log('ex: grunt compile --platformVersion=3.6.0');
-            throw new Error("platformVersion is required!");
+            //console.log('please add a platform version flag and value');
+            //console.log('ex: grunt compile --platformVersion=3.6.0');
+            platformVersion="N/A";
         }
 
         generate(platformName, useWindowsLineEndings, platformVersion, done);


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


Mime
View raw message