Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-16458] Fixed a regression introduced in 3.2.0 by moving the valid... #5553

Merged
merged 1 commit into from
Mar 28, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions cli/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ exports.config = function (logger, config, cli) {
// make sure the tiapp.xml is sane
ti.validateTiappXml(logger, config, tiapp);

// check that the Titanium SDK version is correct
if (!ti.validateCorrectSDK(logger, config, cli, 'build')) {
throw new cli.GracefulShutdown;
}

return projectDir;
},
desc: __('the directory containing the project'),
Expand Down Expand Up @@ -172,6 +167,11 @@ exports.validate = function (logger, config, cli) {
// TODO: set the type to 'app' for now, but we'll need to determine if the project is an app or a module
cli.argv.type = 'app';

// check that the Titanium SDK version is correct
if (!ti.validateCorrectSDK(logger, config, cli, 'build')) {
return false;
}

ti.validatePlatform(logger, cli, 'platform');

// since we need validate() to be async, we return a function in which the cli
Expand Down