cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [28/33] git commit: CB-4984 Don't create on CordovaActivity name
Date Mon, 03 Feb 2014 18:37:41 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/59501d82
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/59501d82
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/59501d82

Branch: refs/heads/master
Commit: 59501d8279420c4f24039d2709bbd6a4f7e601c3
Parents: 6185492
Author: Bas Bosman <sbg.bosman@mindef.nl>
Authored: Sun Jan 26 23:49:02 2014 +0100
Committer: Archana Naik <naika@lab126.com>
Committed: Fri Jan 31 15:16:13 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/59501d82/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