Skip to content

Commit

Permalink
Merge pull request #5719 from cb1kenobi/timob-17008_3_3_X
Browse files Browse the repository at this point in the history
[TIMOB-17008] Fixed project command to reference the new template path.
  • Loading branch information
cb1kenobi committed May 21, 2014
2 parents f067331 + 8f7921a commit 58140ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/commands/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ exports.run = function (logger, config, cli, finished) {
// Update the tiapp.xml
tiapp['deployment-targets'] = result;

// Non-destructively copy over files from <sdk>/templates/app/<template>/
templateDir = path.join(sdkPath, 'templates', 'app', cli.argv.template);
// Non-destructively copy over files from <sdk>/templates/app/<template>/template
templateDir = path.join(sdkPath, 'templates', 'app', cli.argv.template, 'template');
if (!appc.fs.exists(templateDir)) {
logger.error(__('Unknown project template %s', cli.argv.template) + '\n');
process.exit(1);
Expand All @@ -226,7 +226,7 @@ exports.run = function (logger, config, cli, finished) {
// Non-destructively copy over files from <sdk>/<each platform>/templates/app/<template>/
for (p = 0; p < value.length; p++) {
if (value[p]) {
templateDir = path.join(sdkPath, ti.resolvePlatform(value[p]), 'templates', 'app', cli.argv.template);
templateDir = path.join(sdkPath, ti.resolvePlatform(value[p]), 'templates', 'app', cli.argv.template, 'template');
if (appc.fs.exists(templateDir)) {
n += appc.fs.nonDestructiveCopyDirSyncRecursive(templateDir, projectDir, {
logger: logger.log,
Expand Down

0 comments on commit 58140ca

Please sign in to comment.