From 438a8d8b75ce4fb2656c9f2698ceb563134c22df Mon Sep 17 00:00:00 2001 From: Bas Bosman Date: Sun, 26 Jan 2014 23:49:02 +0100 Subject: [PATCH] CB-4984 Don't create on CordovaActivity name --- bin/lib/create.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/lib/create.js b/bin/lib/create.js index c4e72f6f..dbdb84f3 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -149,6 +149,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() {