mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Fail fast in create script if package name is not com.foo.bar.
This commit is contained in:
parent
39d32bcb5b
commit
f4a0f55b13
@ -64,6 +64,11 @@ module.exports.run = function(project_path, package_name, project_name, project_
|
||||
process.exit(2);
|
||||
}
|
||||
|
||||
if (!/[a-zA-Z0-9_]+\.[a-zA-Z0-9_](.[a-zA-Z0-9_])*/.test(package_name)) {
|
||||
console.error('Package name must look like: com.company.Name');
|
||||
process.exit(2);
|
||||
}
|
||||
|
||||
// Check that requirements are met and proper targets are installed
|
||||
if(!check_reqs.run()) {
|
||||
console.error('Please make sure you meeet the software requirements in order to build an android cordova project');
|
||||
|
Loading…
Reference in New Issue
Block a user