Macadamian/titanium_mobile — pull request #70 by dlifshitz-maca (2012-06-04 21:09:03+00:00)
Title: TIMOB-8920: Blackberry: Add support for building/running on device

Reviewers: David C, JP

[Issues Fixed]
TIMOB-8920: Blackberry: Add support for building/running on device

[Changes]
blackberryndk.py
- function package
- add debugToken and use it
- function __runUnitTests
- fix parameter

builder.py
- function run
- add debugToken and use it
- function __main__
- add --debug_token argument and output the usage if not there for --type device
- centralize arg decoding

[Tests]
Test 1: Build and deploy to device
1) Deploy debug token on device
2) Create a project using project.py
3) Run the following command:
builder.py run -t device --ip_address= -p -d -n --debug_token
4) Verify the app gets built and deployed on the device