Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17069] CLI: Generic Build only Flag "-b/--build-only" not working for android platform

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-06-09T18:51:53.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsCLI
Labelsmodule_cli, qe-3.3.0, qe-closed-3.3.0, qe-testadded, regression
ReporterPriya Agarwal
AssigneeChris Barber
Created2014-06-04T09:46:00.000+0000
Updated2014-06-09T19:52:29.000+0000

Description

Attachments

FileDateSize
iOSLogsWorkingFine.txt2014-06-04T10:59:56.000+000064655

Comments

  1. Chris Barber 2014-06-04

    It works for me. Do you have an Android device connected? Can you disconnect it and try again? Does this bug have anything to do with a device being connected?
  2. Priya Agarwal 2014-06-04

    No device is connected while executing this scenario. I don’t think we require any device connected in order to execute the command “ti build -p android -b true” According to the docs http://docs.appcelerator.com/titanium/3.0/#!/guide/Titanium_Command-Line_Interface_Reference -b,—build-only command when used will Only perform the build. And it is working fine for iOS.(no iOS Device was connected) ti build -p ios -b true Only build is performed and no simulator launches. Have attached logs for iOS.
  3. Chris Barber 2014-06-04

    Hmm, I still can't reproduce it. I'll bring it up in the triage meeting tomorrow. BTW, you probably don't want to pass in the true after the -b. It's a flag and implicitly is true when set.
  4. Samuel Dowse 2014-06-04

    Tested on: Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201405271647 Titanium SDK, build: 3.3.0.v20140603152512 Titanium CLI, build: 3.3.0-beta2 Alloy: 1.4.0-beta Android SDK Tools: 22.6.3 Android Build Tools: 19.1 Android Platform Tools: 19.0.2 Tried the following:
       '-b', '--build-only', '-b true' and '--build-only true' 
       
    All throw the error described in the description.
  5. Chris Barber 2014-06-06

    I was able to reproduce the bug. You must have the android.autoSelectDevice flag set to true.
  6. Chris Barber 2014-06-06

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5777 3_3_X pull request: https://github.com/appcelerator/titanium_mobile/pull/5778
  7. Tim Poulsen 2014-06-09

    With android.autoSelectDevice true, I can run ti build -p android -b true without error.
  8. Samuel Dowse 2014-06-09

    Verified fixed on: Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201406061445 Titanium SDK, build: 3.3.0.v20140609115713 Titanium CLI, build: 3.3.0-beta3 Alloy: 1.4.0-beta2 Used the following:
     '-b', '--build-only', '-b true' and '--build-only true' 
    Project built successfully each time and did not build to a device or emulator. Closing.

JSON Source