cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [28/32] git commit: CB-4984 Don't create on CordovaActivity name
Date Mon, 03 Feb 2014 20:26:29 GMT
CB-4984 Don't create on CordovaActivity name


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/18eff35d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/18eff35d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/18eff35d

Branch: refs/heads/3.4.x
Commit: 18eff35d7c88470cb73fa020ee01aae0851ad394
Parents: a3d4b90
Author: Bas Bosman <sbg.bosman@mindef.nl>
Authored: Sun Jan 26 23:49:02 2014 +0100
Committer: Archana Naik <naika@lab126.com>
Committed: Mon Feb 3 11:09:46 2014 -0800

----------------------------------------------------------------------
 bin/lib/create.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/18eff35d/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index f4d5da2..2314c6e 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -138,6 +138,10 @@ exports.createProject = function(project_path, package_name, project_name,
proje
         return Q.reject('Package name must look like: com.company.Name');
     }
 
+    if (project_name === 'CordovaActivity') {
+        return Q.reject('Project name cannot be CordovaActivity');
+    }
+
     // Check that requirements are met and proper targets are installed
     return check_reqs.run()
     .then(function() {


Mime
View raw message