Merge pull request #16 from alexandergalstyan/newBranch

tiapp.xml properties retrieval
Merge pull request #17 from alexandergalstyan/newBranch1

Adding temporary BB files to contain after project creation
Initial modifications to SConstruct to add blackberry

CHANGELOG
- Added blackberry target to the SConstruct file
- Removed unused variables

Note: as git doesn't seem to track empty dirs, the script will complain
that blackberry dir doesn't exist until it's created

TESTS
- Verified that the mobile sdk still builds correctly for Android
- Verified that "scons blackberry=1" Prints the Building for Blackberry
  message and packages and returns
- Verified that scons without params builds both android and blackberry
  (the full clause)
Found an issue, when the blackberry directory doesn't exist it caused
the script to exit skipping the packaging step.

Changelog:
- Catch the exception and log it to stdout

Test:
- Verified doing a full build still packages the android mobile sdk when
  blackberry folder doesn't exist
Initial modifications of titanium.py script to add blackberry support
ver.2

CHANGELOG
- Added blackberry-oriented stub functionality to create project/module
- Added functionality to detect blackberry platform
- Added functionality create project/module for blackberry platform
- 'blackberry_sdk' changed to 'blackberry_ndk'

Note. This functionality will not yet allow to create project for
      blackberry. Ongoing builder.py (ond some other, to be figured out)
      script modifications will already make that possible.

TESTS
- Run the following command 'titanium run --platform=android --dir='. Make sure command successfully run the created project
- Run the following command if applicable 'titanium run --platform=iphone
  --dir='. Make sure command successfully run the created project
Add blackberry support in Packager used by scons

This is the last step of modifying the scons scripts to support blackberry initially. It takes care of zipping the blackberry part of the mobile sdk for distribution.

CHANGELOG
- fixed error in previous commit, needed a string rather than an id
- Added blackberry param to the Packager interface
- added zip_blackberry based on zip_mobileweb

TESTS
- Verified with a test file in the blackberry dir that is gets included in the resulting zip file
Create blackberry project Part 1

Initial changes to support creating titanium projects for blackberry.  I needed to switch the args parsing to use argparse to make it easier to maintain and add new options when necessary

CHANGELOG
- replaced the command line parsing with an argparse based one
- added --android_sdk option to hopefully replace the optional last positional parameter in the future
- create the blackberry resources folder

TESTS
- Installed the modified project.py file to the mobile_sdk
- created a new project for android and mobileweb using Studio
- Verified that the projects still compile and run normally

Didn't test for iPhone as i don't have the setup, will ask someone with setup to give it a run.
Initial modifications of titanium.py script to add blackberry support

ver.3

CHANGELOG
- Added blackberry platform for docgen command

TEST
N/A
Initial modifications to builder.py script ver.3

CHANGELOG

- Move tilogger.py script from support/android to support common
- Modify scripts using tilogger: support/android/builder.py, apidoc\docgen.py,
  apidoc\generators\html_generator.py,
  apidoc\generators\jsca_generator.py, apidoc\generators\json_generator.py
- Modify help usage

TESTS
- Run titanium  run --platform=android --dir=<project>. Make sure nothing
  breaks the existing logics within tilogger moving.
- Run builder withour params. Make sure help usage displayed.
- Run builder with commands 'run' or 'build'. Make sure appropriate usage
  displayed.
- Run the following command 'builder.py run <project_dir> <ndk_dir>',
    which will build and launch the application on simulator.

PREREQ:
- Needs to create project using QNX IDE. For now it is hardcoded to  "HelloWorldDisplay". So need to create project with that name.
-Run the BB Playbook simulator using for example VWWare. The ip address also hardcoded for now, so need to verify that also.
Fixup, removed a left over debug print
Initial modifications to builder.py script ver.4

CHANGELOG
- Specified --type, --path, --dir as well as -t, -d, -p for build
  arguments.

TESTS
- Run the following command 'builder.py run --type=simulator
  --dir=<project_dir> --path=<ndk_path>', which will build and launch the application on simulator.
- Run the command below without any of components. Make sure usage message
  displayed.

PREREQ:
- Needs to create project using QNX IDE. For now it is hardcoded to
  "HelloWorldDisplay". So need to create project with that name.
- Run the BB Playbook simulator using for example VWWare. The ip address also ha  rdcoded for now, so need to verify that also.
Initial modifications to builder.py script ver.5

CHANGELOG

- Minor issues fixed
- Subparsers changed to ordinary arguments

TESTS
- Run builder withour params. Make sure help usage displayed.
- Run builder with commands 'run' or 'build'. Make sure appropriate usage
  displayed.
- Run the following command 'builder.py run -t/--type simulator
  -p/--project_path <project_dir> -d/--ndk_path <ndk_dir>', which will build and  launch the application on simulator.

PREREQ:
- Needs to create project using QNX IDE. For now it is hardcoded to  "HelloWorldDisplay". So need to create project with that name.
  - Run the BB Playbook simulator using for example VWWare. The ip address also hardcoded for now, so need to verify that also.
Added V8 static library built for QNX

CHANGE LOG
- added .h and .a files

TEST CASES
- n/a
Create blackberry project Part 2

CHANGELOG
- added blackberry.py for project creation
- uncomment call to blackberry.py
- Added temporary ndk validation to avoid cryptic subprocess error.
- Added default image resources for blackberry,
  - NOTE: these are from android or iOS and will need to be replaced with correct size ones, and then the proper size will need to be documented for appcelerator to create proper assets.

TESTS
- built the mobile sdk with "scons blackberry=1 build_jsca=0"
- Extracted the packaged files to the install dir
- Ran the project.py script from its installation dir "./project.py dummy5 com.macadamian.dummy5 ~/src/Titanium\ Studio\ Workspace blackberry --blackberry_ndk ndkDir"
    - Verified that the basic project structure is created: Resources folder is created with the helloworld app.js and images and blackberry subfolder contains default icon and splashscreen images.  The build/blackberry folder is also created adn empty.
- Verified calling this with other platforms as well as the blackberry one
- Verified that omitting the --blackberry_ndk param gives out "blackberry_ndk needs to be specified to create project for the blackberry platform" and that the error code of the run is 1 (error)

fixup
Added "tibb"
Initial modifications to builder.py script ver.6

CHANGELOG

- Minor issues fixed
- Reverted to log = None for apidoc scripts

TESTS
- Run builder withour params. Make sure help usage displayed.
- Run builder with commands 'run' or 'build'. Make sure appropriate usage
  displayed.
- Run the following command 'builder.py run -t/--type simulator
  -p/--project_path <project_dir> -d/--ndk_path <ndk_dir>', which will
  build and  launch the application on simulator.

PREREQ:
- Needs to create project using QNX IDE. For now it is hardcoded to
  "HelloWorldDisplay". So need to create project with that name.
- Run the BB Playbook simulator using for example VWWare. The ip
  address also hardcoded for now, so need to verify that also.
Initial modifications to builder.py script ver.7

CHANGELOG

- Removed unnecessary path appending

TESTS
- Run builder withour params. Make sure help usage displayed.
- Run builder with commands 'run' or 'build'. Make sure appropriate usage
  displayed.
  - Run the following command 'builder.py run -t/--type simulator
    -p/--project_path <project_dir> -d/--ndk_path <ndk_dir>', which will
    build and  launch the application on simulator.

    PREREQ:
    - Needs to create project using QNX IDE. For now it is hardcoded to
      "HelloWorldDisplay". So need to create project with that name.
        - Run the BB Playbook simulator using for example VWWare. The ip
	  address also hardcoded for now, so need to verify that also.
Added tibb source files
Created a native QNX application for testing Titanium runtime
Resolving code review comment: change .cmd to .exe extension for git under windows