Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12034] CLI: Building for android with '-b' -build only flag starts the daemon & waits for the device after building the app

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:21:37.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, ay-verified, cb-verified, qe-and100112, qe-cli
ReporterLokesh Choudhary
AssigneeChris Barber
Created2012-12-12T01:07:12.000+0000
Updated2013-10-29T19:31:41.000+0000

Description

Comments

  1. Lokesh Choudhary 2012-12-12

    This issue is also seen on Ubuntu 12.04 LTS.
  2. Yoshiya KANENISHI 2013-03-13

    I can't trace completely, but then, I avoid this problem by running builder.py directly. Run ~/.titanium/mobilesdk/linux/3.0.0.GA/android/builder.py build PROJECT_NAME ~/android-sdk-linux ~/work/ti/myapp com.mydomain.myappid instead of ti build -p android -b. Where is the origin of this problem in? I have no idea.
  3. Toshiro Yagi 2013-04-18

    Workaround: add two lines to ~/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.0.GA/android/cli/commands/_build.js.
       < 					if (cli.argv.target == 'emulator') {
       ---
       > 					if (cli.argv['build-only']) {
       > 							return
       > 					} else if (cli.argv.target == 'emulator') {
       
  4. Chris Barber 2013-06-11

    Android build current does not honor the --build-only flag. It should produce the same identical results as without the flag. This will be fixed for 3.2.0.
  5. Eric Wing 2013-06-13

    I was trying to work around this, but found two different bugs. I tried using dist-playstore with --skip-js-minify, but that parameter is ignored which looks like another bug. ti build --platform android --target dist-playstore --android-sdk=$ANDROID_SDK --alias=foo --keystore=foo.keystore --output-dir=dist --password=foo --skip-js-minify But I discovered that the --build-only flag seems to 'break' the Javascript compilation/minification step when combined with the dist-playstore. ti build --platform android --target dist-playstore --build-only --android-sdk=$ANDROID_SDK --alias=foo --keystore=foo.keystore --output-dir=dist --password=foo This works as a workaround for me I think, but technically is another bug.
  6. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781
  7. Samuel Dowse 2013-10-29

    Verified and working using: Mac OSX 10.9 Mavericks Ubuntu 12.04 Windows 7 CLI: 3.2.0 Using -b will result in build only and CLI will not wait for a device after building.

JSON Source