Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18133

CLI: Build - Cannot build a project from CLI if you specify the Titanium project directory

    Details

      Description

      Details: Cannot build a project from CLI if you specify the Titanium project using -d flag.

      Note: This is a regression as this does not occur with GA stack.

      Steps to reproduce:
      1. Create a Titanium project from CLI
      2. Use the following CLI command: ti build -p ios -b -d <TI_PROJ>

      Actual: You will get a longjohn error:

      $ ti build -p ios -b -d praveen/
      Wed Dec 03 2014 17:09:54 GMT-0800 (PST)
       
      Build Environment 
         Host OS         = OS X 14.0.0, x64
         Target platform = undefined
         CLI version     = 3.4.1
         SDK version     = 3.5.0.v20141203160911
         SDK path        = /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911
         Node version    = v0.10.30
         Command         = titanium --sdk 3.5.0.v20141203160911 build -p ios -b -d praveen/
       
       
       
      /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
              throw e;
                    ^
      TypeError: Arguments to path.join must be strings
          at path.js:360:15
          at Array.filter (native)
          at exports.join (path.js:358:36)
          at patchLogger (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/cli/commands/build.js:271:19)
          at conf.options.appc.util.mix.project-dir.callback (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/cli/commands/build.js:112:9)
          at Context.<anonymous> (/usr/local/lib/node_modules/titanium/lib/context.js:597:31)
          at Array.forEach (native)
          at Context.setArg (/usr/local/lib/node_modules/titanium/lib/context.js:576:35)
          at Context.<anonymous> (/usr/local/lib/node_modules/titanium/lib/context.js:675:9)
          at Context.parse (/usr/local/lib/node_modules/titanium/lib/context.js:766:6)
      ---------------------------------------------
          at exports.execFile (child_process.js:702:9)
          at exports.exec (child_process.js:589:18)
          at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/lib/environ.js:251:3
          at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:254:17
          at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:157:25
          at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:251:21
          at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/node_modules/async/lib/async.js:615:34
          at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141203160911/node_modules/node-appc/lib/environ.js:218:7
      

      Expected: Should be able to build from CLI using the -d flag.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                wluu Wilson Luu (Inactive)
                Reviewer:
                Chris Barber
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19425
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration