You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by na...@apache.org on 2014/02/03 21:26:29 UTC

[28/32] git commit: CB-4984 Don't create on CordovaActivity name

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 <sb...@mindef.nl>
Authored: Sun Jan 26 23:49:02 2014 +0100
Committer: Archana Naik <na...@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() {