Macadamian/titanium_mobile — pull request #96 by dlifshitz-maca (2012-07-09 17:24:40+00:00)
Title: TIMOB-9874: BlackBerry: implement require()

Reviewers: Alex, Harut

```
[Issues Fixed]
TIMOB-9874: BlackBerry: implement require()

[Changes]
NativeLoggerWorker.cpp
- add newline to message first so the stream doesn't split it up

TiRootObject.cpp
- function executeScript
- use variables for the bootstrap and app filenames
- pass the filenames to the calls to Compile()
- add the javascript filename and line number to the log message
- implement function _require

TiTitaniumObject.cpp
- function _include
- add the javascript filename and line number to the log message

[Tests]
Test 1: Build and run an app (using .js files from Jira)
1) Put the .js files in the Resources dir so they will get packaged
2) Build, package, and run the app
3) Verify the correct info is shown in the app
4) Close the app, get the log, and verify the "module being loaded!" message is only shown once

Test 2: Crash the app
1) Put an undeclared variable in app.js, a file being included, and a file being required
2) Run the app, verify it crashes, get the log, and verify the location of the problem is shown
3) Remove the offending variable
4) Repeat Steps 2-3 until all offending variables are gone and the app runs successfully
```