You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by je...@apache.org on 2013/09/27 16:26:05 UTC

[01/50] [abbrv] webworks commit: [CB-3798] Shelljs version bump 0.1.3

Updated Branches:
  refs/heads/3.1.x 6deeefb1f -> acc99de20 (forced update)


[CB-3798] Shelljs version bump 0.1.3


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/db0aa179
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/db0aa179
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/db0aa179

Branch: refs/heads/3.1.x
Commit: db0aa1797fa31e7502e22b1c92ae1f5568b812ad
Parents: dcdbed2
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Thu Jul 18 14:44:28 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Jul 30 10:01:44 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/plugin.js | 1 -
 blackberry10/package.json                                | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/db0aa179/blackberry10/bin/templates/project/cordova/lib/plugin.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/plugin.js b/blackberry10/bin/templates/project/cordova/lib/plugin.js
index 38bbb33..e6a0b37 100644
--- a/blackberry10/bin/templates/project/cordova/lib/plugin.js
+++ b/blackberry10/bin/templates/project/cordova/lib/plugin.js
@@ -18,7 +18,6 @@
  */
 
 var path = require("path"),
-    shell = require('shelljs'),
     wrench = require("wrench"),
     fs = require('fs'),
     et   = require('elementtree'),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/db0aa179/blackberry10/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/package.json b/blackberry10/package.json
index cea710f..feae5eb 100644
--- a/blackberry10/package.json
+++ b/blackberry10/package.json
@@ -25,7 +25,7 @@
     "xml2js": "0.1.13",
     "validator": "0.4.1",
     "wrench": "1.3.9",
-    "shelljs":"0.1.2",
+    "shelljs":"0.1.3",
     "elementtree": "0.1.x",
     "plugman": "0.9.10"
   },


[49/50] [abbrv] webworks commit: switching version to 3.1.0-dev on master

Posted by je...@apache.org.
switching version to 3.1.0-dev on master


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/8cb226b2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/8cb226b2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/8cb226b2

Branch: refs/heads/3.1.x
Commit: 8cb226b2ac3fa7018538153c959685f72bebd10f
Parents: dad4d15
Author: lorinbeer <lo...@adobe.com>
Authored: Thu Sep 19 14:01:21 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Thu Sep 19 14:01:21 2013 -0700

----------------------------------------------------------------------
 blackberry10/VERSION | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/8cb226b2/blackberry10/VERSION
----------------------------------------------------------------------
diff --git a/blackberry10/VERSION b/blackberry10/VERSION
index 38f8e88..0f9d6b1 100644
--- a/blackberry10/VERSION
+++ b/blackberry10/VERSION
@@ -1 +1 @@
-dev
+3.1.0-dev


[11/50] [abbrv] webworks commit: [CB-4423] Warn when special characters are used in create script

Posted by je...@apache.org.
[CB-4423] Warn when special characters are used in create script

The native packager will replace all special characters with underscores.

Reviewed by Jeffrey Heifetz <jh...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/f102d3f0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/f102d3f0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/f102d3f0

Branch: refs/heads/3.1.x
Commit: f102d3f0d2cc24d6bcfdb9925a1610e0001418db
Parents: 2936ea0
Author: Danyi Lin <da...@blackberry.com>
Authored: Wed Aug 7 11:36:14 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Aug 9 09:39:55 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/create.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/f102d3f0/blackberry10/bin/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create.js b/blackberry10/bin/create.js
index deee89d..ebba0e2 100644
--- a/blackberry10/bin/create.js
+++ b/blackberry10/bin/create.js
@@ -86,9 +86,8 @@ function validate() {
         process.exit(2);
     }
     if (!validPackageName(app_id)) {
-        console.log("App ID must be sequence of alpha-numeric (optionally seperated by '.') characters, no longer than 50 characters");
-        help();
-        process.exit(2);
+        console.log("[warning] App ID must be sequence of alpha-numeric (optionally seperated by '.') characters, no longer than 50 characters.\n" +
+                    "special characters in '" + app_id + "' will be replaced by '_'");
     }
     if (!validBarName(bar_name)) {
         console.log("BAR filename can only contain alpha-numeric, '.', '-' and '_' characters");


[46/50] [abbrv] CB-4876 removal of playbook implementation

Posted by je...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz
deleted file mode 100644
index 76e1b0d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de_LU.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de_LU.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de_LU.js.gz
deleted file mode 100644
index f1f85b9..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de_LU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz
deleted file mode 100644
index c00d5de..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/el.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/el.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/el.js.gz
deleted file mode 100644
index 0cdbf53..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/el.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/el_CY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/el_CY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/el_CY.js.gz
deleted file mode 100644
index 5405116..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/el_CY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz
deleted file mode 100644
index 79c2841..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz
deleted file mode 100644
index 35a134a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/el_GR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/el_GR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/el_GR.js.gz
deleted file mode 100644
index 6c30687..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/el_GR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz
deleted file mode 100644
index e6f2529..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en.js.gz
deleted file mode 100644
index 146dee3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_AU.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_AU.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_AU.js.gz
deleted file mode 100644
index 8cb1758..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_AU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_BE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_BE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_BE.js.gz
deleted file mode 100644
index e327a14..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_BE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz
deleted file mode 100644
index eaa6076..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_CA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_CA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_CA.js.gz
deleted file mode 100644
index 65ce247..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_CA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_GB.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_GB.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_GB.js.gz
deleted file mode 100644
index 9e647a7..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_GB.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz
deleted file mode 100644
index 0e6d09b..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_HK.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_HK.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_HK.js.gz
deleted file mode 100644
index cda0352..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_HK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_IE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_IE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_IE.js.gz
deleted file mode 100644
index 91efb10..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_IE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz
deleted file mode 100644
index 8933e3d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_IN.js.gz
deleted file mode 100644
index db66e86..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_MT.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_MT.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_MT.js.gz
deleted file mode 100644
index ea0a479..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_MT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz
deleted file mode 100644
index 720baad..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_PH.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_PH.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_PH.js.gz
deleted file mode 100644
index 7e860ff..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_PH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_SG.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_SG.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_SG.js.gz
deleted file mode 100644
index 5ffc7ba..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_SG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_US.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_US.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_US.js.gz
deleted file mode 100644
index 5e7ed2f..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_US.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz
deleted file mode 100644
index c1221b5..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es.js.gz
deleted file mode 100644
index f233e90..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_AR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_AR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_AR.js.gz
deleted file mode 100644
index 0ca8ffa..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_AR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_BO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_BO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_BO.js.gz
deleted file mode 100644
index 1b3c306..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_BO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_CL.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_CL.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_CL.js.gz
deleted file mode 100644
index 92a324a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_CL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_CO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_CO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_CO.js.gz
deleted file mode 100644
index 362232d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_CO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_CR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_CR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_CR.js.gz
deleted file mode 100644
index 53e9e23..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_CR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_DO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_DO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_DO.js.gz
deleted file mode 100644
index 26c6fff..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_DO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_EC.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_EC.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_EC.js.gz
deleted file mode 100644
index 559db9e..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_EC.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_ES.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_ES.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_ES.js.gz
deleted file mode 100644
index 819e45d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_ES.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz
deleted file mode 100644
index 589d775..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_GT.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_GT.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_GT.js.gz
deleted file mode 100644
index e1aba86..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_GT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_HN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_HN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_HN.js.gz
deleted file mode 100644
index 43ce67a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_HN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_MX.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_MX.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_MX.js.gz
deleted file mode 100644
index 76a40da..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_MX.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_NI.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_NI.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_NI.js.gz
deleted file mode 100644
index 86302a5..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_NI.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_PA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_PA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_PA.js.gz
deleted file mode 100644
index 5f3a6d2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_PA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_PE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_PE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_PE.js.gz
deleted file mode 100644
index 44a20ec..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_PE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_PR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_PR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_PR.js.gz
deleted file mode 100644
index 3d60ce9..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_PR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_PY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_PY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_PY.js.gz
deleted file mode 100644
index c928b88..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_PY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_SV.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_SV.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_SV.js.gz
deleted file mode 100644
index 0d3800a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_SV.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_US.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_US.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_US.js.gz
deleted file mode 100644
index 2243584..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_US.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_UY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_UY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_UY.js.gz
deleted file mode 100644
index db5ce23..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_UY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/es_VE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/es_VE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/es_VE.js.gz
deleted file mode 100644
index b57e2e1..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/es_VE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/et.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/et.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/et.js.gz
deleted file mode 100644
index e685c40..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/et.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/et_EE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/et_EE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/et_EE.js.gz
deleted file mode 100644
index 8ceff8f..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/et_EE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz
deleted file mode 100644
index 9b4617d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz
deleted file mode 100644
index b45e6fe..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fi.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fi.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fi.js.gz
deleted file mode 100644
index fff6196..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fi.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz
deleted file mode 100644
index 08c6e67..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz
deleted file mode 100644
index 54e241a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr.js.gz
deleted file mode 100644
index 9912df3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz
deleted file mode 100644
index af1052d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz
deleted file mode 100644
index 35870dc..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz
deleted file mode 100644
index 3c3a9b4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz
deleted file mode 100644
index a2136b7..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz
deleted file mode 100644
index aa47e36..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz
deleted file mode 100644
index ffb547d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz
deleted file mode 100644
index c664df2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz
deleted file mode 100644
index 6b9d6b5..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ga.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ga.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ga.js.gz
deleted file mode 100644
index d7d24e7..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ga.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz
deleted file mode 100644
index 7d3c880..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/gu.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/gu.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/gu.js.gz
deleted file mode 100644
index 66416b2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/gu.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz
deleted file mode 100644
index 4d0608c..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz
deleted file mode 100644
index 6b07571..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/hr.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/hr.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/hr.js.gz
deleted file mode 100644
index cbfb8a6..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/hr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz
deleted file mode 100644
index 61c88c4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/hu.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/hu.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/hu.js.gz
deleted file mode 100644
index 61e3c8c..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/hu.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz
deleted file mode 100644
index cabecb1..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz
deleted file mode 100644
index 4d3edc6..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz
deleted file mode 100644
index 4c914db..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/in.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/in.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/in.js.gz
deleted file mode 100644
index 5005d70..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/in.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/in_ID.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/in_ID.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/in_ID.js.gz
deleted file mode 100644
index 3f982c4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/in_ID.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/is.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/is.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/is.js.gz
deleted file mode 100644
index 903b3f2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/is.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/is_IS.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/is_IS.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/is_IS.js.gz
deleted file mode 100644
index 5a7a4cf..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/is_IS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/it.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/it.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/it.js.gz
deleted file mode 100644
index f9ffdb8..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/it.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/it_CH.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/it_CH.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/it_CH.js.gz
deleted file mode 100644
index 0c474dd..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/it_CH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/it_IT.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/it_IT.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/it_IT.js.gz
deleted file mode 100644
index fc88b58..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/it_IT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz
deleted file mode 100644
index ef6be7a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/iw.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/iw.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/iw.js.gz
deleted file mode 100644
index 956a656..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/iw.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz
deleted file mode 100644
index e51daa1..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ja.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ja.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ja.js.gz
deleted file mode 100644
index 5d604b3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ja.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz
deleted file mode 100644
index ef1956f..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz
deleted file mode 100644
index 358b709..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/kk.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/kk.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/kk.js.gz
deleted file mode 100644
index d1bc61a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/kk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz
deleted file mode 100644
index 40a1732..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/kn.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/kn.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/kn.js.gz
deleted file mode 100644
index 4a668ab..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/kn.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz
deleted file mode 100644
index f813453..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ko.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ko.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ko.js.gz
deleted file mode 100644
index a3752b4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ko.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz
deleted file mode 100644
index a1d6b83..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lt.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lt.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lt.js.gz
deleted file mode 100644
index 959e78f..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lt.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz
deleted file mode 100644
index d981980..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz
deleted file mode 100644
index cf11515..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz
deleted file mode 100644
index c438a65..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lv.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lv.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lv.js.gz
deleted file mode 100644
index a768a43..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lv.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz
deleted file mode 100644
index b877f68..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz
deleted file mode 100644
index 9a4fa57..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz
deleted file mode 100644
index 757c861..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mk.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mk.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mk.js.gz
deleted file mode 100644
index b437e2b..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz
deleted file mode 100644
index 9dba801..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz
deleted file mode 100644
index f0553f1..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mr.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mr.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mr.js.gz
deleted file mode 100644
index 3f00081..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz
deleted file mode 100644
index 3f4e42f..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ms.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ms.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ms.js.gz
deleted file mode 100644
index 47b15ab..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ms.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz
deleted file mode 100644
index d4b42f4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mt.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mt.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mt.js.gz
deleted file mode 100644
index f46acdf..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mt.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz
deleted file mode 100644
index 65bd5d4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz
deleted file mode 100644
index c371c5a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz
deleted file mode 100644
index 272ed07..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz
deleted file mode 100644
index 953b051..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/nl.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/nl.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/nl.js.gz
deleted file mode 100644
index 1fc0521..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/nl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz
deleted file mode 100644
index 4ea4bd5..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz
deleted file mode 100644
index b69f55a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz
deleted file mode 100644
index f10c527..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz
deleted file mode 100644
index a36a696..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/no.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/no.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/no.js.gz
deleted file mode 100644
index 2828495..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/no.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/no_NO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/no_NO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/no_NO.js.gz
deleted file mode 100644
index f027493..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/no_NO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz
deleted file mode 100644
index 71e5b02..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/or_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/or_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/or_IN.js.gz
deleted file mode 100644
index fcec744..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/or_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pa.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pa.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pa.js.gz
deleted file mode 100644
index a818414..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pa.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz
deleted file mode 100644
index e86fc9d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pl.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pl.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pl.js.gz
deleted file mode 100644
index 92a36df..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz
deleted file mode 100644
index be45a80..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz
deleted file mode 100644
index ad0dd65..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz
deleted file mode 100644
index a0c6116..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pt.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pt.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pt.js.gz
deleted file mode 100644
index 1a02bc1..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pt.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz
deleted file mode 100644
index 89adc5e..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz
deleted file mode 100644
index 9f38787..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz
deleted file mode 100644
index 5adb184..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ro.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ro.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ro.js.gz
deleted file mode 100644
index 3e04e6e..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ro.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz
deleted file mode 100644
index 1ef6e7d..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ru.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ru.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ru.js.gz
deleted file mode 100644
index 664de07..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ru.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz
deleted file mode 100644
index 49bc219..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sh.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sh.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sh.js.gz
deleted file mode 100644
index 3db9b20..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sh.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz
deleted file mode 100644
index 0f62a17..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sk.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sk.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sk.js.gz
deleted file mode 100644
index 8636208..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz
deleted file mode 100644
index dfb2908..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz
deleted file mode 100644
index baddfcf..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz
deleted file mode 100644
index e1cc9e0..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sl.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sl.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sl.js.gz
deleted file mode 100644
index ac93f3e..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz
deleted file mode 100644
index 7286da1..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz
deleted file mode 100644
index 1eabc09..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sq.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sq.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sq.js.gz
deleted file mode 100644
index 0a5f716..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sq.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz
deleted file mode 100644
index 2969ca7..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sr.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sr.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sr.js.gz
deleted file mode 100644
index 45a8f4b..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz
deleted file mode 100644
index 89f8484..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz
deleted file mode 100644
index 9d3d758..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz
deleted file mode 100644
index d50466e..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz
deleted file mode 100644
index 66e041f..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz
deleted file mode 100644
index 9cc15d6..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz
deleted file mode 100644
index a3a9a93..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sv.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sv.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sv.js.gz
deleted file mode 100644
index eec6524..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sv.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz
deleted file mode 100644
index ec4b9a7..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz
deleted file mode 100644
index 2f860b9..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz
deleted file mode 100644
index 1bfce15..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ta.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ta.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ta.js.gz
deleted file mode 100644
index d7581ea..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ta.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz
deleted file mode 100644
index d94fe66..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/te.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/te.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/te.js.gz
deleted file mode 100644
index c69b725..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/te.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/te_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/te_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/te_IN.js.gz
deleted file mode 100644
index 2f21145..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/te_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/th.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/th.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/th.js.gz
deleted file mode 100644
index 13b44cc..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/th.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/th_TH.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/th_TH.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/th_TH.js.gz
deleted file mode 100644
index 9a44dfe..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/th_TH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz
deleted file mode 100644
index cfd9252..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/tr.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/tr.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/tr.js.gz
deleted file mode 100644
index f54579f..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/tr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz
deleted file mode 100644
index 27e9cd3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/uk.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/uk.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/uk.js.gz
deleted file mode 100644
index 246525c..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/uk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz
deleted file mode 100644
index f73c575..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/vi.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/vi.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/vi.js.gz
deleted file mode 100644
index 7a47737..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/vi.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz
deleted file mode 100644
index 9cdd564..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/zh.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/zh.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/zh.js.gz
deleted file mode 100644
index ea819e5..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/zh.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz
deleted file mode 100644
index eeddad9..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz
deleted file mode 100644
index 63130e3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz and /dev/null differ


[05/50] [abbrv] webworks commit: Fixed minor issues with paths with spaces

Posted by je...@apache.org.
Fixed minor issues with paths with spaces


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/b6becd2a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/b6becd2a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/b6becd2a

Branch: refs/heads/3.1.x
Commit: b6becd2a263bc16fb9acabd71c87052b44c08842
Parents: a80747a
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Thu Aug 1 10:04:29 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Aug 1 13:44:21 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/check_reqs | 2 +-
 blackberry10/bin/create     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6becd2a/blackberry10/bin/check_reqs
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs b/blackberry10/bin/check_reqs
index f3945b0..149cd4f 100755
--- a/blackberry10/bin/check_reqs
+++ b/blackberry10/bin/check_reqs
@@ -18,7 +18,7 @@
 #
 #!/bin/sh
 
-source $(dirname "$0")/init
+source "$(dirname "$0")/init"
 
 NODE="$CORDOVA_NODE/node"
 NPM="$CORDOVA_NODE/npm"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6becd2a/blackberry10/bin/create
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create b/blackberry10/bin/create
index d44e377..8a9cf5f 100755
--- a/blackberry10/bin/create
+++ b/blackberry10/bin/create
@@ -36,7 +36,7 @@ if [ ${?} -ne 0 ]; then
 fi
 
 #Run npm install every time (even if node_modules folder is present) to cover platform upgrade
-if [ -e $NPM_PACKAGE_JSON ]; then
+if [ -e "$NPM_PACKAGE_JSON" ]; then
     cd "$BIN_DIR"/..
     #Removed sudo usage so that node modules are not ownder by root
     "$CORDOVA_NODE/npm" install


[10/50] [abbrv] webworks commit: [CB-3798] Fixed CORDOVA_BBTOOLS env variable with spaces in path

Posted by je...@apache.org.
[CB-3798] Fixed CORDOVA_BBTOOLS env variable with spaces in path

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/2936ea0d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/2936ea0d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/2936ea0d

Branch: refs/heads/3.1.x
Commit: 2936ea0dcc9cf9bbee39d750b3807a3ca8d96e63
Parents: 19267e2
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Fri Aug 2 17:39:09 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Aug 6 14:31:31 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/lib/utils.js                                | 4 ++++
 .../bin/templates/project/cordova/lib/debugtoken-helper.js   | 4 ++--
 .../bin/templates/project/cordova/lib/native-packager.js     | 1 +
 blackberry10/bin/templates/project/cordova/lib/run           | 8 ++++----
 .../bin/templates/project/cordova/lib/signing-helper.js      | 3 ++-
 .../bin/templates/project/cordova/lib/target-utils.js        | 2 +-
 6 files changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/2936ea0d/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index 8a05ddc..4f4a500 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -166,6 +166,10 @@ _self = {
         }
     },
 
+    inQuotes : function (property) {
+        return "\"" + property + "\"";
+    },
+
     loadModule: function (path) {
         return require(path);
     },

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/2936ea0d/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
index bbdb048..206bd58 100755
--- a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
@@ -100,7 +100,7 @@ function generateDeployTokenOptions(target) {
 
 function execNativeScript(script, options, callback) {
     var cp;
-        script = path.join(process.env.CORDOVA_BBTOOLS, script);
+        script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, script));
 
     if (pkgrUtils.isWindows()) {
         script += ".bat";
@@ -244,7 +244,7 @@ self.deployToken = function (projectProperties, target, callback) {
 };
 
 self.checkDebugToken = function (pin, callback) {
-    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-nativepackager"),
+    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-nativepackager")),
         nativePackager;
 
     if (!callback || typeof callback !== "function") {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/2936ea0d/blackberry10/bin/templates/project/cordova/lib/native-packager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/native-packager.js b/blackberry10/bin/templates/project/cordova/lib/native-packager.js
index e4aa81b..98346b4 100644
--- a/blackberry10/bin/templates/project/cordova/lib/native-packager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/native-packager.js
@@ -18,6 +18,7 @@ var childProcess = require("child_process"),
     fs = require("fs"),
     path = require("path"),
     util = require("util"),
+    utils = require("./utils"),
     data2xml = require("../third_party/data2xml/data2xml"),
     wrench = require("wrench"),
     conf = require("./conf"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/2936ea0d/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index 8429db2..e47e6c6 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -72,7 +72,7 @@ function generateOptions(uninstall) {
 }
 
 function execNativeDeploy(optionsArray, callback) {
-    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy"),
+    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy")),
         nativeDeploy;
         options = optionsArray.join(" ");
 
@@ -105,13 +105,13 @@ function setTarget(callback) {
                 callback();
             } else {
                 console.error("No connected device found");
-                console.error("Devices must first be configured using platforms/blackberry/cordova/target"); 
+                console.error("Devices must first be configured using platforms/blackberry/cordova/target");
                 process.exit(1);
             }
         });
     } else if (program["emulator"]) {
         targetUtils.getTargetList("simulator", true, function (targets) {
-            if (targets && targets.length > 0) { 
+            if (targets && targets.length > 0) {
                 target = targets[0].name;
                 callback();
             } else {
@@ -150,7 +150,7 @@ function checkTarget() {
 }
 
 function uninstall() {
-    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy"),
+    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy")),
         nativeDeploy;
 
     if (pkgrUtils.isWindows()) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/2936ea0d/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
index c4074af..73b17df 100644
--- a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
@@ -18,6 +18,7 @@ var path = require('path'),
     os = require('os'),
     childProcess = require("child_process"),
     util = require("util"),
+    utils = require("./utils"),
     conf = require("./conf"),
     pkgrUtils = require("./packager-utils"),
     logger = require("./logger"),
@@ -61,7 +62,7 @@ function getDefaultPath(file) {
 }
 
 function execSigner(session, target, callback) {
-    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-signer"),
+    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-signer")),
         signer,
         params = session.getParams("blackberry-signer"),
         args = [];

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/2936ea0d/blackberry10/bin/templates/project/cordova/lib/target-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/target-utils.js b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
index b82f958..f74b4f2 100644
--- a/blackberry10/bin/templates/project/cordova/lib/target-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
@@ -62,7 +62,7 @@ _self = {
     },
 
     checkConnection: function(ip, type, callback) {
-        var script = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy');
+        var script = bb10_utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy'));
 
         exec(script + ' -test ' + ip, function(error, stdout, stderr) {
             // error code 3 corresponds to a connected device, null corresponds to connected sim


[41/50] [abbrv] webworks commit: Adding missing license headers detected by apache rat

Posted by je...@apache.org.
Adding missing license headers detected by apache rat


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/378d25b6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/378d25b6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/378d25b6

Branch: refs/heads/3.1.x
Commit: 378d25b62b56af9c037de3013e4adb8d47f62ab4
Parents: 815042d
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Thu Sep 19 11:49:30 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Thu Sep 19 12:45:22 2013 -0400

----------------------------------------------------------------------
 .../test/cordova/unit/spec/lib/bar-builder.js   | 21 ++++++++++++++++++++
 .../bin/test/cordova/unit/spec/lib/cmdline.js   | 21 ++++++++++++++++++++
 .../test/cordova/unit/spec/lib/file-manager.js  | 21 ++++++++++++++++++++
 .../cordova/unit/spec/lib/native-packager.js    | 21 ++++++++++++++++++++
 .../cordova/unit/spec/lib/packager-utils.js     | 21 ++++++++++++++++++++
 .../cordova/unit/spec/lib/packager-validator.js | 21 ++++++++++++++++++++
 .../bin/test/cordova/unit/spec/lib/session.js   | 21 ++++++++++++++++++++
 .../cordova/unit/spec/lib/signing-helper.js     | 21 ++++++++++++++++++++
 .../cordova/unit/spec/lib/test-utilities.js     | 21 ++++++++++++++++++++
 blackberry10/framework/bootstrap/index.html     | 21 ++++++++++++++++++++
 .../webkitHandlers/networkResourceRequested.js  | 21 ++++++++++++++++++++
 blackberry10/framework/test/unit/lib/webview.js | 21 ++++++++++++++++++++
 12 files changed, 252 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/bar-builder.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/bar-builder.js b/blackberry10/bin/test/cordova/unit/spec/lib/bar-builder.js
index 02440cc..f701b34 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/bar-builder.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/bar-builder.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var srcPath = __dirname + "/../../../../../templates/project/cordova/lib/",
     path = require("path"),
     wrench = require("wrench"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/cmdline.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/cmdline.js b/blackberry10/bin/test/cordova/unit/spec/lib/cmdline.js
index 03eda58..1a4c167 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/cmdline.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/cmdline.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var srcPath = __dirname + "/../../../../../templates/project/cordova/lib/",
     localize = require(srcPath + "localize"),
     cmdline = require(srcPath + "cmdline"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/file-manager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/file-manager.js b/blackberry10/bin/test/cordova/unit/spec/lib/file-manager.js
index 1b1c6ff..ae17e7b 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/file-manager.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/file-manager.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var srcPath = __dirname + "/../../../../../templates/project/cordova/lib/",
     barconf = require(srcPath + "bar-conf.js"),
     fs = require("fs"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js b/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
index c3ccdce..eb6c161 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var path = require("path"),
     util = require("util"),
     fs = require("fs"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/packager-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/packager-utils.js b/blackberry10/bin/test/cordova/unit/spec/lib/packager-utils.js
index 5acad8e..2aad1ed 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/packager-utils.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/packager-utils.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var testData = require("./test-data"),
     utils = require(testData.libPath + "/packager-utils"),
     fs = require("fs"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js b/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
index 4491b40..a2c55c8 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var srcPath = __dirname + "/../../../../../templates/project/cordova/lib/",
     testData = require("./test-data"),
     testUtilities = require("./test-utilities"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/session.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/session.js b/blackberry10/bin/test/cordova/unit/spec/lib/session.js
index 3cf3f98..8382c09 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/session.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/session.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var session = require(__dirname + "/../../../../../templates/project/cordova/lib/session"),
     localize = require(__dirname + "/../../../../../templates/project/cordova/lib/localize"),
     testUtils = require("./test-utilities"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js b/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
index d2a4ab3..db4fc7d 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var testData = require('./test-data'),
     signingHelper = require(testData.libPath + '/signing-helper'),
     localize = require(testData.libPath + '/localize'),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js b/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
index 80867a7..fd3cdd7 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var xml2js = require("xml2js");
 
 function getObjectByProperty(array, propertyName, propertyValue) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/framework/bootstrap/index.html
----------------------------------------------------------------------
diff --git a/blackberry10/framework/bootstrap/index.html b/blackberry10/framework/bootstrap/index.html
index 6e3b028..f121af0 100644
--- a/blackberry10/framework/bootstrap/index.html
+++ b/blackberry10/framework/bootstrap/index.html
@@ -1,3 +1,24 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
 <!DOCTYPE HTML>
 <html lang="en">
   <head>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/framework/test/unit/lib/webkitHandlers/networkResourceRequested.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/webkitHandlers/networkResourceRequested.js b/blackberry10/framework/test/unit/lib/webkitHandlers/networkResourceRequested.js
index efd4efe..5026a0b 100644
--- a/blackberry10/framework/test/unit/lib/webkitHandlers/networkResourceRequested.js
+++ b/blackberry10/framework/test/unit/lib/webkitHandlers/networkResourceRequested.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 describe("NetworkResourceRequested event handler", function () {
     var LIB_PATH  = "./../../../../lib/",
         networkResourceRequested = require(LIB_PATH + "webkitHandlers/networkResourceRequested"),

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/378d25b6/blackberry10/framework/test/unit/lib/webview.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/webview.js b/blackberry10/framework/test/unit/lib/webview.js
index 8a6b8e6..e637aec 100644
--- a/blackberry10/framework/test/unit/lib/webview.js
+++ b/blackberry10/framework/test/unit/lib/webview.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var path = require('path');
 
 describe("webview", function () {


[38/50] [abbrv] webworks commit: [CB-4812] Support for "default" value in the orientation preference

Posted by je...@apache.org.
[CB-4812] Support for "default" value in the orientation preference

Reviewed by Bryan Higgins <bh...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/006fcbe9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/006fcbe9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/006fcbe9

Branch: refs/heads/3.1.x
Commit: 006fcbe91d4b7923925a6b0028eb3a0fe96930a2
Parents: fbe4de9
Author: Kristoffer Flores <kf...@blackberry.com>
Authored: Fri Sep 13 14:34:30 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Sep 17 09:18:29 2013 -0400

----------------------------------------------------------------------
 .../project/cordova/lib/config-parser.js        |  4 +--
 .../test/cordova/unit/spec/lib/config-parser.js | 34 ++++++++++++++++++++
 2 files changed, 36 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/006fcbe9/blackberry10/bin/templates/project/cordova/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/config-parser.js b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
index 7746fd0..881f49b 100644
--- a/blackberry10/bin/templates/project/cordova/lib/config-parser.js
+++ b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
@@ -563,12 +563,12 @@ function processCordovaPreferences(data, widgetConfig) {
             widgetConfig.enablePopupBlocker = ((preference.popupblocker + '').toLowerCase() === 'enable') === true;
         }
 
-        // <preference name="orientation" value="portrait, landscape, north or auto" />
+        // <preference name="orientation" value="portrait, landscape, north, auto or default" />
         if (preference.orientation) {
             if (preference.orientation ===  "landscape" || preference.orientation === "portrait" || preference.orientation === "north") {
                 widgetConfig.autoOrientation = false;
                 widgetConfig.orientation = preference.orientation;
-            } else if (preference.orientation !== "auto") {
+            } else if (preference.orientation !== "auto" && preference.orientation !== "default") {
                 throw localize.translate("EXCEPTION_INVALID_ORIENTATION_MODE", preference.orientation);
             }
         }

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/006fcbe9/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
index d857072..8d9a8a5 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
@@ -1138,6 +1138,40 @@ describe("config parser", function () {
             });
         });
 
+        it("orientation remains auto when auto is specified", function () {
+            var data = testUtilities.cloneObj(testData.xml2jsConfig);
+            data['preference'] = { '@': { name: 'orientation', value: 'auto' } };
+
+            mockParsing(data);
+
+            configParser.parse(configPath, session, function (configObj) {
+                expect(configObj.autoOrientation).toEqual(true);
+            });
+        });
+
+        it("orientation remains auto when default is specified", function () {
+            var data = testUtilities.cloneObj(testData.xml2jsConfig);
+            data['preference'] = { '@': { name: 'orientation', value: 'default' } };
+
+            mockParsing(data);
+
+            configParser.parse(configPath, session, function (configObj) {
+                expect(configObj.autoOrientation).toEqual(true);
+            });
+        });
+
+        it("throws an error when preference.orientation value is invalid", function () {
+            var data = testUtilities.cloneObj(testData.xml2jsConfig);
+            data['preference'] = { '@': { name: 'orientation', value: 'invalid' } };
+
+            mockParsing(data);
+
+            expect(function () {
+                configParser.parse(configPath, session, function (configObj) {});
+            }).toThrow(localize.translate("EXCEPTION_INVALID_ORIENTATION_MODE", "invalid"));
+
+        });
+
         it("throws a warning when blackberry.app.orientation exists", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
             data['feature'] = { '@': { id: 'blackberry.app.orientation', required: true },


[27/50] [abbrv] webworks commit: Updating scripts to make init calls surrounded in quotes

Posted by je...@apache.org.
Updating scripts to make init calls surrounded in quotes

  Reviewed By: James Keshavarzi <jk...@blackberry.com>
  Tested By: Daniel Audino <da...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/9464372d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/9464372d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/9464372d

Branch: refs/heads/3.1.x
Commit: 9464372d1cb169e856cd56a01574bfc4f9f904ff
Parents: 16ef0a0
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Wed Aug 28 22:30:55 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Fri Aug 30 11:46:27 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/check_reqs                        | 5 +++--
 blackberry10/bin/create                            | 5 +++--
 blackberry10/bin/target                            | 5 +++--
 blackberry10/bin/templates/project/cordova/build   | 5 +++--
 blackberry10/bin/templates/project/cordova/clean   | 5 +++--
 blackberry10/bin/templates/project/cordova/run     | 5 +++--
 blackberry10/bin/templates/project/cordova/version | 5 +++--
 7 files changed, 21 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/check_reqs
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs b/blackberry10/bin/check_reqs
index 149cd4f..f221d63 100755
--- a/blackberry10/bin/check_reqs
+++ b/blackberry10/bin/check_reqs
@@ -18,7 +18,8 @@
 #
 #!/bin/sh
 
-source "$(dirname "$0")/init"
+BIN_DIR=$(dirname "$0")
+source "$BIN_DIR/init"
 
 NODE="$CORDOVA_NODE/node"
 NPM="$CORDOVA_NODE/npm"
@@ -50,7 +51,7 @@ elif [ ! -x "$DEBUGTOKENREQUEST" ]; then
     echo blackberry-debugtokenrequest cannot be found on the path. Aborting.
     EXIT_CODE=1
 else
-    "$NODE" "$( dirname "$0" )/check_reqs.js" "$@"
+    "$NODE" "$BIN_DIR/check_reqs.js" "$@"
     EXIT_CODE=0
 fi
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/create
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create b/blackberry10/bin/create
index 8a9cf5f..66be263 100755
--- a/blackberry10/bin/create
+++ b/blackberry10/bin/create
@@ -23,10 +23,11 @@
 #
 #!/bin/sh
 
-source $(dirname "$0")/init
+BIN_DIR=$(dirname "$0")
+
+source "$BIN_DIR/init"
 
 CURRENT_DIR=$(pwd)
-BIN_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
 NPM_PACKAGE_JSON="$BIN_DIR"/../package.json
 
 #Run check_reqs before doing anything and exit if there's an error

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/target
----------------------------------------------------------------------
diff --git a/blackberry10/bin/target b/blackberry10/bin/target
index e323cfb..1779aa2 100755
--- a/blackberry10/bin/target
+++ b/blackberry10/bin/target
@@ -1,3 +1,4 @@
 #!/bin/sh
-source $(dirname "$0")/init
-"$CORDOVA_NODE/node" "$( dirname "$0")/lib/target" "$@"
+BIN_DIR=$(dirname "$0")
+source "$BIN_DIR/init"
+"$CORDOVA_NODE/node" "$BIN_DIR/lib/target" "$@"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/build
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/build b/blackberry10/bin/templates/project/cordova/build
index b082f38..80769f7 100755
--- a/blackberry10/bin/templates/project/cordova/build
+++ b/blackberry10/bin/templates/project/cordova/build
@@ -1,6 +1,7 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
 #package app
-"$CORDOVA_NODE/node" "$(dirname "$0")/lib/build" "$@"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/build" "$@"
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/clean
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/clean b/blackberry10/bin/templates/project/cordova/clean
index 94d0aba..d1fa322 100755
--- a/blackberry10/bin/templates/project/cordova/clean
+++ b/blackberry10/bin/templates/project/cordova/clean
@@ -1,4 +1,5 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
-"$CORDOVA_NODE/node" "$(dirname "$0")/lib/clean"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/clean"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/run b/blackberry10/bin/templates/project/cordova/run
index 24e26e6..a95bdde 100755
--- a/blackberry10/bin/templates/project/cordova/run
+++ b/blackberry10/bin/templates/project/cordova/run
@@ -1,4 +1,5 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
-"$CORDOVA_NODE/node" "$( dirname "$0")/lib/run" "$@"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/run" "$@"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/version
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/version b/blackberry10/bin/templates/project/cordova/version
index 62ed952..b5deda2 100755
--- a/blackberry10/bin/templates/project/cordova/version
+++ b/blackberry10/bin/templates/project/cordova/version
@@ -1,6 +1,7 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
 # Prints cordova version number
-"$CORDOVA_NODE/node" "$(dirname "$0")/lib/version" "$@"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/version" "$@"
 


[06/50] [abbrv] webworks commit: Plugman version bump to 0.10.0

Posted by je...@apache.org.
Plugman version bump to 0.10.0


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/a80747a3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/a80747a3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/a80747a3

Branch: refs/heads/3.1.x
Commit: a80747a37f8237ec8876157079aa108350045d5e
Parents: b05381c
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Thu Aug 1 10:04:03 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Aug 1 13:44:21 2013 -0400

----------------------------------------------------------------------
 blackberry10/package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a80747a3/blackberry10/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/package.json b/blackberry10/package.json
index 751fb97..b89748e 100644
--- a/blackberry10/package.json
+++ b/blackberry10/package.json
@@ -27,7 +27,7 @@
     "wrench": "1.3.9",
     "shelljs":"0.1.3",
     "elementtree": "0.1.5",
-    "plugman": "0.9.10"
+    "plugman": "0.10.0"
   },
   "devDependencies": {
     "jake":"*",


[45/50] [abbrv] CB-4876 removal of playbook implementation

Posted by je...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz
deleted file mode 100644
index ced2c42..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz
deleted file mode 100644
index 105e4fa..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/screen/blackberry/screen-225.png
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/screen/blackberry/screen-225.png b/playbook/bin/templates/project/www/res/screen/blackberry/screen-225.png
deleted file mode 100644
index 29873e9..0000000
Binary files a/playbook/bin/templates/project/www/res/screen/blackberry/screen-225.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/spec.html
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/spec.html b/playbook/bin/templates/project/www/spec.html
deleted file mode 100644
index 71f00de..0000000
--- a/playbook/bin/templates/project/www/spec.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-     KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
--->
-<html>
-    <head>
-        <title>Jasmine Spec Runner</title>
-
-        <!-- jasmine source -->
-        <link rel="shortcut icon" type="image/png" href="spec/lib/jasmine-1.2.0/jasmine_favicon.png">
-        <link rel="stylesheet" type="text/css" href="spec/lib/jasmine-1.2.0/jasmine.css">
-        <script type="text/javascript" src="spec/lib/jasmine-1.2.0/jasmine.js"></script>
-        <script type="text/javascript" src="spec/lib/jasmine-1.2.0/jasmine-html.js"></script>
-
-        <!-- include source files here... -->
-        <script type="text/javascript" src="js/index.js"></script>
-
-        <!-- include spec files here... -->
-        <script type="text/javascript" src="spec/helper.js"></script>
-        <script type="text/javascript" src="spec/index.js"></script>
-
-        <script type="text/javascript">
-            (function() {
-                var jasmineEnv = jasmine.getEnv();
-                jasmineEnv.updateInterval = 1000;
-
-                var htmlReporter = new jasmine.HtmlReporter();
-
-                jasmineEnv.addReporter(htmlReporter);
-
-                jasmineEnv.specFilter = function(spec) {
-                    return htmlReporter.specFilter(spec);
-                };
-
-                var currentWindowOnload = window.onload;
-
-                window.onload = function() {
-                    if (currentWindowOnload) {
-                        currentWindowOnload();
-                    }
-                    execJasmine();
-                };
-
-                function execJasmine() {
-                    jasmineEnv.execute();
-                }
-            })();
-        </script>
-    </head>
-    <body>
-        <div id="stage" style="display:none;"></div>
-    </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/spec/helper.js
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/spec/helper.js b/playbook/bin/templates/project/www/spec/helper.js
deleted file mode 100644
index 929f776..0000000
--- a/playbook/bin/templates/project/www/spec/helper.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-afterEach(function() {
-    document.getElementById('stage').innerHTML = '';
-});
-
-var helper = {
-    trigger: function(obj, name) {
-        var e = document.createEvent('Event');
-        e.initEvent(name, true, true);
-        obj.dispatchEvent(e);
-    },
-    getComputedStyle: function(querySelector, property) {
-        var element = document.querySelector(querySelector);
-        return window.getComputedStyle(element).getPropertyValue(property);
-    }
-};

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/spec/index.js
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/spec/index.js b/playbook/bin/templates/project/www/spec/index.js
deleted file mode 100644
index 20f8be5..0000000
--- a/playbook/bin/templates/project/www/spec/index.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-describe('app', function() {
-    describe('initialize', function() {
-        it('should bind deviceready', function() {
-            runs(function() {
-                spyOn(app, 'onDeviceReady');
-                app.initialize();
-                helper.trigger(window.document, 'deviceready');
-            });
-
-            waitsFor(function() {
-                return (app.onDeviceReady.calls.length > 0);
-            }, 'onDeviceReady should be called once', 500);
-
-            runs(function() {
-                expect(app.onDeviceReady).toHaveBeenCalled();
-            });
-        });
-    });
-
-    describe('onDeviceReady', function() {
-        it('should report that it fired', function() {
-            spyOn(app, 'receivedEvent');
-            app.onDeviceReady();
-            expect(app.receivedEvent).toHaveBeenCalledWith('deviceready');
-        });
-    });
-
-    describe('receivedEvent', function() {
-        beforeEach(function() {
-            var el = document.getElementById('stage');
-            el.innerHTML = ['<div id="deviceready">',
-                            '    <p class="event listening">Listening</p>',
-                            '    <p class="event received">Received</p>',
-                            '</div>'].join('\n');
-        });
-
-        it('should hide the listening element', function() {
-            app.receivedEvent('deviceready');
-            var displayStyle = helper.getComputedStyle('#deviceready .listening', 'display');
-            expect(displayStyle).toEqual('none');
-        });
-
-        it('should show the received element', function() {
-            app.receivedEvent('deviceready');
-            var displayStyle = helper.getComputedStyle('#deviceready .received', 'display');
-            expect(displayStyle).toEqual('block');
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/MIT.LICENSE
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/MIT.LICENSE b/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/MIT.LICENSE
deleted file mode 100644
index 7c435ba..0000000
--- a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/MIT.LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2008-2011 Pivotal Labs
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine-html.js
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine-html.js b/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine-html.js
deleted file mode 100644
index a0b0639..0000000
--- a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine-html.js
+++ /dev/null
@@ -1,616 +0,0 @@
-jasmine.HtmlReporterHelpers = {};
-
-jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) {
-  var el = document.createElement(type);
-
-  for (var i = 2; i < arguments.length; i++) {
-    var child = arguments[i];
-
-    if (typeof child === 'string') {
-      el.appendChild(document.createTextNode(child));
-    } else {
-      if (child) {
-        el.appendChild(child);
-      }
-    }
-  }
-
-  for (var attr in attrs) {
-    if (attr == "className") {
-      el[attr] = attrs[attr];
-    } else {
-      el.setAttribute(attr, attrs[attr]);
-    }
-  }
-
-  return el;
-};
-
-jasmine.HtmlReporterHelpers.getSpecStatus = function(child) {
-  var results = child.results();
-  var status = results.passed() ? 'passed' : 'failed';
-  if (results.skipped) {
-    status = 'skipped';
-  }
-
-  return status;
-};
-
-jasmine.HtmlReporterHelpers.appendToSummary = function(child, childElement) {
-  var parentDiv = this.dom.summary;
-  var parentSuite = (typeof child.parentSuite == 'undefined') ? 'suite' : 'parentSuite';
-  var parent = child[parentSuite];
-
-  if (parent) {
-    if (typeof this.views.suites[parent.id] == 'undefined') {
-      this.views.suites[parent.id] = new jasmine.HtmlReporter.SuiteView(parent, this.dom, this.views);
-    }
-    parentDiv = this.views.suites[parent.id].element;
-  }
-
-  parentDiv.appendChild(childElement);
-};
-
-
-jasmine.HtmlReporterHelpers.addHelpers = function(ctor) {
-  for(var fn in jasmine.HtmlReporterHelpers) {
-    ctor.prototype[fn] = jasmine.HtmlReporterHelpers[fn];
-  }
-};
-
-jasmine.HtmlReporter = function(_doc) {
-  var self = this;
-  var doc = _doc || window.document;
-
-  var reporterView;
-
-  var dom = {};
-
-  // Jasmine Reporter Public Interface
-  self.logRunningSpecs = false;
-
-  self.reportRunnerStarting = function(runner) {
-    var specs = runner.specs() || [];
-
-    if (specs.length == 0) {
-      return;
-    }
-
-    createReporterDom(runner.env.versionString());
-    doc.body.appendChild(dom.reporter);
-
-    reporterView = new jasmine.HtmlReporter.ReporterView(dom);
-    reporterView.addSpecs(specs, self.specFilter);
-  };
-
-  self.reportRunnerResults = function(runner) {
-    reporterView && reporterView.complete();
-  };
-
-  self.reportSuiteResults = function(suite) {
-    reporterView.suiteComplete(suite);
-  };
-
-  self.reportSpecStarting = function(spec) {
-    if (self.logRunningSpecs) {
-      self.log('>> Jasmine Running ' + spec.suite.description + ' ' + spec.description + '...');
-    }
-  };
-
-  self.reportSpecResults = function(spec) {
-    reporterView.specComplete(spec);
-  };
-
-  self.log = function() {
-    var console = jasmine.getGlobal().console;
-    if (console && console.log) {
-      if (console.log.apply) {
-        console.log.apply(console, arguments);
-      } else {
-        console.log(arguments); // ie fix: console.log.apply doesn't exist on ie
-      }
-    }
-  };
-
-  self.specFilter = function(spec) {
-    if (!focusedSpecName()) {
-      return true;
-    }
-
-    return spec.getFullName().indexOf(focusedSpecName()) === 0;
-  };
-
-  return self;
-
-  function focusedSpecName() {
-    var specName;
-
-    (function memoizeFocusedSpec() {
-      if (specName) {
-        return;
-      }
-
-      var paramMap = [];
-      var params = doc.location.search.substring(1).split('&');
-
-      for (var i = 0; i < params.length; i++) {
-        var p = params[i].split('=');
-        paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
-      }
-
-      specName = paramMap.spec;
-    })();
-
-    return specName;
-  }
-
-  function createReporterDom(version) {
-    dom.reporter = self.createDom('div', { id: 'HTMLReporter', className: 'jasmine_reporter' },
-      dom.banner = self.createDom('div', { className: 'banner' },
-        self.createDom('span', { className: 'title' }, "Jasmine "),
-        self.createDom('span', { className: 'version' }, version)),
-
-      dom.symbolSummary = self.createDom('ul', {className: 'symbolSummary'}),
-      dom.alert = self.createDom('div', {className: 'alert'}),
-      dom.results = self.createDom('div', {className: 'results'},
-        dom.summary = self.createDom('div', { className: 'summary' }),
-        dom.details = self.createDom('div', { id: 'details' }))
-    );
-  }
-};
-jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter);jasmine.HtmlReporter.ReporterView = function(dom) {
-  this.startedAt = new Date();
-  this.runningSpecCount = 0;
-  this.completeSpecCount = 0;
-  this.passedCount = 0;
-  this.failedCount = 0;
-  this.skippedCount = 0;
-
-  this.createResultsMenu = function() {
-    this.resultsMenu = this.createDom('span', {className: 'resultsMenu bar'},
-      this.summaryMenuItem = this.createDom('a', {className: 'summaryMenuItem', href: "#"}, '0 specs'),
-      ' | ',
-      this.detailsMenuItem = this.createDom('a', {className: 'detailsMenuItem', href: "#"}, '0 failing'));
-
-    this.summaryMenuItem.onclick = function() {
-      dom.reporter.className = dom.reporter.className.replace(/ showDetails/g, '');
-    };
-
-    this.detailsMenuItem.onclick = function() {
-      showDetails();
-    };
-  };
-
-  this.addSpecs = function(specs, specFilter) {
-    this.totalSpecCount = specs.length;
-
-    this.views = {
-      specs: {},
-      suites: {}
-    };
-
-    for (var i = 0; i < specs.length; i++) {
-      var spec = specs[i];
-      this.views.specs[spec.id] = new jasmine.HtmlReporter.SpecView(spec, dom, this.views);
-      if (specFilter(spec)) {
-        this.runningSpecCount++;
-      }
-    }
-  };
-
-  this.specComplete = function(spec) {
-    this.completeSpecCount++;
-
-    if (isUndefined(this.views.specs[spec.id])) {
-      this.views.specs[spec.id] = new jasmine.HtmlReporter.SpecView(spec, dom);
-    }
-
-    var specView = this.views.specs[spec.id];
-
-    switch (specView.status()) {
-      case 'passed':
-        this.passedCount++;
-        break;
-
-      case 'failed':
-        this.failedCount++;
-        break;
-
-      case 'skipped':
-        this.skippedCount++;
-        break;
-    }
-
-    specView.refresh();
-    this.refresh();
-  };
-
-  this.suiteComplete = function(suite) {
-    var suiteView = this.views.suites[suite.id];
-    if (isUndefined(suiteView)) {
-      return;
-    }
-    suiteView.refresh();
-  };
-
-  this.refresh = function() {
-
-    if (isUndefined(this.resultsMenu)) {
-      this.createResultsMenu();
-    }
-
-    // currently running UI
-    if (isUndefined(this.runningAlert)) {
-      this.runningAlert = this.createDom('a', {href: "?", className: "runningAlert bar"});
-      dom.alert.appendChild(this.runningAlert);
-    }
-    this.runningAlert.innerHTML = "Running " + this.completeSpecCount + " of " + specPluralizedFor(this.totalSpecCount);
-
-    // skipped specs UI
-    if (isUndefined(this.skippedAlert)) {
-      this.skippedAlert = this.createDom('a', {href: "?", className: "skippedAlert bar"});
-    }
-
-    this.skippedAlert.innerHTML = "Skipping " + this.skippedCount + " of " + specPluralizedFor(this.totalSpecCount) + " - run all";
-
-    if (this.skippedCount === 1 && isDefined(dom.alert)) {
-      dom.alert.appendChild(this.skippedAlert);
-    }
-
-    // passing specs UI
-    if (isUndefined(this.passedAlert)) {
-      this.passedAlert = this.createDom('span', {href: "?", className: "passingAlert bar"});
-    }
-    this.passedAlert.innerHTML = "Passing " + specPluralizedFor(this.passedCount);
-
-    // failing specs UI
-    if (isUndefined(this.failedAlert)) {
-      this.failedAlert = this.createDom('span', {href: "?", className: "failingAlert bar"});
-    }
-    this.failedAlert.innerHTML = "Failing " + specPluralizedFor(this.failedCount);
-
-    if (this.failedCount === 1 && isDefined(dom.alert)) {
-      dom.alert.appendChild(this.failedAlert);
-      dom.alert.appendChild(this.resultsMenu);
-    }
-
-    // summary info
-    this.summaryMenuItem.innerHTML = "" + specPluralizedFor(this.runningSpecCount);
-    this.detailsMenuItem.innerHTML = "" + this.failedCount + " failing";
-  };
-
-  this.complete = function() {
-    dom.alert.removeChild(this.runningAlert);
-
-    this.skippedAlert.innerHTML = "Ran " + this.runningSpecCount + " of " + specPluralizedFor(this.totalSpecCount) + " - run all";
-
-    if (this.failedCount === 0) {
-      dom.alert.appendChild(this.createDom('span', {className: 'passingAlert bar'}, "Passing " + specPluralizedFor(this.passedCount)));
-    } else {
-      showDetails();
-    }
-
-    dom.banner.appendChild(this.createDom('span', {className: 'duration'}, "finished in " + ((new Date().getTime() - this.startedAt.getTime()) / 1000) + "s"));
-  };
-
-  return this;
-
-  function showDetails() {
-    if (dom.reporter.className.search(/showDetails/) === -1) {
-      dom.reporter.className += " showDetails";
-    }
-  }
-
-  function isUndefined(obj) {
-    return typeof obj === 'undefined';
-  }
-
-  function isDefined(obj) {
-    return !isUndefined(obj);
-  }
-
-  function specPluralizedFor(count) {
-    var str = count + " spec";
-    if (count > 1) {
-      str += "s"
-    }
-    return str;
-  }
-
-};
-
-jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.ReporterView);
-
-
-jasmine.HtmlReporter.SpecView = function(spec, dom, views) {
-  this.spec = spec;
-  this.dom = dom;
-  this.views = views;
-
-  this.symbol = this.createDom('li', { className: 'pending' });
-  this.dom.symbolSummary.appendChild(this.symbol);
-
-  this.summary = this.createDom('div', { className: 'specSummary' },
-      this.createDom('a', {
-        className: 'description',
-        href: '?spec=' + encodeURIComponent(this.spec.getFullName()),
-        title: this.spec.getFullName()
-      }, this.spec.description)
-  );
-
-  this.detail = this.createDom('div', { className: 'specDetail' },
-      this.createDom('a', {
-        className: 'description',
-        href: '?spec=' + encodeURIComponent(this.spec.getFullName()),
-        title: this.spec.getFullName()
-      }, this.spec.getFullName())
-  );
-};
-
-jasmine.HtmlReporter.SpecView.prototype.status = function() {
-  return this.getSpecStatus(this.spec);
-};
-
-jasmine.HtmlReporter.SpecView.prototype.refresh = function() {
-  this.symbol.className = this.status();
-
-  switch (this.status()) {
-    case 'skipped':
-      break;
-
-    case 'passed':
-      this.appendSummaryToSuiteDiv();
-      break;
-
-    case 'failed':
-      this.appendSummaryToSuiteDiv();
-      this.appendFailureDetail();
-      break;
-  }
-};
-
-jasmine.HtmlReporter.SpecView.prototype.appendSummaryToSuiteDiv = function() {
-  this.summary.className += ' ' + this.status();
-  this.appendToSummary(this.spec, this.summary);
-};
-
-jasmine.HtmlReporter.SpecView.prototype.appendFailureDetail = function() {
-  this.detail.className += ' ' + this.status();
-
-  var resultItems = this.spec.results().getItems();
-  var messagesDiv = this.createDom('div', { className: 'messages' });
-
-  for (var i = 0; i < resultItems.length; i++) {
-    var result = resultItems[i];
-
-    if (result.type == 'log') {
-      messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage log'}, result.toString()));
-    } else if (result.type == 'expect' && result.passed && !result.passed()) {
-      messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage fail'}, result.message));
-
-      if (result.trace.stack) {
-        messagesDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack));
-      }
-    }
-  }
-
-  if (messagesDiv.childNodes.length > 0) {
-    this.detail.appendChild(messagesDiv);
-    this.dom.details.appendChild(this.detail);
-  }
-};
-
-jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SpecView);jasmine.HtmlReporter.SuiteView = function(suite, dom, views) {
-  this.suite = suite;
-  this.dom = dom;
-  this.views = views;
-
-  this.element = this.createDom('div', { className: 'suite' },
-      this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(this.suite.getFullName()) }, this.suite.description)
-  );
-
-  this.appendToSummary(this.suite, this.element);
-};
-
-jasmine.HtmlReporter.SuiteView.prototype.status = function() {
-  return this.getSpecStatus(this.suite);
-};
-
-jasmine.HtmlReporter.SuiteView.prototype.refresh = function() {
-  this.element.className += " " + this.status();
-};
-
-jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SuiteView);
-
-/* @deprecated Use jasmine.HtmlReporter instead
- */
-jasmine.TrivialReporter = function(doc) {
-  this.document = doc || document;
-  this.suiteDivs = {};
-  this.logRunningSpecs = false;
-};
-
-jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
-  var el = document.createElement(type);
-
-  for (var i = 2; i < arguments.length; i++) {
-    var child = arguments[i];
-
-    if (typeof child === 'string') {
-      el.appendChild(document.createTextNode(child));
-    } else {
-      if (child) { el.appendChild(child); }
-    }
-  }
-
-  for (var attr in attrs) {
-    if (attr == "className") {
-      el[attr] = attrs[attr];
-    } else {
-      el.setAttribute(attr, attrs[attr]);
-    }
-  }
-
-  return el;
-};
-
-jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
-  var showPassed, showSkipped;
-
-  this.outerDiv = this.createDom('div', { id: 'TrivialReporter', className: 'jasmine_reporter' },
-      this.createDom('div', { className: 'banner' },
-        this.createDom('div', { className: 'logo' },
-            this.createDom('span', { className: 'title' }, "Jasmine"),
-            this.createDom('span', { className: 'version' }, runner.env.versionString())),
-        this.createDom('div', { className: 'options' },
-            "Show ",
-            showPassed = this.createDom('input', { id: "__jasmine_TrivialReporter_showPassed__", type: 'checkbox' }),
-            this.createDom('label', { "for": "__jasmine_TrivialReporter_showPassed__" }, " passed "),
-            showSkipped = this.createDom('input', { id: "__jasmine_TrivialReporter_showSkipped__", type: 'checkbox' }),
-            this.createDom('label', { "for": "__jasmine_TrivialReporter_showSkipped__" }, " skipped")
-            )
-          ),
-
-      this.runnerDiv = this.createDom('div', { className: 'runner running' },
-          this.createDom('a', { className: 'run_spec', href: '?' }, "run all"),
-          this.runnerMessageSpan = this.createDom('span', {}, "Running..."),
-          this.finishedAtSpan = this.createDom('span', { className: 'finished-at' }, ""))
-      );
-
-  this.document.body.appendChild(this.outerDiv);
-
-  var suites = runner.suites();
-  for (var i = 0; i < suites.length; i++) {
-    var suite = suites[i];
-    var suiteDiv = this.createDom('div', { className: 'suite' },
-        this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),
-        this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, suite.description));
-    this.suiteDivs[suite.id] = suiteDiv;
-    var parentDiv = this.outerDiv;
-    if (suite.parentSuite) {
-      parentDiv = this.suiteDivs[suite.parentSuite.id];
-    }
-    parentDiv.appendChild(suiteDiv);
-  }
-
-  this.startedAt = new Date();
-
-  var self = this;
-  showPassed.onclick = function(evt) {
-    if (showPassed.checked) {
-      self.outerDiv.className += ' show-passed';
-    } else {
-      self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, '');
-    }
-  };
-
-  showSkipped.onclick = function(evt) {
-    if (showSkipped.checked) {
-      self.outerDiv.className += ' show-skipped';
-    } else {
-      self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, '');
-    }
-  };
-};
-
-jasmine.TrivialReporter.prototype.reportRunnerResults = function(runner) {
-  var results = runner.results();
-  var className = (results.failedCount > 0) ? "runner failed" : "runner passed";
-  this.runnerDiv.setAttribute("class", className);
-  //do it twice for IE
-  this.runnerDiv.setAttribute("className", className);
-  var specs = runner.specs();
-  var specCount = 0;
-  for (var i = 0; i < specs.length; i++) {
-    if (this.specFilter(specs[i])) {
-      specCount++;
-    }
-  }
-  var message = "" + specCount + " spec" + (specCount == 1 ? "" : "s" ) + ", " + results.failedCount + " failure" + ((results.failedCount == 1) ? "" : "s");
-  message += " in " + ((new Date().getTime() - this.startedAt.getTime()) / 1000) + "s";
-  this.runnerMessageSpan.replaceChild(this.createDom('a', { className: 'description', href: '?'}, message), this.runnerMessageSpan.firstChild);
-
-  this.finishedAtSpan.appendChild(document.createTextNode("Finished at " + new Date().toString()));
-};
-
-jasmine.TrivialReporter.prototype.reportSuiteResults = function(suite) {
-  var results = suite.results();
-  var status = results.passed() ? 'passed' : 'failed';
-  if (results.totalCount === 0) { // todo: change this to check results.skipped
-    status = 'skipped';
-  }
-  this.suiteDivs[suite.id].className += " " + status;
-};
-
-jasmine.TrivialReporter.prototype.reportSpecStarting = function(spec) {
-  if (this.logRunningSpecs) {
-    this.log('>> Jasmine Running ' + spec.suite.description + ' ' + spec.description + '...');
-  }
-};
-
-jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
-  var results = spec.results();
-  var status = results.passed() ? 'passed' : 'failed';
-  if (results.skipped) {
-    status = 'skipped';
-  }
-  var specDiv = this.createDom('div', { className: 'spec '  + status },
-      this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),
-      this.createDom('a', {
-        className: 'description',
-        href: '?spec=' + encodeURIComponent(spec.getFullName()),
-        title: spec.getFullName()
-      }, spec.description));
-
-
-  var resultItems = results.getItems();
-  var messagesDiv = this.createDom('div', { className: 'messages' });
-  for (var i = 0; i < resultItems.length; i++) {
-    var result = resultItems[i];
-
-    if (result.type == 'log') {
-      messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage log'}, result.toString()));
-    } else if (result.type == 'expect' && result.passed && !result.passed()) {
-      messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage fail'}, result.message));
-
-      if (result.trace.stack) {
-        messagesDiv.appendChild(this.createDom('div', {className: 'stackTrace'}, result.trace.stack));
-      }
-    }
-  }
-
-  if (messagesDiv.childNodes.length > 0) {
-    specDiv.appendChild(messagesDiv);
-  }
-
-  this.suiteDivs[spec.suite.id].appendChild(specDiv);
-};
-
-jasmine.TrivialReporter.prototype.log = function() {
-  var console = jasmine.getGlobal().console;
-  if (console && console.log) {
-    if (console.log.apply) {
-      console.log.apply(console, arguments);
-    } else {
-      console.log(arguments); // ie fix: console.log.apply doesn't exist on ie
-    }
-  }
-};
-
-jasmine.TrivialReporter.prototype.getLocation = function() {
-  return this.document.location;
-};
-
-jasmine.TrivialReporter.prototype.specFilter = function(spec) {
-  var paramMap = {};
-  var params = this.getLocation().search.substring(1).split('&');
-  for (var i = 0; i < params.length; i++) {
-    var p = params[i].split('=');
-    paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
-  }
-
-  if (!paramMap.spec) {
-    return true;
-  }
-  return spec.getFullName().indexOf(paramMap.spec) === 0;
-};

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.css
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.css b/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.css
deleted file mode 100644
index 826e575..0000000
--- a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.css
+++ /dev/null
@@ -1,81 +0,0 @@
-body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
-
-#HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; }
-#HTMLReporter a { text-decoration: none; }
-#HTMLReporter a:hover { text-decoration: underline; }
-#HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; }
-#HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; }
-#HTMLReporter #jasmine_content { position: fixed; right: 100%; }
-#HTMLReporter .version { color: #aaaaaa; }
-#HTMLReporter .banner { margin-top: 14px; }
-#HTMLReporter .duration { color: #aaaaaa; float: right; }
-#HTMLReporter .symbolSummary { overflow: hidden; *zoom: 1; margin: 14px 0; }
-#HTMLReporter .symbolSummary li { display: block; float: left; height: 7px; width: 14px; margin-bottom: 7px; font-size: 16px; }
-#HTMLReporter .symbolSummary li.passed { font-size: 14px; }
-#HTMLReporter .symbolSummary li.passed:before { color: #5e7d00; content: "\02022"; }
-#HTMLReporter .symbolSummary li.failed { line-height: 9px; }
-#HTMLReporter .symbolSummary li.failed:before { color: #b03911; content: "x"; font-weight: bold; margin-left: -1px; }
-#HTMLReporter .symbolSummary li.skipped { font-size: 14px; }
-#HTMLReporter .symbolSummary li.skipped:before { color: #bababa; content: "\02022"; }
-#HTMLReporter .symbolSummary li.pending { line-height: 11px; }
-#HTMLReporter .symbolSummary li.pending:before { color: #aaaaaa; content: "-"; }
-#HTMLReporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; }
-#HTMLReporter .runningAlert { background-color: #666666; }
-#HTMLReporter .skippedAlert { background-color: #aaaaaa; }
-#HTMLReporter .skippedAlert:first-child { background-color: #333333; }
-#HTMLReporter .skippedAlert:hover { text-decoration: none; color: white; text-decoration: underline; }
-#HTMLReporter .passingAlert { background-color: #a6b779; }
-#HTMLReporter .passingAlert:first-child { background-color: #5e7d00; }
-#HTMLReporter .failingAlert { background-color: #cf867e; }
-#HTMLReporter .failingAlert:first-child { background-color: #b03911; }
-#HTMLReporter .results { margin-top: 14px; }
-#HTMLReporter #details { display: none; }
-#HTMLReporter .resultsMenu, #HTMLReporter .resultsMenu a { background-color: #fff; color: #333333; }
-#HTMLReporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; }
-#HTMLReporter.showDetails .summaryMenuItem:hover { text-decoration: underline; }
-#HTMLReporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; }
-#HTMLReporter.showDetails .summary { display: none; }
-#HTMLReporter.showDetails #details { display: block; }
-#HTMLReporter .summaryMenuItem { font-weight: bold; text-decoration: underline; }
-#HTMLReporter .summary { margin-top: 14px; }
-#HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary { margin-left: 14px; }
-#HTMLReporter .summary .specSummary.passed a { color: #5e7d00; }
-#HTMLReporter .summary .specSummary.failed a { color: #b03911; }
-#HTMLReporter .description + .suite { margin-top: 0; }
-#HTMLReporter .suite { margin-top: 14px; }
-#HTMLReporter .suite a { color: #333333; }
-#HTMLReporter #details .specDetail { margin-bottom: 28px; }
-#HTMLReporter #details .specDetail .description { display: block; color: white; background-color: #b03911; }
-#HTMLReporter .resultMessage { padding-top: 14px; color: #333333; }
-#HTMLReporter .resultMessage span.result { display: block; }
-#HTMLReporter .stackTrace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; }
-
-#TrivialReporter { padding: 8px 13px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-y: scroll; background-color: white; font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif; /*.resultMessage {*/ /*white-space: pre;*/ /*}*/ }
-#TrivialReporter a:visited, #TrivialReporter a { color: #303; }
-#TrivialReporter a:hover, #TrivialReporter a:active { color: blue; }
-#TrivialReporter .run_spec { float: right; padding-right: 5px; font-size: .8em; text-decoration: none; }
-#TrivialReporter .banner { color: #303; background-color: #fef; padding: 5px; }
-#TrivialReporter .logo { float: left; font-size: 1.1em; padding-left: 5px; }
-#TrivialReporter .logo .version { font-size: .6em; padding-left: 1em; }
-#TrivialReporter .runner.running { background-color: yellow; }
-#TrivialReporter .options { text-align: right; font-size: .8em; }
-#TrivialReporter .suite { border: 1px outset gray; margin: 5px 0; padding-left: 1em; }
-#TrivialReporter .suite .suite { margin: 5px; }
-#TrivialReporter .suite.passed { background-color: #dfd; }
-#TrivialReporter .suite.failed { background-color: #fdd; }
-#TrivialReporter .spec { margin: 5px; padding-left: 1em; clear: both; }
-#TrivialReporter .spec.failed, #TrivialReporter .spec.passed, #TrivialReporter .spec.skipped { padding-bottom: 5px; border: 1px solid gray; }
-#TrivialReporter .spec.failed { background-color: #fbb; border-color: red; }
-#TrivialReporter .spec.passed { background-color: #bfb; border-color: green; }
-#TrivialReporter .spec.skipped { background-color: #bbb; }
-#TrivialReporter .messages { border-left: 1px dashed gray; padding-left: 1em; padding-right: 1em; }
-#TrivialReporter .passed { background-color: #cfc; display: none; }
-#TrivialReporter .failed { background-color: #fbb; }
-#TrivialReporter .skipped { color: #777; background-color: #eee; display: none; }
-#TrivialReporter .resultMessage span.result { display: block; line-height: 2em; color: black; }
-#TrivialReporter .resultMessage .mismatch { color: black; }
-#TrivialReporter .stackTrace { white-space: pre; font-size: .8em; margin-left: 10px; max-height: 5em; overflow: auto; border: 1px inset red; padding: 1em; background: #eef; }
-#TrivialReporter .finished-at { padding-left: 1em; font-size: .6em; }
-#TrivialReporter.show-passed .passed, #TrivialReporter.show-skipped .skipped { display: block; }
-#TrivialReporter #jasmine_content { position: fixed; right: 100%; }
-#TrivialReporter .runner { border: 1px solid gray; display: block; margin: 5px 0; padding: 2px 0 2px 10px; }


[07/50] [abbrv] webworks commit: [CB3439] Introduces --web-inspector flag to enable webinspector for signed builds

Posted by je...@apache.org.
[CB3439] Introduces --web-inspector flag to enable webinspector for signed builds

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/f3f5d3d6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/f3f5d3d6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/f3f5d3d6

Branch: refs/heads/3.1.x
Commit: f3f5d3d62b62da9fd34803f05587222c26421e98
Parents: b6becd2
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Wed Jul 31 16:29:12 2013 -0400
Committer: Bryan Higgins <br...@bryanhiggins.net>
Committed: Fri Aug 2 11:28:58 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/build | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/f3f5d3d6/blackberry10/bin/templates/project/cordova/lib/build
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/build b/blackberry10/bin/templates/project/cordova/lib/build
index a4f7656..8b54709 100755
--- a/blackberry10/bin/templates/project/cordova/lib/build
+++ b/blackberry10/bin/templates/project/cordova/lib/build
@@ -39,13 +39,6 @@ function copyArgIfExists(arg) {
     }
 }
 
-function doDebugBuild() {
-    //build in debug mode by default
-    bbwpArgv.push("-d");
-
-    build();
-}
-
 function doReleaseBuild() {
     //Note: Packager refers to signing password as "password" not "keystorepass"
     if (command["keystorepass"]) {
@@ -66,6 +59,11 @@ function doReleaseBuild() {
 }
 
 function build() {
+    //enable webinspector in debug mode or if --webinspector was provided
+    if (!command.release || command.webInspector) {
+        bbwpArgv.push("-d");
+    }
+
     copyArgIfExists("params");
     copyArgIfExists("loglevel");
 
@@ -83,7 +81,7 @@ function postClean() {
     if (command.release) {
         doReleaseBuild();
     } else {
-        doDebugBuild();
+        build();
     }
 }
 
@@ -116,6 +114,7 @@ command
     .option('--release', 'build in release mode. This will sign the resulting bar.')
     .option('-k, --keystorepass <password>', 'signing key password')
     .option('-b, --buildId <num>', 'specifies the build number for signing (typically incremented from previous signing).')
+    .option('-d, --web-inspector', 'enables webinspector. Enabled by default in debug mode.).')
     .option('-p, --params <params JSON file>', 'specifies additional parameters to pass to downstream tools.')
     .option('-ll, --loglevel <loglevel>', 'set the logging level (error, warn, verbose)');
 


[02/50] [abbrv] webworks commit: [CB-3798] Provide support for optional localized node/npm/bb-tools

Posted by je...@apache.org.
[CB-3798] Provide support for optional localized node/npm/bb-tools

-Several script updates to provide support for optional localized binaries [node/npm/bbtools]
-Added support for overridable global CORDOVA_NODE env variable to point to node installation
-Added support for overridable global CORDOVA_BBTOOLS env variable to point to bbndk tools
-Run plugman via JS and not command-line


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/7b933463
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/7b933463
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/7b933463

Branch: refs/heads/3.1.x
Commit: 7b9334636790e1efa76071310b5086a80555397f
Parents: db0aa17
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Tue Jul 16 18:37:04 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Jul 30 10:02:05 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/check_reqs                     | 26 ++++----
 blackberry10/bin/check_reqs.bat                 | 56 +++---------------
 blackberry10/bin/create                         | 24 +++++---
 blackberry10/bin/create.bat                     | 12 ++--
 blackberry10/bin/create.js                      | 39 +++++++++++-
 blackberry10/bin/init                           | 53 +++++++++++++++++
 blackberry10/bin/init.bat                       | 62 ++++++++++++++++++++
 blackberry10/bin/target                         |  4 +-
 blackberry10/bin/target.bat                     |  4 +-
 .../bin/templates/project/cordova/build         |  3 +-
 .../bin/templates/project/cordova/build.bat     |  4 +-
 .../bin/templates/project/cordova/clean         |  3 +-
 .../bin/templates/project/cordova/clean.bat     |  4 +-
 .../project/cordova/lib/debugtoken-helper.js    | 18 +++---
 .../templates/project/cordova/lib/list-devices  |  6 +-
 .../project/cordova/lib/list-devices.bat        |  4 +-
 .../project/cordova/lib/list-emulator-images    |  3 +-
 .../cordova/lib/list-emulator-images.bat        |  4 +-
 .../project/cordova/lib/list-started-emulators  |  3 +-
 .../cordova/lib/list-started-emulators.bat      |  4 +-
 .../project/cordova/lib/native-packager.js      |  2 +-
 .../project/cordova/lib/plugin-wrapper.js       | 21 +++++++
 .../bin/templates/project/cordova/lib/plugin.js | 27 +++------
 .../bin/templates/project/cordova/lib/run       |  4 +-
 .../project/cordova/lib/signing-helper.js       |  2 +-
 .../project/cordova/lib/target-utils.js         |  7 ++-
 .../bin/templates/project/cordova/plugin        | 25 +-------
 .../bin/templates/project/cordova/plugin.bat    |  4 +-
 blackberry10/bin/templates/project/cordova/run  |  3 +-
 .../bin/templates/project/cordova/run.bat       |  4 +-
 .../bin/templates/project/cordova/version       |  3 +-
 .../bin/templates/project/cordova/version.bat   |  4 +-
 blackberry10/package.json                       |  2 +-
 33 files changed, 284 insertions(+), 160 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/check_reqs
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs b/blackberry10/bin/check_reqs
index a813293..d69ee77 100755
--- a/blackberry10/bin/check_reqs
+++ b/blackberry10/bin/check_reqs
@@ -18,33 +18,35 @@
 #
 #!/bin/sh
 
-NODE=$(command -v node)
-NPM=$(command -v npm)
+source $(dirname "$0")/init
+
+NODE="$CORDOVA_NODE/node"
+NPM="$CORDOVA_NODE/npm"
 JAVA=$(command -v java)
-PACKAGER=$(command -v blackberry-nativepackager)
-DEPLOYER=$(command -v blackberry-deploy)
-SIGNER=$(command -v blackberry-signer)
+PACKAGER="$CORDOVA_BBTOOLS/blackberry-nativepackager"
+DEPLOYER="$CORDOVA_BBTOOLS/blackberry-deploy"
+SIGNER="$CORDOVA_BBTOOLS/blackberry-signer"
 
-if [ -z "$NODE" ]; then
+if [ ! -x "$NODE" ]; then
     echo node cannot be found on the path. Aborting.
     EXIT_CODE=1
-elif [ -z "$NPM" ]; then
+elif [ ! -x "$NPM" ]; then
     echo npm cannot be found on the path. Aborting.
     EXIT_CODE=1
-elif [ -z "$JAVA" ]; then
+elif [ ! -x "$JAVA" ]; then
     echo java cannot be found on the path. Aborting.
     EXIT_CODE=1
-elif [ -z "$PACKAGER" ]; then
+elif [ ! -x "$PACKAGER" ]; then
     echo blackberry-nativepackager cannot be found on the path. Aborting.
     EXIT_CODE=1
-elif [ -z "$DEPLOYER" ]; then
+elif [ ! -x "$DEPLOYER" ]; then
     echo blackberry-deploy cannot be found on the path. Aborting.
     EXIT_CODE=1
-elif [ -z "$SIGNER" ]; then
+elif [ ! -x "$SIGNER" ]; then
     echo blackberry-signer cannot be found on the path. Aborting.
     EXIT_CODE=1
 else
-    node "$( dirname "$0" )/check_reqs.js" "$@"
+    "$NODE" "$( dirname "$0" )/check_reqs.js" "$@"
     EXIT_CODE=0
 fi
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/check_reqs.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs.bat b/blackberry10/bin/check_reqs.bat
index b7173f7..e08ada7 100755
--- a/blackberry10/bin/check_reqs.bat
+++ b/blackberry10/bin/check_reqs.bat
@@ -17,43 +17,7 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
-set FOUNDNODE=
-for %%e in (%PATHEXT%) do (
-  for %%X in (node%%e) do (
-    if not defined FOUNDNODE (
-      set FOUNDNODE=%%~$PATH:X
-    )
-  )
-)
-
-set FOUNDNPM=
-for %%X in (npm) do (
-  if not defined FOUNDNPM (
-    set FOUNDNPM=%%~$PATH:X
-  )
-)
-
-set FOUNDPACKAGER=
-for %%X in (blackberry-nativepackager.bat) do (
-  if not defined FOUNDPACKAGER (
-    set FOUNDPACKAGER=%%~$PATH:X
-  )
-)
-
-set FOUNDDEPLOYER=
-for %%X in (blackberry-deploy.bat) do (
-  if not defined FOUNDDEPLOYER (
-    set FOUNDDEPLOYER=%%~$PATH:X
-  )
-)
-
-set FOUNDSIGNER=
-for %%X in (blackberry-signer.bat) do (
-  if not defined FOUNDSIGNER (
-    set FOUNDSIGNER=%%~$PATH:X
-  )
-)
+call "%~dp0init"
 
 set FOUNDJAVA=
 for %%e in (%PATHEXT%) do (
@@ -63,31 +27,29 @@ for %%e in (%PATHEXT%) do (
     )
   )
 )
-
-
-if not defined FOUNDNODE (
-  echo npm cannot be found on the path. Aborting.
+if not exist "%CORDOVA_NODE%\node.exe" (
+  echo node cannot be found on the path. Aborting.
   exit /b 1
 )
-if not defined FOUNDNPM (
-  echo node cannot be found on the path. Aborting.
+if not exist "%CORDOVA_NODE%\npm" (
+  echo npm cannot be found on the path. Aborting.
   exit /b 1
 )
 if not defined FOUNDJAVA (
   echo java cannot be found on the path. Aborting.
   exit /b 1
 )
-if not defined FOUNDPACKAGER (
+if not exist "%CORDOVA_BBTOOLS%\blackberry-nativepackager" (
   echo blackberry-nativepackager cannot be found on the path. Aborting.
   exit /b 1
 )
-if not defined FOUNDDEPLOYER (
+if not exist "%CORDOVA_BBTOOLS%\blackberry-deploy" (
   echo blackberry-deploy cannot be found on the path. Aborting.
   exit /b 1
 )
-if not defined FOUNDSIGNER (
+if not exist "%CORDOVA_BBTOOLS%\blackberry-signer" (
   echo blackberry-signer cannot be found on the path. Aborting.
   exit /b 1
 )
 
-@node.exe "%~dp0\check_reqs.js" %*
+"%CORDOVA_NODE%\node" "%~dp0\check_reqs.js" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/create
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create b/blackberry10/bin/create
index 4ba2665..d44e377 100755
--- a/blackberry10/bin/create
+++ b/blackberry10/bin/create
@@ -23,8 +23,11 @@
 #
 #!/bin/sh
 
+source $(dirname "$0")/init
+
 CURRENT_DIR=$(pwd)
-BIN_DIR=$(dirname "$0")
+BIN_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+NPM_PACKAGE_JSON="$BIN_DIR"/../package.json
 
 #Run check_reqs before doing anything and exit if there's an error
 "$BIN_DIR"/check_reqs
@@ -33,13 +36,16 @@ if [ ${?} -ne 0 ]; then
 fi
 
 #Run npm install every time (even if node_modules folder is present) to cover platform upgrade
-cd "$BIN_DIR"/..
-#Removed sudo usage so that node modules are not ownder by root
-npm install
-cd "$CURRENT_DIR"
+if [ -e $NPM_PACKAGE_JSON ]; then
+    cd "$BIN_DIR"/..
+    #Removed sudo usage so that node modules are not ownder by root
+    "$CORDOVA_NODE/npm" install
+    cd "$CURRENT_DIR"
 
-if ! [ $? -eq 0 ]; then
-  echo "NPM install failed. Aborting."
-else
-  node "$BIN_DIR"/create.js "$@"
+    if ! [ $? -eq 0 ]; then
+        echo "NPM install failed. Aborting."
+        exit 1
+    fi
 fi
+
+"$CORDOVA_NODE/node" "$BIN_DIR"/create.js "$@"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/create.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create.bat b/blackberry10/bin/create.bat
index ed595ab..dd83988 100644
--- a/blackberry10/bin/create.bat
+++ b/blackberry10/bin/create.bat
@@ -17,15 +17,17 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
 set BIN_DIR=%~dp0
 
+call "%BIN_DIR%init"
 call "%BIN_DIR%check_reqs"
 
 if "%ERRORLEVEL%" == "1" exit /B 1
 
-pushd %BIN_DIR%..
-call npm install
-popd
+if exist "%BIN_DIR%..\package.json" (
+    pushd %BIN_DIR%..
+    call "%CORDOVA_NODE%\npm" install
+    popd
+)
 
-node.exe "%BIN_DIR%create.js" %*
+"%CORDOVA_NODE%\node" "%BIN_DIR%create.js" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create.js b/blackberry10/bin/create.js
index d9f895e..26a9109 100644
--- a/blackberry10/bin/create.js
+++ b/blackberry10/bin/create.js
@@ -112,18 +112,54 @@ function copyJavascript() {
 }
 
 function copyFilesToProject() {
-    var nodeModulesDest = path.join(project_path, "cordova", "node_modules");
+    var nodeModulesDest = path.join(project_path, "cordova", "node_modules"),
+        bbtoolsBinDest = path.join(project_path, "cordova", "dependencies", "bb-tools", "bin"),
+        bbtoolsLibDest = path.join(project_path, "cordova", "dependencies", "bb-tools", "lib"),
+        bbNativePackager = "blackberry-nativepackager",
+        bbSigner = "blackberry-signer",
+        bbDeploy = "blackberry-deploy";
 
     // create project using template directory
     wrench.mkdirSyncRecursive(project_path, 0777);
     wrench.copyDirSyncRecursive(TEMPLATE_PROJECT_DIR, project_path);
 
+    //copy dependencies folder if exists
+    if (fs.existsSync(path.join(BIN_DIR, "dependencies"))) {
+        //Copy node binaries
+        wrench.mkdirSyncRecursive(path.join(project_path, "cordova", "dependencies", "node"), 0755);
+        wrench.copyDirSyncRecursive(path.join(BIN_DIR, "dependencies", "node"), path.join(project_path, "cordova", "dependencies", "node"));
+
+        //Copy bb-tools bin files
+        wrench.mkdirSyncRecursive(bbtoolsBinDest, 0755);
+
+        if (utils.isWindows()) {
+            bbNativePackager += ".bat";
+            bbSigner += ".bat";
+            bbDeploy += ".bat";
+        }
+
+        utils.copyFile(path.join(BIN_DIR, "dependencies", "bb-tools", "bin", bbNativePackager), bbtoolsBinDest);
+        utils.copyFile(path.join(BIN_DIR, "dependencies", "bb-tools", "bin", bbSigner), bbtoolsBinDest);
+        utils.copyFile(path.join(BIN_DIR, "dependencies", "bb-tools", "bin", bbDeploy), bbtoolsBinDest);
+
+        //copy bb-tools lib folder
+        wrench.mkdirSyncRecursive(bbtoolsLibDest, 0755);
+        wrench.copyDirSyncRecursive(path.join(BIN_DIR, "dependencies", "bb-tools", "lib"), bbtoolsLibDest);
+    }
+
     // copy repo level target tool to project
     utils.copyFile(path.join(BIN_DIR, "target"), path.join(project_path, "cordova"));
     utils.copyFile(path.join(BIN_DIR, "target.bat"), path.join(project_path, "cordova"));
     utils.copyFile(path.join(BIN_DIR, "lib", "target.js"), path.join(project_path, "cordova", "lib"));
     utils.copyFile(path.join(BIN_DIR, "lib", "utils.js"), path.join(project_path, "cordova", "lib"));
 
+    // copy repo level init script to project
+    if (utils.isWindows()) {
+        utils.copyFile(path.join(BIN_DIR, "init.bat"), path.join(project_path, "cordova"));
+    } else {
+        utils.copyFile(path.join(BIN_DIR, "init"), path.join(project_path, "cordova"));
+    }
+
     // change file permission for cordova scripts because ant copy doesn't preserve file permissions
     wrench.chmodSyncRecursive(path.join(project_path,"cordova"), 0700);
 
@@ -133,6 +169,7 @@ function copyFilesToProject() {
     //copy node modules to cordova build directory
     wrench.mkdirSyncRecursive(nodeModulesDest, 0777);
     wrench.copyDirSyncRecursive(MODULES_PROJECT_DIR, nodeModulesDest);
+
     //change permissions of plugman
     fs.chmodSync(path.join(nodeModulesDest, "plugman", "main.js"), 0755);
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/init
----------------------------------------------------------------------
diff --git a/blackberry10/bin/init b/blackberry10/bin/init
new file mode 100755
index 0000000..78b5ea9
--- /dev/null
+++ b/blackberry10/bin/init
@@ -0,0 +1,53 @@
+#! /bin/sh
+#       Licensed to the Apache Software Foundation (ASF) under one
+#       or more contributor license agreements.  See the NOTICE file
+#       distributed with this work for additional information
+#       regarding copyright ownership.  The ASF licenses this file
+#       to you under the Apache License, Version 2.0 (the
+#       "License"); you may not use this file except in compliance
+#       with the License.  You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#       Unless required by applicable law or agreed to in writing,
+#       software distributed under the License is distributed on an
+#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#       KIND, either express or implied.  See the License for the
+#       specific language governing permissions and limitations
+#       under the License.
+#
+#!/bin/sh
+CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+LOCAL_NODE_BIN=$CURRENT_DIR/dependencies/node/bin
+LOCAL_BBTOOLS=$CURRENT_DIR/dependencies/bb-tools/bin
+
+if [ -z "$CORDOVA_NODE" ]; then
+    if [ -x "$LOCAL_NODE_BIN" ]; then
+        #set CORDOVA_NODE to local node version, if exists
+        CORDOVA_NODE=$LOCAL_NODE_BIN
+    else
+        #set CORDOVA_NODE to whichever node is on path, if exists
+        NODE_PATH=$(command -v node)
+        if [ ! -z "$NODE_PATH" ]; then
+            CORDOVA_NODE=$(dirname $NODE_PATH)
+        fi
+    fi
+
+    export CORDOVA_NODE=$CORDOVA_NODE
+fi
+
+if [ -z "$CORDOVA_BBTOOLS" ]; then
+    if [ -x "$LOCAL_BBTOOLS" ]; then
+        #set CORDOVA_BBTOOLS to local bbtools, if exists
+        CORDOVA_BBTOOLS=$LOCAL_BBTOOLS
+    else
+        #set CORDOVA_BBTOOLS to whichever bbtools is on path, if exists
+        BBTOOLS_PATH=$(command -v blackberry-nativepackager)
+        if [ ! -z "$BBTOOLS_PATH" ]; then
+            CORDOVA_BBTOOLS=$(dirname $BBTOOLS_PATH)
+        fi
+    fi
+
+    export CORDOVA_BBTOOLS=$CORDOVA_BBTOOLS
+fi
+

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/init.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/init.bat b/blackberry10/bin/init.bat
new file mode 100644
index 0000000..79020e2
--- /dev/null
+++ b/blackberry10/bin/init.bat
@@ -0,0 +1,62 @@
+@ECHO OFF
+goto comment
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you under the Apache License, Version 2.0 (the
+       "License"); you may not use this file except in compliance
+       with the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+       Unless required by applicable law or agreed to in writing,
+       software distributed under the License is distributed on an
+       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+       KIND, either express or implied.  See the License for the
+       specific language governing permissions and limitations
+       under the License.
+:comment
+
+set LOCAL_NODE_BINARY=%~dp0dependencies\node\bin
+set LOCAL_BBTOOLS_BINARY=%~dp0dependencies\bb-tools\bin
+
+
+
+if defined %CORDOVA_NODE% { goto bbtools }
+
+if exist "%LOCAL_NODE_BINARY%" (
+    set CORDOVA_NODE=%LOCAL_NODE_BINARY%
+) else (
+    for %%e in (%PATHEXT%) do (
+        for %%X in (node%%e) do (
+            if not defined FOUNDNODE (
+                set FOUNDNODE=%%~$PATH:X
+            )
+        )
+    )
+
+    if defined FOUNDNODE (
+        for %%F in ("%FOUNDNODE%") do set CORDOVA_NODE=%%~dpF
+    )
+)
+
+:bbtools
+
+if defined %CORDOVA_BBTOOLS% { exit /B }
+
+if exist "%LOCAL_BBTOOLS_BINARY%" (
+    set CORDOVA_BBTOOLS=%LOCAL_BBTOOLS_BINARY%
+) else (
+    for %%e in (%PATHEXT%) do (
+        for %%X in (blackberry-nativepackager%%e) do (
+            if not defined FOUNDBBTOOLS (
+                set FOUNDBBTOOLS=%%~$PATH:X
+            )
+        )
+    )
+
+    if defined FOUNDBBTOOLS (
+        for %%F in ("%FOUNDBBTOOLS%") do set CORDOVA_BBTOOLS=%%~dpF
+    )
+)

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/target
----------------------------------------------------------------------
diff --git a/blackberry10/bin/target b/blackberry10/bin/target
index 4e676d2..e323cfb 100755
--- a/blackberry10/bin/target
+++ b/blackberry10/bin/target
@@ -1,3 +1,3 @@
 #!/bin/sh
-
-node "$( dirname "$0")/lib/target" "$@"
+source $(dirname "$0")/init
+"$CORDOVA_NODE/node" "$( dirname "$0")/lib/target" "$@"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/target.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/target.bat b/blackberry10/bin/target.bat
index 3c05c97..9948a28 100755
--- a/blackberry10/bin/target.bat
+++ b/blackberry10/bin/target.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
-@node.exe %~dps0\lib\target %*
+call "%~dp0init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\lib\target" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/build
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/build b/blackberry10/bin/templates/project/cordova/build
index ade60b0..b082f38 100755
--- a/blackberry10/bin/templates/project/cordova/build
+++ b/blackberry10/bin/templates/project/cordova/build
@@ -1,5 +1,6 @@
 #!/bin/sh
+source $(dirname "$0")/init
 
 #package app
-node "$(dirname "$0")/lib/build" "$@"
+"$CORDOVA_NODE/node" "$(dirname "$0")/lib/build" "$@"
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/build.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/build.bat b/blackberry10/bin/templates/project/cordova/build.bat
index 191e448..9f8773c 100755
--- a/blackberry10/bin/templates/project/cordova/build.bat
+++ b/blackberry10/bin/templates/project/cordova/build.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
-@node.exe %~dps0\lib\build %*
+call "%~dp0init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\lib\build" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/clean
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/clean b/blackberry10/bin/templates/project/cordova/clean
index abe96ea..94d0aba 100755
--- a/blackberry10/bin/templates/project/cordova/clean
+++ b/blackberry10/bin/templates/project/cordova/clean
@@ -1,3 +1,4 @@
 #!/bin/sh
+source $(dirname "$0")/init
 
-node "$(dirname "$0")/lib/clean"
+"$CORDOVA_NODE/node" "$(dirname "$0")/lib/clean"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/clean.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/clean.bat b/blackberry10/bin/templates/project/cordova/clean.bat
index d613d87..091c3ce 100755
--- a/blackberry10/bin/templates/project/cordova/clean.bat
+++ b/blackberry10/bin/templates/project/cordova/clean.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
-@node.exe %~dps0\lib\clean %*
+call "%~dp0init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\lib\clean" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
index 4287df7..bbdb048 100755
--- a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
@@ -99,22 +99,23 @@ function generateDeployTokenOptions(target) {
 }
 
 function execNativeScript(script, options, callback) {
-    var process;
+    var cp;
+        script = path.join(process.env.CORDOVA_BBTOOLS, script);
 
     if (pkgrUtils.isWindows()) {
         script += ".bat";
     }
 
-    process = childProcess.spawn(script, options, {
+    cp = childProcess.spawn(script, options, {
         "cwd" : workingDir,
-        "env" : process ? process.env : undefined
+        "env" : process.env
     });
 
-    process.stdout.on("data", pkgrUtils.handleProcessOutput);
+    cp.stdout.on("data", pkgrUtils.handleProcessOutput);
 
-    process.stderr.on("data", pkgrUtils.handleProcessOutput);
+    cp.stderr.on("data", pkgrUtils.handleProcessOutput);
 
-    process.on("exit", function (code) {
+    cp.on("exit", function (code) {
         if (callback && typeof callback === "function") {
             callback(code);
         }
@@ -243,8 +244,7 @@ self.deployToken = function (projectProperties, target, callback) {
 };
 
 self.checkDebugToken = function (pin, callback) {
-    var process,
-        script = "blackberry-nativepackager",
+    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-nativepackager"),
         nativePackager;
 
     if (!callback || typeof callback !== "function") {
@@ -262,7 +262,7 @@ self.checkDebugToken = function (pin, callback) {
 
     nativePackager = childProcess.exec(path.normalize(script +" -listManifest " + debugTokenDir), {
         "cwd": workingDir,
-        "env": process ? process.env : undefined
+        "env": process.env
     }, function (error, stdout, stderr) {
         callback(isDebugTokenValid(pin, stdout));
     });

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/list-devices
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/list-devices b/blackberry10/bin/templates/project/cordova/lib/list-devices
index c1644ad..7c7b623 100755
--- a/blackberry10/bin/templates/project/cordova/lib/list-devices
+++ b/blackberry10/bin/templates/project/cordova/lib/list-devices
@@ -20,7 +20,5 @@
 
 set -e
 
-CURRENT_DIR=$(pwd)
-BIN_DIR=$(dirname "$0")
-
-node list-devices.js
+source $(dirname "$0")/../init
+"$CORDOVA_NODE/node" "$(dirname "$0")/list-devices.js"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/list-devices.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/list-devices.bat b/blackberry10/bin/templates/project/cordova/lib/list-devices.bat
index 7449ee5..ce34293 100644
--- a/blackberry10/bin/templates/project/cordova/lib/list-devices.bat
+++ b/blackberry10/bin/templates/project/cordova/lib/list-devices.bat
@@ -16,5 +16,5 @@
 :: under the License.
 
 @ECHO OFF
-
-@node.exe list-devices.js
+call "%~dp0..\init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\list-devices.js"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/list-emulator-images
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/list-emulator-images b/blackberry10/bin/templates/project/cordova/lib/list-emulator-images
index 8c63826..1cac650 100755
--- a/blackberry10/bin/templates/project/cordova/lib/list-emulator-images
+++ b/blackberry10/bin/templates/project/cordova/lib/list-emulator-images
@@ -20,4 +20,5 @@
 
 set -e
 
-node list-emulator-images.js
+source $(dirname "$0")/../init
+"$CORDOVA_NODE/node" "$(dirname "$0")/list-emulator-images.js"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/list-emulator-images.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/list-emulator-images.bat b/blackberry10/bin/templates/project/cordova/lib/list-emulator-images.bat
index 2e3523e..0726be5 100644
--- a/blackberry10/bin/templates/project/cordova/lib/list-emulator-images.bat
+++ b/blackberry10/bin/templates/project/cordova/lib/list-emulator-images.bat
@@ -16,5 +16,5 @@
 :: under the License.
 
 @ECHO OFF
-
-@node.exe list-emulator-images.js
+call "%~dp0..\init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\list-emulator-images.js"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/list-started-emulators
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/list-started-emulators b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators
index e000620..3d4b286 100755
--- a/blackberry10/bin/templates/project/cordova/lib/list-started-emulators
+++ b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators
@@ -20,4 +20,5 @@
 
 set -e
 
-node list-started-emulators.js
+source $(dirname "$0")/../init
+"$CORDOVA_NODE/node" "$(dirname "$0")/list-started-emulators.js"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat
index 95bd584..052dee3 100644
--- a/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat
+++ b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat
@@ -16,5 +16,5 @@
 :: under the License.
 
 @ECHO OFF
-
-@node.exe list-started-emulators.js
+call "%~dp0..\init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\list-started-emulators.js"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/native-packager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/native-packager.js b/blackberry10/bin/templates/project/cordova/lib/native-packager.js
index a35b5ba..e4aa81b 100644
--- a/blackberry10/bin/templates/project/cordova/lib/native-packager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/native-packager.js
@@ -246,7 +246,7 @@ function generateOptionsFile(session, target, config) {
 }
 
 function execNativePackager(session, callback) {
-    var script = "blackberry-nativepackager",
+    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-nativepackager"),
         cwd = session.sourceDir,
         nativePkgr;
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js b/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js
new file mode 100755
index 0000000..d14f0ae
--- /dev/null
+++ b/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js
@@ -0,0 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+require(require("path").join(__dirname, "plugin.js")).cli();
+

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/plugin.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/plugin.js b/blackberry10/bin/templates/project/cordova/lib/plugin.js
index e6a0b37..13c547b 100644
--- a/blackberry10/bin/templates/project/cordova/lib/plugin.js
+++ b/blackberry10/bin/templates/project/cordova/lib/plugin.js
@@ -21,9 +21,9 @@ var path = require("path"),
     wrench = require("wrench"),
     fs = require('fs'),
     et   = require('elementtree'),
-    escapeStringForShell = require("./packager-utils").escapeStringForShell,
+    plugman = require('plugman'),
     PROJECT_ROOT = path.join(__dirname, "..", ".."),
-    PLUGMAN = escapeStringForShell(path.join(PROJECT_ROOT, "cordova", "node_modules", "plugman", "main.js")),
+    PLUGMAN = path.join(PROJECT_ROOT, "cordova", "node_modules", "plugman", "main.js"),
     GLOBAL_PLUGIN_PATH = require(path.join(PROJECT_ROOT, "project.json")).globalFetchDir,
     LOCAL_PLUGIN_PATH = path.join(PROJECT_ROOT, "plugins"),
     argumentor = {
@@ -35,41 +35,32 @@ var path = require("path"),
             return argumentor;
         },
         setAction: function () {
-            this.args.push("--" + this.action);
+            this.args.action = this.action;
             return argumentor;
         },
         setPlatform: function () {
-            this.args.push("--platform");
-            this.args.push("blackberry10");
+            this.args.platform = "blackberry10";
             return argumentor;
         },
         setProject: function () {
-            this.args.push("--project");
-            this.args.push(escapeStringForShell(PROJECT_ROOT));
+            this.args.project = PROJECT_ROOT;
             return argumentor;
         },
         setPlugin: function () {
             var pluginWithoutTrailingSlash = this.plugin.charAt(this.plugin.length - 1) === "/" ? this.plugin.slice(0, -1) : this.plugin;
-            this.args.push("--plugin");
-            this.args.push(escapeStringForShell(pluginWithoutTrailingSlash));
+            this.args.plugin = pluginWithoutTrailingSlash;
             return argumentor;
         },
         setPluginsDir: function (isGlobal) {
-            this.args.push("--plugins_dir");
             if (isGlobal) {
-                this.args.push(escapeStringForShell(GLOBAL_PLUGIN_PATH));
+                this.args.pluginDir = GLOBAL_PLUGIN_PATH;
             } else {
-                this.args.push(escapeStringForShell(LOCAL_PLUGIN_PATH));
+                this.args.pluginDir = LOCAL_PLUGIN_PATH;
             }
             return argumentor;
         },
         run: function () {
-            var cmd = "";
-            if (require('os').type().toLowerCase().indexOf("windows") >= 0) {
-                cmd += "@node.exe ";
-            }
-            cmd += PLUGMAN + " " + this.args.join(" ");
-            return shell.exec(cmd, {silent: false});
+            plugman.install(this.args.platform, this.args.project, this.args.plugin, this.args.pluginDir, {});
         }
     },
     plugmanInterface= {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index 0d57afd..8429db2 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -72,7 +72,7 @@ function generateOptions(uninstall) {
 }
 
 function execNativeDeploy(optionsArray, callback) {
-    var script = "blackberry-deploy",
+    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy"),
         nativeDeploy;
         options = optionsArray.join(" ");
 
@@ -150,7 +150,7 @@ function checkTarget() {
 }
 
 function uninstall() {
-    var script = "/bin/blackberry-deploy",
+    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy"),
         nativeDeploy;
 
     if (pkgrUtils.isWindows()) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
index b7cdd9b..c4074af 100644
--- a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
@@ -61,7 +61,7 @@ function getDefaultPath(file) {
 }
 
 function execSigner(session, target, callback) {
-    var script = "blackberry-signer",
+    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-signer"),
         signer,
         params = session.getParams("blackberry-signer"),
         args = [];

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/lib/target-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/target-utils.js b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
index 50091a4..b82f958 100644
--- a/blackberry10/bin/templates/project/cordova/lib/target-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
@@ -16,6 +16,7 @@
 
 var _self,
     exec = require('child_process').exec,
+    path = require('path'),
     bb10_utils = require('./utils'),
     blackberryProperties = bb10_utils.getProperties();
 
@@ -55,13 +56,15 @@ _self = {
                 } else {
                     count++;
                 }
-            } 
+            }
         }
         complete();
     },
 
     checkConnection: function(ip, type, callback) {
-        exec('blackberry-deploy -test ' + ip, function(error, stdout, stderr) {
+        var script = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy');
+
+        exec(script + ' -test ' + ip, function(error, stdout, stderr) {
             // error code 3 corresponds to a connected device, null corresponds to connected sim
             callback((type === 'simulator' && error === null) || (type == 'device' && error.code === 3));
         });

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/plugin
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/plugin b/blackberry10/bin/templates/project/cordova/plugin
index 010649b..bbecb55 100755
--- a/blackberry10/bin/templates/project/cordova/plugin
+++ b/blackberry10/bin/templates/project/cordova/plugin
@@ -1,23 +1,4 @@
-#!/usr/bin/env node
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-require(require("path").join(__dirname, "lib", "plugin.js")).cli();
+#!/bin/sh
+source $(dirname "$0")/init
+"$CORDOVA_NODE/node" "$(dirname "$0")/lib/plugin-wrapper" "$@"
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/plugin.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/plugin.bat b/blackberry10/bin/templates/project/cordova/plugin.bat
index 8a53da1..3080228 100755
--- a/blackberry10/bin/templates/project/cordova/plugin.bat
+++ b/blackberry10/bin/templates/project/cordova/plugin.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
-@node.exe %~dps0\plugin %*
+call "%~dp0init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\lib\plugin-wrapper" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/run b/blackberry10/bin/templates/project/cordova/run
index c6ccacf..24e26e6 100755
--- a/blackberry10/bin/templates/project/cordova/run
+++ b/blackberry10/bin/templates/project/cordova/run
@@ -1,3 +1,4 @@
 #!/bin/sh
+source $(dirname "$0")/init
 
-node "$( dirname "$0")/lib/run" "$@"
+"$CORDOVA_NODE/node" "$( dirname "$0")/lib/run" "$@"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/run.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/run.bat b/blackberry10/bin/templates/project/cordova/run.bat
index 32b6cc3..401086f 100755
--- a/blackberry10/bin/templates/project/cordova/run.bat
+++ b/blackberry10/bin/templates/project/cordova/run.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
-@node.exe %~dps0\lib\run %*
+call "%~dp0init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\lib\run" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/version
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/version b/blackberry10/bin/templates/project/cordova/version
index bc03aee..62ed952 100755
--- a/blackberry10/bin/templates/project/cordova/version
+++ b/blackberry10/bin/templates/project/cordova/version
@@ -1,5 +1,6 @@
 #!/bin/sh
+source $(dirname "$0")/init
 
 # Prints cordova version number
-node "$(dirname "$0")/lib/version" "$@"
+"$CORDOVA_NODE/node" "$(dirname "$0")/lib/version" "$@"
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/bin/templates/project/cordova/version.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/version.bat b/blackberry10/bin/templates/project/cordova/version.bat
index 77fe0e1..253f8da 100755
--- a/blackberry10/bin/templates/project/cordova/version.bat
+++ b/blackberry10/bin/templates/project/cordova/version.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-
-@node.exe %~dps0\lib\version %*
+call "%~dp0init"
+"%CORDOVA_NODE%\node.exe" "%~dps0\lib\version" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7b933463/blackberry10/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/package.json b/blackberry10/package.json
index feae5eb..751fb97 100644
--- a/blackberry10/package.json
+++ b/blackberry10/package.json
@@ -26,7 +26,7 @@
     "validator": "0.4.1",
     "wrench": "1.3.9",
     "shelljs":"0.1.3",
-    "elementtree": "0.1.x",
+    "elementtree": "0.1.5",
     "plugman": "0.9.10"
   },
   "devDependencies": {


[39/50] [abbrv] Syncing hello-world-app for 3.1 release

Posted by je...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_CO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_CO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_CO.js.gz
deleted file mode 100644
index 362232d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_CO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_CR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_CR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_CR.js.gz
deleted file mode 100644
index 53e9e23..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_CR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_DO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_DO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_DO.js.gz
deleted file mode 100644
index 26c6fff..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_DO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_EC.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_EC.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_EC.js.gz
deleted file mode 100644
index 559db9e..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_EC.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES.js.gz
deleted file mode 100644
index 819e45d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz
deleted file mode 100644
index 589d775..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_ES_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_GT.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_GT.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_GT.js.gz
deleted file mode 100644
index e1aba86..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_GT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_HN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_HN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_HN.js.gz
deleted file mode 100644
index 43ce67a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_HN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_MX.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_MX.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_MX.js.gz
deleted file mode 100644
index 76a40da..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_MX.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_NI.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_NI.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_NI.js.gz
deleted file mode 100644
index 86302a5..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_NI.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_PA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_PA.js.gz
deleted file mode 100644
index 5f3a6d2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_PE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_PE.js.gz
deleted file mode 100644
index 44a20ec..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_PR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_PR.js.gz
deleted file mode 100644
index 3d60ce9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_PY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_PY.js.gz
deleted file mode 100644
index c928b88..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_PY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_SV.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_SV.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_SV.js.gz
deleted file mode 100644
index 0d3800a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_SV.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_US.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_US.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_US.js.gz
deleted file mode 100644
index 2243584..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_US.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_UY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_UY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_UY.js.gz
deleted file mode 100644
index db5ce23..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_UY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_VE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_VE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_VE.js.gz
deleted file mode 100644
index b57e2e1..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_VE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/et.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/et.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/et.js.gz
deleted file mode 100644
index e685c40..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/et.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE.js.gz
deleted file mode 100644
index 8ceff8f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz
deleted file mode 100644
index 9b4617d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz
deleted file mode 100644
index b45e6fe..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/et_EE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fi.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fi.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fi.js.gz
deleted file mode 100644
index fff6196..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fi.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz
deleted file mode 100644
index 08c6e67..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz
deleted file mode 100644
index 54e241a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fi_FI_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr.js.gz
deleted file mode 100644
index 9912df3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz
deleted file mode 100644
index af1052d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz
deleted file mode 100644
index 35870dc..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_BE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz
deleted file mode 100644
index 3c3a9b4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz
deleted file mode 100644
index a2136b7..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_CH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz
deleted file mode 100644
index aa47e36..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz
deleted file mode 100644
index ffb547d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_FR_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz
deleted file mode 100644
index c664df2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz
deleted file mode 100644
index 6b9d6b5..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/fr_LU_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ga.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ga.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ga.js.gz
deleted file mode 100644
index d7d24e7..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ga.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz
deleted file mode 100644
index 7d3c880..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ga_IE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/gu.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/gu.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/gu.js.gz
deleted file mode 100644
index 66416b2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/gu.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz
deleted file mode 100644
index 4d0608c..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/gu_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz
deleted file mode 100644
index 6b07571..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/hi_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/hr.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/hr.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/hr.js.gz
deleted file mode 100644
index cbfb8a6..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/hr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz
deleted file mode 100644
index 61c88c4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/hr_HR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/hu.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/hu.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/hu.js.gz
deleted file mode 100644
index 61e3c8c..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/hu.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz
deleted file mode 100644
index cabecb1..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz
deleted file mode 100644
index 4d3edc6..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz
deleted file mode 100644
index 4c914db..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/hu_HU_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/in.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/in.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/in.js.gz
deleted file mode 100644
index 5005d70..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/in.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/in_ID.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/in_ID.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/in_ID.js.gz
deleted file mode 100644
index 3f982c4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/in_ID.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/is.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/is.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/is.js.gz
deleted file mode 100644
index 903b3f2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/is.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/is_IS.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/is_IS.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/is_IS.js.gz
deleted file mode 100644
index 5a7a4cf..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/is_IS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/it.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/it.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/it.js.gz
deleted file mode 100644
index f9ffdb8..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/it.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/it_CH.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/it_CH.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/it_CH.js.gz
deleted file mode 100644
index 0c474dd..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/it_CH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT.js.gz
deleted file mode 100644
index fc88b58..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz
deleted file mode 100644
index ef6be7a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/it_IT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/iw.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/iw.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/iw.js.gz
deleted file mode 100644
index 956a656..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/iw.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz
deleted file mode 100644
index e51daa1..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/iw_IL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ja.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ja.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ja.js.gz
deleted file mode 100644
index 5d604b3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ja.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz
deleted file mode 100644
index ef1956f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz
deleted file mode 100644
index 358b709..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ja_JP_JP.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/kk.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/kk.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/kk.js.gz
deleted file mode 100644
index d1bc61a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/kk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz
deleted file mode 100644
index 40a1732..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/kk_KZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/kn.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/kn.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/kn.js.gz
deleted file mode 100644
index 4a668ab..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/kn.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz
deleted file mode 100644
index f813453..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/kn_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ko.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ko.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ko.js.gz
deleted file mode 100644
index a3752b4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ko.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz
deleted file mode 100644
index a1d6b83..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ko_KR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lt.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lt.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lt.js.gz
deleted file mode 100644
index 959e78f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lt.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz
deleted file mode 100644
index d981980..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz
deleted file mode 100644
index cf11515..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz
deleted file mode 100644
index c438a65..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lt_LT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lv.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lv.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lv.js.gz
deleted file mode 100644
index a768a43..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lv.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz
deleted file mode 100644
index b877f68..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz
deleted file mode 100644
index 9a4fa57..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz
deleted file mode 100644
index 757c861..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/lv_LV_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mk.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mk.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mk.js.gz
deleted file mode 100644
index b437e2b..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz
deleted file mode 100644
index 9dba801..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mk_MK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz
deleted file mode 100644
index f0553f1..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ml_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mr.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mr.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mr.js.gz
deleted file mode 100644
index 3f00081..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz
deleted file mode 100644
index 3f4e42f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mr_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ms.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ms.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ms.js.gz
deleted file mode 100644
index 47b15ab..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ms.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz
deleted file mode 100644
index d4b42f4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ms_MY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mt.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mt.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mt.js.gz
deleted file mode 100644
index f46acdf..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mt.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz
deleted file mode 100644
index 65bd5d4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz
deleted file mode 100644
index c371c5a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz
deleted file mode 100644
index 272ed07..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/mt_MT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz
deleted file mode 100644
index 953b051..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/nb_NO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/nl.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/nl.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/nl.js.gz
deleted file mode 100644
index 1fc0521..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/nl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz
deleted file mode 100644
index 4ea4bd5..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz
deleted file mode 100644
index b69f55a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_BE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz
deleted file mode 100644
index f10c527..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz
deleted file mode 100644
index a36a696..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/nl_NL_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/no.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/no.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/no.js.gz
deleted file mode 100644
index 2828495..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/no.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO.js.gz
deleted file mode 100644
index f027493..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz
deleted file mode 100644
index 71e5b02..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/no_NO_NY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/or_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/or_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/or_IN.js.gz
deleted file mode 100644
index fcec744..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/or_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pa.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pa.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pa.js.gz
deleted file mode 100644
index a818414..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pa.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz
deleted file mode 100644
index e86fc9d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pa_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pl.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pl.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pl.js.gz
deleted file mode 100644
index 92a36df..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz
deleted file mode 100644
index be45a80..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz
deleted file mode 100644
index ad0dd65..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz
deleted file mode 100644
index a0c6116..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pl_PL_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pt.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pt.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pt.js.gz
deleted file mode 100644
index 1a02bc1..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pt.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz
deleted file mode 100644
index 89adc5e..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pt_BR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz
deleted file mode 100644
index 9f38787..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz
deleted file mode 100644
index 5adb184..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/pt_PT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ro.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ro.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ro.js.gz
deleted file mode 100644
index 3e04e6e..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ro.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz
deleted file mode 100644
index 1ef6e7d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ro_RO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ru.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ru.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ru.js.gz
deleted file mode 100644
index 664de07..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ru.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz
deleted file mode 100644
index 49bc219..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ru_RU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sh.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sh.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sh.js.gz
deleted file mode 100644
index 3db9b20..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sh.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz
deleted file mode 100644
index 0f62a17..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sh_CS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sk.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sk.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sk.js.gz
deleted file mode 100644
index 8636208..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz
deleted file mode 100644
index dfb2908..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz
deleted file mode 100644
index baddfcf..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz
deleted file mode 100644
index e1cc9e0..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sk_SK_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sl.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sl.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sl.js.gz
deleted file mode 100644
index ac93f3e..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz
deleted file mode 100644
index 7286da1..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz
deleted file mode 100644
index 1eabc09..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sl_SI_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sq.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sq.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sq.js.gz
deleted file mode 100644
index 0a5f716..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sq.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz
deleted file mode 100644
index 2969ca7..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sq_AL.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sr.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sr.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sr.js.gz
deleted file mode 100644
index 45a8f4b..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz
deleted file mode 100644
index 89f8484..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_BA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz
deleted file mode 100644
index 9d3d758..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_CS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz
deleted file mode 100644
index d50466e..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_ME.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz
deleted file mode 100644
index 66e041f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz
deleted file mode 100644
index 9cc15d6..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Cyrl.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz
deleted file mode 100644
index a3a9a93..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sr_RS_Latn.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sv.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sv.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sv.js.gz
deleted file mode 100644
index eec6524..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sv.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz
deleted file mode 100644
index ec4b9a7..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz
deleted file mode 100644
index 2f860b9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz
deleted file mode 100644
index 1bfce15..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/sv_SE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ta.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ta.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ta.js.gz
deleted file mode 100644
index d7581ea..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ta.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz
deleted file mode 100644
index d94fe66..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ta_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/te.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/te.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/te.js.gz
deleted file mode 100644
index c69b725..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/te.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/te_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/te_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/te_IN.js.gz
deleted file mode 100644
index 2f21145..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/te_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/th.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/th.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/th.js.gz
deleted file mode 100644
index 13b44cc..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/th.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH.js.gz
deleted file mode 100644
index 9a44dfe..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz
deleted file mode 100644
index cfd9252..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/th_TH_TH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/tr.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/tr.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/tr.js.gz
deleted file mode 100644
index f54579f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/tr.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz
deleted file mode 100644
index 27e9cd3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/tr_TR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/uk.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/uk.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/uk.js.gz
deleted file mode 100644
index 246525c..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/uk.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz
deleted file mode 100644
index f73c575..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/uk_UA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/vi.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/vi.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/vi.js.gz
deleted file mode 100644
index 7a47737..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/vi.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz
deleted file mode 100644
index 9cdd564..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/vi_VN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/zh.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/zh.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/zh.js.gz
deleted file mode 100644
index ea819e5..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/zh.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz
deleted file mode 100644
index eeddad9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_CN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz
deleted file mode 100644
index 63130e3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_HK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz
deleted file mode 100644
index ced2c42..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_SG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz
deleted file mode 100644
index 105e4fa..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/zh_TW.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png b/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png
deleted file mode 100644
index 29873e9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png and /dev/null differ


[03/50] [abbrv] webworks commit: [CB-3798] Update checkreqs for blackberry-debugtokenrequest

Posted by je...@apache.org.
[CB-3798] Update checkreqs for blackberry-debugtokenrequest


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/539749e2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/539749e2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/539749e2

Branch: refs/heads/3.1.x
Commit: 539749e24e0e50b5c0b3dc9166314f71c4a42e17
Parents: 7b93346
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Fri Jul 26 18:07:33 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Jul 30 10:03:09 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/check_reqs     | 4 ++++
 blackberry10/bin/check_reqs.bat | 4 ++++
 blackberry10/bin/create.js      | 5 ++++-
 3 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/539749e2/blackberry10/bin/check_reqs
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs b/blackberry10/bin/check_reqs
index d69ee77..f3945b0 100755
--- a/blackberry10/bin/check_reqs
+++ b/blackberry10/bin/check_reqs
@@ -26,6 +26,7 @@ JAVA=$(command -v java)
 PACKAGER="$CORDOVA_BBTOOLS/blackberry-nativepackager"
 DEPLOYER="$CORDOVA_BBTOOLS/blackberry-deploy"
 SIGNER="$CORDOVA_BBTOOLS/blackberry-signer"
+DEBUGTOKENREQUEST="$CORDOVA_BBTOOLS/blackberry-debugtokenrequest"
 
 if [ ! -x "$NODE" ]; then
     echo node cannot be found on the path. Aborting.
@@ -45,6 +46,9 @@ elif [ ! -x "$DEPLOYER" ]; then
 elif [ ! -x "$SIGNER" ]; then
     echo blackberry-signer cannot be found on the path. Aborting.
     EXIT_CODE=1
+elif [ ! -x "$DEBUGTOKENREQUEST" ]; then
+    echo blackberry-debugtokenrequest cannot be found on the path. Aborting.
+    EXIT_CODE=1
 else
     "$NODE" "$( dirname "$0" )/check_reqs.js" "$@"
     EXIT_CODE=0

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/539749e2/blackberry10/bin/check_reqs.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs.bat b/blackberry10/bin/check_reqs.bat
index e08ada7..91d3ac0 100755
--- a/blackberry10/bin/check_reqs.bat
+++ b/blackberry10/bin/check_reqs.bat
@@ -51,5 +51,9 @@ if not exist "%CORDOVA_BBTOOLS%\blackberry-signer" (
   echo blackberry-signer cannot be found on the path. Aborting.
   exit /b 1
 )
+if not exist "%CORDOVA_BBTOOLS%\blackberry-debugtokenrequest" (
+  echo blackberry-debugtokenrequest cannot be found on the path. Aborting.
+  exit /b 1
+)
 
 "%CORDOVA_NODE%\node" "%~dp0\check_reqs.js" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/539749e2/blackberry10/bin/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create.js b/blackberry10/bin/create.js
index 26a9109..deee89d 100644
--- a/blackberry10/bin/create.js
+++ b/blackberry10/bin/create.js
@@ -117,7 +117,8 @@ function copyFilesToProject() {
         bbtoolsLibDest = path.join(project_path, "cordova", "dependencies", "bb-tools", "lib"),
         bbNativePackager = "blackberry-nativepackager",
         bbSigner = "blackberry-signer",
-        bbDeploy = "blackberry-deploy";
+        bbDeploy = "blackberry-deploy",
+        bbDebugTokenRequest= "blackberry-debugtokenrequest";
 
     // create project using template directory
     wrench.mkdirSyncRecursive(project_path, 0777);
@@ -136,11 +137,13 @@ function copyFilesToProject() {
             bbNativePackager += ".bat";
             bbSigner += ".bat";
             bbDeploy += ".bat";
+            bbDebugTokenRequest += ".bat";
         }
 
         utils.copyFile(path.join(BIN_DIR, "dependencies", "bb-tools", "bin", bbNativePackager), bbtoolsBinDest);
         utils.copyFile(path.join(BIN_DIR, "dependencies", "bb-tools", "bin", bbSigner), bbtoolsBinDest);
         utils.copyFile(path.join(BIN_DIR, "dependencies", "bb-tools", "bin", bbDeploy), bbtoolsBinDest);
+        utils.copyFile(path.join(BIN_DIR, "dependencies", "bb-tools", "bin", bbDebugTokenRequest), bbtoolsBinDest);
 
         //copy bb-tools lib folder
         wrench.mkdirSyncRecursive(bbtoolsLibDest, 0755);


[16/50] [abbrv] webworks commit: [CB-4575] Removing plugman chmod change from creation as we no longer use plugman within the framework

Posted by je...@apache.org.
[CB-4575] Removing plugman chmod change from creation as we no longer use plugman within the framework


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/9bf2a4cd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/9bf2a4cd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/9bf2a4cd

Branch: refs/heads/3.1.x
Commit: 9bf2a4cd62fab4bdde2787f7c53013770196ac33
Parents: b094165
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Tue Aug 13 11:22:21 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Tue Aug 13 14:12:05 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/create.js | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9bf2a4cd/blackberry10/bin/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create.js b/blackberry10/bin/create.js
index ebba0e2..743e60c 100644
--- a/blackberry10/bin/create.js
+++ b/blackberry10/bin/create.js
@@ -172,9 +172,6 @@ function copyFilesToProject() {
     wrench.mkdirSyncRecursive(nodeModulesDest, 0777);
     wrench.copyDirSyncRecursive(MODULES_PROJECT_DIR, nodeModulesDest);
 
-    //change permissions of plugman
-    fs.chmodSync(path.join(nodeModulesDest, "plugman", "main.js"), 0755);
-
     //copy framework bootstrap
     TARGETS.forEach(function (target) {
         var chromeDir = path.join(native_dir, target, "chrome"),


[14/50] [abbrv] webworks commit: [CB-4342] Detect USB connected device

Posted by je...@apache.org.
[CB-4342] Detect USB connected device

- Use 'os' module find IP address of USB connected device
- Add new target to blackberry10.json as Model-PIN


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/9a766e00
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/9a766e00
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/9a766e00

Branch: refs/heads/3.1.x
Commit: 9a766e00ac21905f325eed0746547efa7ade21cd
Parents: 0dbdf30
Author: Bryan Higgins <br...@bryanhiggins.net>
Authored: Tue Jul 23 12:58:38 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Aug 12 11:16:23 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/run       | 37 +++++++++-
 .../project/cordova/lib/target-utils.js         | 78 +++++++++++++++++++-
 2 files changed, 107 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9a766e00/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index e47e6c6..e604dd5 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -97,6 +97,10 @@ function execNativeDeploy(optionsArray, callback) {
 }
 
 function setTarget(callback) {
+    var props = utils.getProperties(),
+        targetName;
+
+
     target = program.args[0] ? program.args[0] : targets.defaultTarget;
     if (program["device"]) {
         targetUtils.getTargetList("device", true, function (targets) {
@@ -104,9 +108,33 @@ function setTarget(callback) {
                 target = targets[0].name;
                 callback();
             } else {
-                console.error("No connected device found");
-                console.error("Devices must first be configured using platforms/blackberry/cordova/target");
-                process.exit(1);
+                targetUtils.findConnectedDevice(function (ip) {
+                    if (!ip) {
+                        console.error("No connected device found");
+                        process.exit(1);
+                    } else {
+                        targetUtils.getDeviceInfo(ip, program["password"], function (device) {
+                            if (device.name) {
+                                targetName = device.name + "-" + device.pin;
+                                props.targets[targetName] = {
+                                    ip: ip,
+                                    pin: device.pin,
+                                    type: "device",
+                                    password: program["password"]
+                                };
+                                utils.writeToPropertiesFile(props);
+                                target = targetName;
+                                callback();
+                            } else {
+                                console.error("Unable to authenticate with device at " + ip);
+                                if (!program["password"]) {
+                                    console.error("Please provide device password using --password");
+                                }
+                                process.exit(1);
+                            }
+                        });
+                    }
+                });
             }
         });
     } else if (program["emulator"]) {
@@ -286,10 +314,11 @@ function postBuild() {
 
 function exec() {
     program
-        .usage('[--device] [--emulator] [--target=<id>] [-k | --keystorepass] [--no-launch] [--no-uninstall] [--no-build]')
+        .usage('[--device] [--emulator] [--password] [--target=<id>] [-k | --keystorepass] [--no-launch] [--no-uninstall] [--no-build]')
         .option('-k, --keystorepass <password>', 'the password of signing key; needed for creating debug token')
         .option('--device', 'run on connected device')
         .option('--emulator', 'run on BB10 simulator')
+        .option('--password <password>', 'device password')
         .option('--target', 'specifies the target to run the application')
         .option('--no-uninstall', 'does not uninstall application from device')
         .option('--no-launch', 'do not launch the application on device')

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9a766e00/blackberry10/bin/templates/project/cordova/lib/target-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/target-utils.js b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
index f74b4f2..535a104 100644
--- a/blackberry10/bin/templates/project/cordova/lib/target-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
@@ -15,6 +15,7 @@
  */
 
 var _self,
+    os = require("os"),
     exec = require('child_process').exec,
     path = require('path'),
     bb10_utils = require('./utils'),
@@ -42,7 +43,9 @@ _self = {
                 if (count === Object.keys(targets).length) {
                     callback(targList);
                 }
-            };
+            },
+            t;
+
         if (targets) {
             for (t in targets) {
                 if (targets.hasOwnProperty(t) && targets[t].type === type) {
@@ -61,9 +64,76 @@ _self = {
         complete();
     },
 
+    getDeviceInfo: function(ip, password, callback) {
+        var cmd = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy') + ' -listDeviceInfo ' + ip;
+        if (password) {
+            cmd += ' -password ' + password;
+        }
+        exec(cmd, function(error, stdout, stderr) {
+            var result = {},
+                name = /modelname::(.*?)\n/.exec(stdout),
+                pin = /devicepin::0x(.*?)\n/.exec(stdout);
+            if (name && name.length > 0) {
+                result.name = name[1];
+            }
+            if (pin && pin.length > 0) {
+                result.pin = pin[1];
+            }
+            callback(result);
+        });
+    },
+
+    findConnectedDevice: function(callback) {
+        var defaultIp = '169.254.0.1';
+        _self.discoverUsb(function (result) {
+           if (result) {
+                _self.checkConnection(result, 'device', function (connection) {
+                    if (connection)  {
+                        callback(result);
+                    } else {
+                        callback();
+                    }
+                });
+            } else {
+                _self.checkConnection(defaultIp, 'device', function (connection) {
+                    if (connection) {
+                        callback(defaultIp);
+                    } else {
+                        callback();
+                    }
+                });
+            }
+        });
+    },
+
+    discoverUsb: function(callback) {
+        var IPV4_TYPE = "IPv4",
+            IP_SPLIT_REGEXP = /(169\.254\.\d{1,3}\.)(\d{1,3})/,
+            networkInterfaces = os.networkInterfaces(),
+            result,
+            ni,
+            i;
+
+        for (ni in networkInterfaces) {
+            if (networkInterfaces.hasOwnProperty(ni)) {
+                for (i=0; i< networkInterfaces[ni].length; i++) {
+                    if (networkInterfaces[ni][i].family === IPV4_TYPE) {
+                        result = IP_SPLIT_REGEXP.exec(networkInterfaces[ni][i].address);
+                        if (result && result[1] && result[2]) {
+                            callback(result[1] + (result[2] -1));
+                            return;
+                        }
+                    }
+                }
+
+            }
+        }
+        //If we haven't found anything callback in defeat
+        callback();
+    },
+
     checkConnection: function(ip, type, callback) {
         var script = bb10_utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy'));
-
         exec(script + ' -test ' + ip, function(error, stdout, stderr) {
             // error code 3 corresponds to a connected device, null corresponds to connected sim
             callback((type === 'simulator' && error === null) || (type == 'device' && error.code === 3));
@@ -72,8 +142,8 @@ _self = {
 
     listTargets : function(type, pruneDisconnected) {
         _self.getTargetList(type, pruneDisconnected, function (targets) {
-            for (t in targets) {
-                console.log(targets[t].name + ' ip: ' + targets[t].ip + (pruneDisconnected ? ' status: connected' : ''));
+            for (var t in targets) {
+                console.log(targets[t].name + ' ip: ' + targets[t].ip);
             }
         });
     }


[30/50] [abbrv] webworks commit: [CB-4734] Fixed issue where plugins are not added to frameworkModules

Posted by je...@apache.org.
[CB-4734] Fixed issue where plugins are not added to frameworkModules

  Reviewed By: Jeffrey Heifetz <jh...@blackberry.com>
  Tested By: Rowell Cruz <rc...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/29ba97c8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/29ba97c8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/29ba97c8

Branch: refs/heads/3.1.x
Commit: 29ba97c8b77fc939ad34f4992b53a50d3296145d
Parents: d7d78a8
Author: DanielAudino <da...@blackberry.com>
Authored: Tue Sep 3 14:31:53 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Tue Sep 3 15:20:03 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/file-manager.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/29ba97c8/blackberry10/bin/templates/project/cordova/lib/file-manager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/file-manager.js b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
index b9ba013..21493df 100755
--- a/blackberry10/bin/templates/project/cordova/lib/file-manager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
@@ -109,7 +109,7 @@ function getModulesArray(dest, files, baseDir) {
         file = path.resolve(baseDir, file);
 
         if (!fs.statSync(file).isDirectory()) {
-            if (baseDir !== dest.EXT && !isExcluded(file)) {
+            if (!isExcluded(file)) {
                 modulesList.push({name: path.relative(path.normalize(dest.CHROME), file).replace(/\\/g, "/"), file: file});
             }
         }


[28/50] [abbrv] webworks commit: [BlackBerry10] Updated init to work on Windows 7 with long paths with spaces

Posted by je...@apache.org.
[BlackBerry10] Updated init to work on Windows 7 with long paths
    with spaces


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/e565e657
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/e565e657
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/e565e657

Branch: refs/heads/3.1.x
Commit: e565e65792825e32506ff32b1775ff4e16d2ab1e
Parents: 9464372
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Fri Aug 30 16:06:46 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Fri Aug 30 16:06:46 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/init.bat | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/e565e657/blackberry10/bin/init.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/init.bat b/blackberry10/bin/init.bat
index 79020e2..f5637cb 100644
--- a/blackberry10/bin/init.bat
+++ b/blackberry10/bin/init.bat
@@ -18,8 +18,8 @@ goto comment
        under the License.
 :comment
 
-set LOCAL_NODE_BINARY=%~dp0dependencies\node\bin
-set LOCAL_BBTOOLS_BINARY=%~dp0dependencies\bb-tools\bin
+set LOCAL_NODE_BINARY=%~dps0dependencies\node\bin
+set LOCAL_BBTOOLS_BINARY=%~dps0dependencies\bb-tools\bin
 
 
 


[31/50] [abbrv] webworks commit: [CB-4734] Added list of files to keep in chrome/lib

Posted by je...@apache.org.
[CB-4734] Added list of files to keep in chrome/lib

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/48a64755
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/48a64755
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/48a64755

Branch: refs/heads/3.1.x
Commit: 48a64755cff91d48acbe026d068672c9b6453184
Parents: 29ba97c
Author: Rowell Cruz <rc...@blackberry.com>
Authored: Thu Sep 5 11:53:48 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Sep 5 15:40:40 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/file-manager.js        | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/48a64755/blackberry10/bin/templates/project/cordova/lib/file-manager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/file-manager.js b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
index 21493df..8695a9b 100755
--- a/blackberry10/bin/templates/project/cordova/lib/file-manager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
@@ -27,7 +27,8 @@ var path = require("path"),
     CLIENT_JS = "client.js",
     SERVER_JS = "index.js",
     VALID_EXTENSIONS = [".js", ".json"],
-    CORDOVA_JS_REGEX = /(cordova-.+js)|cordova\.js/;
+    CORDOVA_JS_REGEX = /(cordova-.+js)|cordova\.js/,
+    MODULES_TO_KEEP = ["lib/utils.js", "lib/exception.js"];
 
 function unzip(from, to) {
     var data, entries, p, parent;
@@ -140,7 +141,10 @@ function generateFrameworkModulesJS(session) {
                       fs.readFileSync(module.file, "utf-8") + "\n" +
                       "});\n";
         frameworkModulesStr += "'" + module.name + "'" +  (index !== modulesList.length-1 ? ", " : "");
-        fs.unlinkSync(path.normalize(dest.CHROME + "/" + module.name));
+        // Issue with 10.1 webplatform - requires certain files in chrome/lib
+        if (MODULES_TO_KEEP.indexOf(module.name) < 0) {
+            fs.unlinkSync(path.normalize(dest.CHROME + "/" + module.name));
+        }
     });
 
     modulesStr += "}());";


[15/50] [abbrv] webworks commit: [CB-4344] Auto-detect started simulator

Posted by je...@apache.org.
[CB-4344] Auto-detect started simulator

- check VMware dhcp.leases file for possible started simulator
- fix lint
- update device detection
- Fixed debugtoken-helper deploy method due to the missing target password in the properties file


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/b0941650
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/b0941650
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/b0941650

Branch: refs/heads/3.1.x
Commit: b094165016eea43e710c1ad01a5964a874cfe1d9
Parents: 9a766e0
Author: Eric Li <el...@blackberry.com>
Authored: Thu Aug 8 14:01:46 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Aug 12 11:33:55 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/lib/utils.js                   |  36 ++++-
 .../project/cordova/lib/debugtoken-helper.js    | 104 +++-----------
 .../bin/templates/project/cordova/lib/run       | 136 +++++++++----------
 .../project/cordova/lib/signing-helper.js       |   2 +-
 .../project/cordova/lib/target-utils.js         | 116 +++++++++++++---
 5 files changed, 217 insertions(+), 177 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b0941650/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index 4f4a500..04fd6f3 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -94,6 +94,40 @@ _self = {
         return filteredFiles;
     },
 
+    readdirSyncRecursive: function (baseDir) {
+        var files = [],
+            curFiles = [],
+            nextDirs,
+            isDir = function (f) {
+                return fs.statSync(f).isDirectory();
+            },
+            isFile = function (f) {
+                return !isDir(f);
+            },
+            prependBaseDir = function (fname) {
+                return path.join(baseDir, fname);
+            };
+
+        try {
+            curFiles = fs.readdirSync(baseDir);
+
+            if (curFiles && curFiles.length > 0) {
+                curFiles = curFiles.map(prependBaseDir);
+                nextDirs = curFiles.filter(isDir);
+                curFiles = curFiles.filter(isFile);
+
+                files = files.concat(curFiles);
+
+                while (nextDirs.length) {
+                    files = files.concat(_self.readdirSyncRecursive(nextDirs.shift()));
+                }
+            }
+        } catch (e) {
+        }
+
+        return files;
+    },
+
     isWindows: function () {
         return os.type().toLowerCase().indexOf("windows") >= 0;
     },
@@ -213,7 +247,7 @@ _self = {
         fs.writeFileSync(propertiesFile, contents, 'utf-8');
     },
 
-    genBarName: function() {
+    genBarName: function () {
         return DEFAULT_BAR_NAME;
     }
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b0941650/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
index 206bd58..af42fce 100755
--- a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
@@ -26,7 +26,6 @@ var childProcess = require("child_process"),
     debugTokenDir = path.normalize(path.join(utils.getCordovaDir(), "blackberry10debugtoken.bar")),
     properties,
     targets,
-    deployCallback,
     self = {};
 
 function isDebugTokenValid(pin, data) {
@@ -44,11 +43,11 @@ function isDebugTokenValid(pin, data) {
 
     manifests = data.toString().replace(/[\r]/g, '').split('\n');
 
-    for (i=0, l=manifests.length; i<l; i++) {
+    for (i = 0, l = manifests.length; i < l; i++) {
         if (manifests[i].indexOf("Debug-Token-Expiry-Date: ") >= 0) {
             // Parse the expiry date
             line = manifests[i].substring("Debug-Token-Expiry-Date: ".length);
-            expiry = new Date(line.substring(0, line.indexOf("T")) + " " + line.substring(line.indexOf("T") + 1, line.length -1) + " UTC");
+            expiry = new Date(line.substring(0, line.indexOf("T")) + " " + line.substring(line.indexOf("T") + 1, line.length - 1) + " UTC");
         } else if (manifests[i].indexOf("Debug-Token-Device-Id: ") >= 0) {
             line = manifests[i].substring("Debug-Token-Device-Id: ".length);
             devices = line.split(",");
@@ -56,7 +55,7 @@ function isDebugTokenValid(pin, data) {
     }
 
     if (expiry && expiry > now) {
-        for (i=0, l=devices.length; i<l; i++) {
+        for (i = 0, l = devices.length; i < l; i++) {
             if (parseInt(devices[i]) === parseInt(pin, 16)) {
                 return true; // The debug token is valid if not expired and device pin is included
             }
@@ -83,24 +82,26 @@ function generateCreateTokenOptions(pins, password) {
     return options;
 }
 
-function generateDeployTokenOptions(target) {
+function generateDeployTokenOptions(targetIp, targetPassword) {
     var options = [];
 
     options.push("-installDebugToken");
     options.push(debugTokenDir);
 
     options.push("-device");
-    options.push(properties.targets[target].ip);
+    options.push(targetIp);
 
-    options.push("-password");
-    options.push(properties.targets[target].password);
+    if (targetPassword) {
+        options.push("-password");
+        options.push(targetPassword);
+    }
 
     return options;
 }
 
 function execNativeScript(script, options, callback) {
-    var cp;
-        script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, script));
+    var cp,
+        script = path.join(process.env.CORDOVA_BBTOOLS, script);
 
     if (pkgrUtils.isWindows()) {
         script += ".bat";
@@ -122,49 +123,6 @@ function execNativeScript(script, options, callback) {
     });
 }
 
-function checkTarget(target) {
-    if (!properties.targets[target]) {
-        logger.warn(localize.translate("WARN_TARGET_NOT_EXIST", target));
-        return false;
-    }
-
-    if (!properties.targets[target].ip) {
-        logger.warn(localize.translate("WARN_IP_NOT_DEFINED", target));
-        return false;
-    }
-
-    if (!properties.targets[target].password) {
-        logger.warn(localize.translate("WARN_PASSWORD_NOT_DEFINED", target));
-        return false;
-    }
-
-    return true;
-
-}
-
-// Deploy the debug token for each target in targets array recursively
-function deployTokenToTargetsRecursively() {
-    var target;
-
-    if (targets.length > 0) {
-        target = targets.pop();
-
-        logger.info(localize.translate("PROGRESS_DEPLOYING_DEBUG_TOKEN", target));
-        if (checkTarget(target)) {
-            execNativeScript("blackberry-deploy",
-                generateDeployTokenOptions(target),
-                deployTokenToTargetsRecursively
-            );
-        } else {
-            deployTokenToTargetsRecursively();
-        }
-    } else {
-        if (deployCallback && typeof deployCallback === "function") {
-            deployCallback();
-        }
-    }
-}
-
 self.createToken = function (projectProperties, target, keystorepass, callback) {
     var pins = [],
         key;
@@ -209,38 +167,12 @@ self.createToken = function (projectProperties, target, keystorepass, callback)
     }
 };
 
-self.deployToken = function (projectProperties, target, callback) {
-    var key;
-
-    // Store the global variable "properties"
-    properties = projectProperties;
-
-    // Initialize the global variable "targets"
-    targets = [];
-
-    // Store callback so it will be invoked after debug token is deployed to all target(s)
-    deployCallback = callback;
-
-    // Gather targets information from properties
-    // Gather PINs information from properties
-    if (target === "all") {
-        for (key in properties.targets) {
-            if (properties.targets.hasOwnProperty(key) && properties.targets[key].pin) {
-                targets.push(key);
-            }
-        }
-    } else {
-        if (!target) {
-            target = properties.defaultTarget;
-        }
-
-        if (properties.targets.hasOwnProperty(target) && properties.targets[target].pin) {
-            targets.push(target);
-        }
-    }
-
-    // Deploy debug token recursively
-    deployTokenToTargetsRecursively();
+self.deployToken = function (target, targetIp, targetPassword, callback) {
+    logger.info(localize.translate("PROGRESS_DEPLOYING_DEBUG_TOKEN", target));
+    execNativeScript("blackberry-deploy",
+        generateDeployTokenOptions(targetIp, targetPassword),
+        callback
+    );
 };
 
 self.checkDebugToken = function (pin, callback) {
@@ -260,7 +192,7 @@ self.checkDebugToken = function (pin, callback) {
         script += ".bat";
     }
 
-    nativePackager = childProcess.exec(path.normalize(script +" -listManifest " + debugTokenDir), {
+    nativePackager = childProcess.exec(path.normalize(script + " -listManifest " + debugTokenDir), {
         "cwd": workingDir,
         "env": process.env
     }, function (error, stdout, stderr) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b0941650/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index e604dd5..3ec1b45 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -42,8 +42,8 @@ var childProcess = require("child_process"),
     workingdir = path.normalize(__dirname + "/..");
 
 function generateOptions(uninstall) {
-    var options = [];
-    barPath = pkgrUtils.escapeStringForShell(path.normalize(__dirname + "/../../build/" + targets.targets[target].type + "/" + utils.genBarName() + ".bar"));
+    var options = [],
+        barPath = pkgrUtils.escapeStringForShell(path.normalize(__dirname + "/../../build/" + targets.targets[target].type + "/" + utils.genBarName() + ".bar"));
 
     options.push("-device");
     options.push(ip);
@@ -73,14 +73,14 @@ function generateOptions(uninstall) {
 
 function execNativeDeploy(optionsArray, callback) {
     var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy")),
-        nativeDeploy;
+        nativeDeploy,
         options = optionsArray.join(" ");
 
     if (pkgrUtils.isWindows()) {
         script += ".bat";
     }
 
-    nativeDeploy = childProcess.exec(path.normalize(script +" "+ options), {
+    nativeDeploy = childProcess.exec(path.normalize(script + " " + options), {
         "cwd": workingdir,
         "env": process.env
     });
@@ -96,56 +96,55 @@ function execNativeDeploy(optionsArray, callback) {
     });
 }
 
-function setTarget(callback) {
+function checkDeviceInfo(ip, deviceType, callback) {
     var props = utils.getProperties(),
         targetName;
 
+    targetUtils.getDeviceInfo(ip, program["devicepass"], function (device) {
+        if (device.name) {
+            targetName = device.name + "-" + device.pin;
+            props.targets[targetName] = {
+                ip: ip,
+                pin: device.pin,
+                type: deviceType
+            };
+            utils.writeToPropertiesFile(props);
+            target = targetName;
+            callback();
+        } else {
+            if (deviceType === "device") {
+                console.error("Unable to authenticate with device at " + ip);
+            } else {
+                console.error("Unable to authenticate with simulator at " + ip);
+            }
+
+            if (!program["devicepass"]) {
+                console.error("Please provide device password using --devicepass");
+            }
+
+            process.exit(1);
+        }
+    });
+}
 
+function setTarget(callback) {
     target = program.args[0] ? program.args[0] : targets.defaultTarget;
     if (program["device"]) {
-        targetUtils.getTargetList("device", true, function (targets) {
-            if (targets && targets.length > 0) {
-                target = targets[0].name;
-                callback();
+        targetUtils.findConnectedDevice(function (ip) {
+            if (!ip) {
+                console.error("No connected device found");
+                process.exit(1);
             } else {
-                targetUtils.findConnectedDevice(function (ip) {
-                    if (!ip) {
-                        console.error("No connected device found");
-                        process.exit(1);
-                    } else {
-                        targetUtils.getDeviceInfo(ip, program["password"], function (device) {
-                            if (device.name) {
-                                targetName = device.name + "-" + device.pin;
-                                props.targets[targetName] = {
-                                    ip: ip,
-                                    pin: device.pin,
-                                    type: "device",
-                                    password: program["password"]
-                                };
-                                utils.writeToPropertiesFile(props);
-                                target = targetName;
-                                callback();
-                            } else {
-                                console.error("Unable to authenticate with device at " + ip);
-                                if (!program["password"]) {
-                                    console.error("Please provide device password using --password");
-                                }
-                                process.exit(1);
-                            }
-                        });
-                    }
-                });
+                checkDeviceInfo(ip, "device", callback);
             }
         });
     } else if (program["emulator"]) {
-        targetUtils.getTargetList("simulator", true, function (targets) {
-            if (targets && targets.length > 0) {
-                target = targets[0].name;
-                callback();
-            } else {
-                console.error("No connected BB10 simulator found");
-                console.error("Simulators must first be configured using platforms/blackberry/cordova/target");
+        targetUtils.findConnectedSimulator(function (ip) {
+            if (!ip) {
+                console.error("No connected BlackBerry 10 simulator found");
                 process.exit(1);
+            } else {
+                checkDeviceInfo(ip, "simulator", callback);
             }
         });
     } else {
@@ -160,23 +159,36 @@ function checkTarget() {
         return false;
     }
     if (!targets.targets[target]) {
-        console.log("The target \""+target+"\" does not exist, to add that target please run target add "+target+" <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]");
+        console.log("The target \"" + target + "\" does not exist, to add that target please run target add " + target + " <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]");
         console.log(program.helpInformation());
         return false;
     }
     if (targets.targets[target].ip) {
-       ip = targets.targets[target].ip;
+        ip = targets.targets[target].ip;
     } else {
-        console.log("IP is not defined in target \""+target+"\"");
+        console.log("IP is not defined in target \"" + target + "\"");
         console.log(program.helpInformation());
         return false;
     }
     if (targets.targets[target].password) {
-       password = targets.targets[target].password;
+        password = targets.targets[target].password;
+    } else {
+        password = program["devicepass"];
     }
     return true;
 }
 
+function deploy() {
+    var options = generateOptions(false);
+    execNativeDeploy(options, function (code) {
+        if (code) {
+            process.exit(2);
+        } else {
+            process.exit(0);
+        }
+    });
+}
+
 function uninstall() {
     var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy")),
         nativeDeploy;
@@ -185,18 +197,17 @@ function uninstall() {
         script += ".bat";
     }
 
-    nativeDeploy = childProcess.exec(script +" -listInstalledApps -device " +ip+ " -password " +password, {
+    nativeDeploy = childProcess.exec(script + " -listInstalledApps -device " + ip + " -password " + password, {
         "cwd": workingdir,
         "env": process.env
     }, function (error, stdout, stderr) {
         var parser = new xml2js.Parser();
-        fs.readFile(path.join(__dirname + "/../../www/", "config.xml"), function(err, data) {
+        fs.readFile(path.join(__dirname + "/../../www/", "config.xml"), function (err, data) {
             parser.parseString(data, function (err, result) {
-                if (stdout.indexOf(result['@'].id) != -1) {
+                if (stdout.indexOf(result['@'].id) !== -1) {
                     var options = generateOptions(true);
-                    execNativeDeploy(options,
-                        function(){
-                            deploy();
+                    execNativeDeploy(options, function () {
+                        deploy();
                     });
                 } else {
                     deploy();
@@ -206,17 +217,6 @@ function uninstall() {
     });
 }
 
-function deploy() {
-    options = generateOptions(false);
-    execNativeDeploy(options, function (code) {
-        if (code) {
-            process.exit(2);
-        } else {
-            process.exit(0);
-        }
-    });
-}
-
 function checkDebugtoken(previous, baton) {
     baton.take();
 
@@ -253,7 +253,7 @@ function createDebugToken(previous, baton) {
             baton.pass();
         });
     } else {
-            baton.pass();
+        baton.pass();
     }
 }
 
@@ -262,7 +262,7 @@ function deployDebugToken(previous, baton) {
 
     // If in debug build and debug token was created, deploy the debug token and wait until the deployment is finished
     if (needDeployDebugToken) {
-        debugTokenHelper.deployToken(targets, target, function () {
+        debugTokenHelper.deployToken(target, ip, password, function () {
             baton.pass();
         });
     } else {
@@ -314,11 +314,11 @@ function postBuild() {
 
 function exec() {
     program
-        .usage('[--device] [--emulator] [--password] [--target=<id>] [-k | --keystorepass] [--no-launch] [--no-uninstall] [--no-build]')
+        .usage('[--device] [--emulator] [--devicepass] [--target=<id>] [-k | --keystorepass] [--no-launch] [--no-uninstall] [--no-build]')
         .option('-k, --keystorepass <password>', 'the password of signing key; needed for creating debug token')
         .option('--device', 'run on connected device')
         .option('--emulator', 'run on BB10 simulator')
-        .option('--password <password>', 'device password')
+        .option('--devicepass <password>', 'device password')
         .option('--target', 'specifies the target to run the application')
         .option('--no-uninstall', 'does not uninstall application from device')
         .option('--no-launch', 'do not launch the application on device')

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b0941650/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
index 73b17df..2fce263 100644
--- a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
@@ -62,7 +62,7 @@ function getDefaultPath(file) {
 }
 
 function execSigner(session, target, callback) {
-    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-signer")),
+    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-signer"),
         signer,
         params = session.getParams("blackberry-signer"),
         args = [];

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b0941650/blackberry10/bin/templates/project/cordova/lib/target-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/target-utils.js b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
index 535a104..cd6829f 100644
--- a/blackberry10/bin/templates/project/cordova/lib/target-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
@@ -16,6 +16,7 @@
 
 var _self,
     os = require("os"),
+    fs = require('fs'),
     exec = require('child_process').exec,
     path = require('path'),
     bb10_utils = require('./utils'),
@@ -30,6 +31,11 @@ _self = {
                 targets[t].name = t;
                 targList.push(targets[t]);
             },
+            complete = function () {
+                if (count === Object.keys(targets).length) {
+                    callback(targList);
+                }
+            },
             checkConnection = function (name) {
                 _self.checkConnection(targets[name].ip, type, function (connected) {
                     count++;
@@ -39,11 +45,6 @@ _self = {
                     complete();
                 });
             },
-            complete = function () {
-                if (count === Object.keys(targets).length) {
-                    callback(targList);
-                }
-            },
             t;
 
         if (targets) {
@@ -64,29 +65,30 @@ _self = {
         complete();
     },
 
-    getDeviceInfo: function(ip, password, callback) {
+    getDeviceInfo: function (ip, password, callback) {
         var cmd = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy') + ' -listDeviceInfo ' + ip;
         if (password) {
             cmd += ' -password ' + password;
         }
-        exec(cmd, function(error, stdout, stderr) {
+        exec(cmd, function (error, stdout, stderr) {
             var result = {},
-                name = /modelname::(.*?)\n/.exec(stdout),
-                pin = /devicepin::0x(.*?)\n/.exec(stdout);
+                name = /modelname::(.*?)(\r?)\n/.exec(stdout),
+                pin = /devicepin::0x(.*?)(\r?)\n/.exec(stdout);
             if (name && name.length > 0) {
                 result.name = name[1];
             }
             if (pin && pin.length > 0) {
                 result.pin = pin[1];
             }
+
             callback(result);
         });
     },
 
-    findConnectedDevice: function(callback) {
+    findConnectedDevice: function (callback) {
         var defaultIp = '169.254.0.1';
         _self.discoverUsb(function (result) {
-           if (result) {
+            if (result) {
                 _self.checkConnection(result, 'device', function (connection) {
                     if (connection)  {
                         callback(result);
@@ -106,7 +108,7 @@ _self = {
         });
     },
 
-    discoverUsb: function(callback) {
+    discoverUsb: function (callback) {
         var IPV4_TYPE = "IPv4",
             IP_SPLIT_REGEXP = /(169\.254\.\d{1,3}\.)(\d{1,3})/,
             networkInterfaces = os.networkInterfaces(),
@@ -116,11 +118,11 @@ _self = {
 
         for (ni in networkInterfaces) {
             if (networkInterfaces.hasOwnProperty(ni)) {
-                for (i=0; i< networkInterfaces[ni].length; i++) {
+                for (i = 0; i < networkInterfaces[ni].length; i++) {
                     if (networkInterfaces[ni][i].family === IPV4_TYPE) {
                         result = IP_SPLIT_REGEXP.exec(networkInterfaces[ni][i].address);
                         if (result && result[1] && result[2]) {
-                            callback(result[1] + (result[2] -1));
+                            callback(result[1] + (result[2] - 1));
                             return;
                         }
                     }
@@ -132,18 +134,90 @@ _self = {
         callback();
     },
 
-    checkConnection: function(ip, type, callback) {
-        var script = bb10_utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy'));
-        exec(script + ' -test ' + ip, function(error, stdout, stderr) {
-            // error code 3 corresponds to a connected device, null corresponds to connected sim
-            callback((type === 'simulator' && error === null) || (type == 'device' && error.code === 3));
+    findConnectedSimulator: function (callback) {
+        var pathVmDhcpLeases,
+            pathUserProfile,
+            pathAllUserProfile,
+            vmDhcpLeasesFiles,
+            DHCP_LEASES_REGEX = /VMware\\vmnetdhcp.leases$/,
+            targets = blackberryProperties.targets,
+            ipsToTest = [],
+            dhcpIPs = [],
+            t;
+
+        // Firstly, check targets in the properties file
+        if (targets) {
+            for (t in targets) {
+                if (targets.hasOwnProperty(t) && targets[t].type === "simulator" && targets[t].ip) {
+                    ipsToTest.push(targets[t].ip);
+                }
+            }
+        }
+
+        // Secondly, check VMware dhcp.leases file
+        if (bb10_utils.isWindows()) {
+            pathUserProfile = process.env['USERPROFILE'];
+            pathAllUserProfile = pathUserProfile.substr(0, pathUserProfile.lastIndexOf("\\") + 1) + "All Users";
+            vmDhcpLeasesFiles = bb10_utils.readdirSyncRecursive(pathAllUserProfile).filter(function (file) {
+                return DHCP_LEASES_REGEX.test(file);
+            });
+            pathVmDhcpLeases = vmDhcpLeasesFiles[0];
+        } else {
+            pathVmDhcpLeases = "/private/var/db/vmware/vmnet-dhcpd-vmnet8.leases";
+        }
+
+        fs.readFile(pathVmDhcpLeases, 'utf8', function (err, data) {
+            if (!err) {
+                // Find all lines that start with "lease xxx.xxx.xxx.xxx "
+                dhcpIPs = data.match(/lease \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} /g);
+                dhcpIPs = dhcpIPs.map(function (result) {
+                    return result.substr(6, result.indexOf(' ', 7) - 6);
+                });
+            }
+
+            ipsToTest = ipsToTest.concat(dhcpIPs);
+            // Remove duplicated ip
+            ipsToTest = ipsToTest.filter(function (item, index, arr) {
+                return arr.indexOf(item) === index;
+            });
+
+            _self.checkConnectionRecursive(ipsToTest, 0, callback);
+        });
+    },
+
+    checkConnectionRecursive: function (ips, index, callback) {
+        var ip;
+
+        if (!ips || index === ips.length) {
+            callback();
+            return;
+        }
+
+        console.log("Searching for connected BlackBerry 10 Simulator (" + (index + 1) + "/" + ips.length + ")...");
+        ip = ips[index];
+        _self.checkConnection(ip, "simulator", function (connection) {
+            if (connection) {
+                callback(ip);
+            } else {
+                _self.checkConnectionRecursive(ips, index + 1, callback);
+            }
         });
     },
 
-    listTargets : function(type, pruneDisconnected) {
+    checkConnection: function (ip, type, callback) {
+        var script = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy');
+        exec(script + ' -test ' + ip, function (error, stdout, stderr) {
+            // error code 3 corresponds to a connected device, null or "Error: null" in stderr corresponds to connected simulator
+            callback((type === 'simulator' && (error === null || stderr.length === 0 || stderr.indexOf('Error: null') >= 0 || stderr.indexOf('Error: Authentication failed') >= 0)) || (type === 'device' && error.code === 3));
+        });
+    },
+
+    listTargets : function (type, pruneDisconnected) {
         _self.getTargetList(type, pruneDisconnected, function (targets) {
             for (var t in targets) {
-                console.log(targets[t].name + ' ip: ' + targets[t].ip);
+                if (targets.hasOwnProperty(t)) {
+                    console.log(targets[t].name + ' ip: ' + targets[t].ip);
+                }
             }
         });
     }


[48/50] [abbrv] webworks commit: CB-4876 removal of playbook implementation

Posted by je...@apache.org.
CB-4876 removal of playbook implementation


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/dad4d15f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/dad4d15f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/dad4d15f

Branch: refs/heads/3.1.x
Commit: dad4d15f1b976089601cebb0a6fa14355f4b61e9
Parents: 6f3dd91
Author: lorinbeer <lo...@adobe.com>
Authored: Thu Sep 19 13:25:45 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Thu Sep 19 13:25:45 2013 -0700

----------------------------------------------------------------------
 playbook/LICENSE                                |  268 -
 playbook/NOTICE                                 |    8 -
 playbook/README.md                              |  183 -
 playbook/VERSION                                |    1 -
 playbook/bin/create                             |  108 -
 playbook/bin/create.bat                         |   33 -
 playbook/bin/create.js                          |  129 -
 playbook/bin/templates/project/blackberry.xml   |  456 -
 playbook/bin/templates/project/build.xml        |  154 -
 playbook/bin/templates/project/cordova/build    |   28 -
 playbook/bin/templates/project/cordova/run      |   35 -
 playbook/bin/templates/project/cordova/version  |   38 -
 playbook/bin/templates/project/playbook.xml     |  338 -
 .../bin/templates/project/project.properties    |  100 -
 playbook/bin/templates/project/www/LICENSE      |  296 -
 playbook/bin/templates/project/www/NOTICE       |    8 -
 playbook/bin/templates/project/www/README.md    |   30 -
 playbook/bin/templates/project/www/VERSION      |    1 -
 playbook/bin/templates/project/www/config.xml   |   96 -
 .../bin/templates/project/www/css/index.css     |  115 -
 playbook/bin/templates/project/www/img/logo.png |  Bin 21814 -> 0 bytes
 playbook/bin/templates/project/www/index.html   |   42 -
 playbook/bin/templates/project/www/js/index.js  |   49 -
 playbook/bin/templates/project/www/json2.js     |  482 -
 playbook/bin/templates/project/www/plugins.xml  |   35 -
 .../project/www/res/icon/blackberry/icon-80.png |  Bin 7287 -> 0 bytes
 .../project/www/res/resourceBundles/ar.js.gz    |  Bin 708 -> 0 bytes
 .../project/www/res/resourceBundles/ar_AE.js.gz |  Bin 745 -> 0 bytes
 .../project/www/res/resourceBundles/ar_BH.js.gz |  Bin 738 -> 0 bytes
 .../project/www/res/resourceBundles/ar_DZ.js.gz |  Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/ar_EG.js.gz |  Bin 735 -> 0 bytes
 .../project/www/res/resourceBundles/ar_IQ.js.gz |  Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_JO.js.gz |  Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_KW.js.gz |  Bin 738 -> 0 bytes
 .../project/www/res/resourceBundles/ar_LB.js.gz |  Bin 735 -> 0 bytes
 .../project/www/res/resourceBundles/ar_LY.js.gz |  Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_MA.js.gz |  Bin 738 -> 0 bytes
 .../project/www/res/resourceBundles/ar_OM.js.gz |  Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_QA.js.gz |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ar_SA.js.gz |  Bin 704 -> 0 bytes
 .../project/www/res/resourceBundles/ar_SD.js.gz |  Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/ar_SY.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/ar_TN.js.gz |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ar_YE.js.gz |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/be.js.gz    |  Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/be_BY.js.gz |  Bin 686 -> 0 bytes
 .../project/www/res/resourceBundles/bg.js.gz    |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/bg_BG.js.gz |  Bin 688 -> 0 bytes
 .../project/www/res/resourceBundles/bn_IN.js.gz |  Bin 767 -> 0 bytes
 .../project/www/res/resourceBundles/ca.js.gz    |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/ca_ES.js.gz |  Bin 678 -> 0 bytes
 .../www/res/resourceBundles/ca_ES_PREEURO.js.gz |  Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/cs.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/cs_CZ.js.gz |  Bin 687 -> 0 bytes
 .../www/res/resourceBundles/cs_CZ_EURO.js.gz    |  Bin 702 -> 0 bytes
 .../www/res/resourceBundles/cs_CZ_PREEURO.js.gz |  Bin 706 -> 0 bytes
 .../project/www/res/resourceBundles/da.js.gz    |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/da_DK.js.gz |  Bin 717 -> 0 bytes
 .../www/res/resourceBundles/da_DK_EURO.js.gz    |  Bin 731 -> 0 bytes
 .../project/www/res/resourceBundles/de.js.gz    |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/de_AT.js.gz |  Bin 719 -> 0 bytes
 .../www/res/resourceBundles/de_AT_PREEURO.js.gz |  Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/de_CH.js.gz |  Bin 723 -> 0 bytes
 .../project/www/res/resourceBundles/de_DE.js.gz |  Bin 678 -> 0 bytes
 .../www/res/resourceBundles/de_DE_PREEURO.js.gz |  Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/de_LU.js.gz |  Bin 682 -> 0 bytes
 .../www/res/resourceBundles/de_LU_PREEURO.js.gz |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/el.js.gz    |  Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/el_CY.js.gz |  Bin 712 -> 0 bytes
 .../www/res/resourceBundles/el_CY_EURO.js.gz    |  Bin 726 -> 0 bytes
 .../www/res/resourceBundles/el_CY_PREEURO.js.gz |  Bin 730 -> 0 bytes
 .../project/www/res/resourceBundles/el_GR.js.gz |  Bin 690 -> 0 bytes
 .../www/res/resourceBundles/el_GR_PREEURO.js.gz |  Bin 708 -> 0 bytes
 .../project/www/res/resourceBundles/en.js.gz    |  Bin 670 -> 0 bytes
 .../project/www/res/resourceBundles/en_AU.js.gz |  Bin 689 -> 0 bytes
 .../project/www/res/resourceBundles/en_BE.js.gz |  Bin 680 -> 0 bytes
 .../www/res/resourceBundles/en_BE_PREEURO.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/en_CA.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/en_GB.js.gz |  Bin 692 -> 0 bytes
 .../www/res/resourceBundles/en_GB_EURO.js.gz    |  Bin 706 -> 0 bytes
 .../project/www/res/resourceBundles/en_HK.js.gz |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/en_IE.js.gz |  Bin 692 -> 0 bytes
 .../www/res/resourceBundles/en_IE_PREEURO.js.gz |  Bin 710 -> 0 bytes
 .../project/www/res/resourceBundles/en_IN.js.gz |  Bin 762 -> 0 bytes
 .../project/www/res/resourceBundles/en_MT.js.gz |  Bin 686 -> 0 bytes
 .../project/www/res/resourceBundles/en_NZ.js.gz |  Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/en_PH.js.gz |  Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/en_SG.js.gz |  Bin 688 -> 0 bytes
 .../project/www/res/resourceBundles/en_US.js.gz |  Bin 705 -> 0 bytes
 .../project/www/res/resourceBundles/en_ZA.js.gz |  Bin 692 -> 0 bytes
 .../project/www/res/resourceBundles/es.js.gz    |  Bin 681 -> 0 bytes
 .../project/www/res/resourceBundles/es_AR.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_BO.js.gz |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_CL.js.gz |  Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/es_CO.js.gz |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/es_CR.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_DO.js.gz |  Bin 708 -> 0 bytes
 .../project/www/res/resourceBundles/es_EC.js.gz |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_ES.js.gz |  Bin 679 -> 0 bytes
 .../www/res/resourceBundles/es_ES_PREEURO.js.gz |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_GT.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_HN.js.gz |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/es_MX.js.gz |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_NI.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_PA.js.gz |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_PE.js.gz |  Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/es_PR.js.gz |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/es_PY.js.gz |  Bin 720 -> 0 bytes
 .../project/www/res/resourceBundles/es_SV.js.gz |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/es_US.js.gz |  Bin 707 -> 0 bytes
 .../project/www/res/resourceBundles/es_UY.js.gz |  Bin 721 -> 0 bytes
 .../project/www/res/resourceBundles/es_VE.js.gz |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/et.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/et_EE.js.gz |  Bin 677 -> 0 bytes
 .../www/res/resourceBundles/et_EE_EURO.js.gz    |  Bin 691 -> 0 bytes
 .../www/res/resourceBundles/et_EE_PREEURO.js.gz |  Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/fi.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/fi_FI.js.gz |  Bin 685 -> 0 bytes
 .../www/res/resourceBundles/fi_FI_PREEURO.js.gz |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/fr.js.gz    |  Bin 661 -> 0 bytes
 .../project/www/res/resourceBundles/fr_BE.js.gz |  Bin 679 -> 0 bytes
 .../www/res/resourceBundles/fr_BE_PREEURO.js.gz |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/fr_CA.js.gz |  Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/fr_CH.js.gz |  Bin 723 -> 0 bytes
 .../project/www/res/resourceBundles/fr_FR.js.gz |  Bin 682 -> 0 bytes
 .../www/res/resourceBundles/fr_FR_PREEURO.js.gz |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/fr_LU.js.gz |  Bin 682 -> 0 bytes
 .../www/res/resourceBundles/fr_LU_PREEURO.js.gz |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ga.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ga_IE.js.gz |  Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/gu.js.gz    |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/gu_IN.js.gz |  Bin 763 -> 0 bytes
 .../project/www/res/resourceBundles/hi_IN.js.gz |  Bin 759 -> 0 bytes
 .../project/www/res/resourceBundles/hr.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/hr_HR.js.gz |  Bin 712 -> 0 bytes
 .../project/www/res/resourceBundles/hu.js.gz    |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/hu_HU.js.gz |  Bin 680 -> 0 bytes
 .../www/res/resourceBundles/hu_HU_EURO.js.gz    |  Bin 694 -> 0 bytes
 .../www/res/resourceBundles/hu_HU_PREEURO.js.gz |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/in.js.gz    |  Bin 669 -> 0 bytes
 .../project/www/res/resourceBundles/in_ID.js.gz |  Bin 684 -> 0 bytes
 .../project/www/res/resourceBundles/is.js.gz    |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/is_IS.js.gz |  Bin 679 -> 0 bytes
 .../project/www/res/resourceBundles/it.js.gz    |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/it_CH.js.gz |  Bin 723 -> 0 bytes
 .../project/www/res/resourceBundles/it_IT.js.gz |  Bin 717 -> 0 bytes
 .../www/res/resourceBundles/it_IT_PREEURO.js.gz |  Bin 734 -> 0 bytes
 .../project/www/res/resourceBundles/iw.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/iw_IL.js.gz |  Bin 683 -> 0 bytes
 .../project/www/res/resourceBundles/ja.js.gz    |  Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/ja_JP.js.gz |  Bin 692 -> 0 bytes
 .../www/res/resourceBundles/ja_JP_JP.js.gz      |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/kk.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/kk_KZ.js.gz |  Bin 711 -> 0 bytes
 .../project/www/res/resourceBundles/kn.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/kn_IN.js.gz |  Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/ko.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ko_KR.js.gz |  Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/lt.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/lt_LT.js.gz |  Bin 676 -> 0 bytes
 .../www/res/resourceBundles/lt_LT_EURO.js.gz    |  Bin 690 -> 0 bytes
 .../www/res/resourceBundles/lt_LT_PREEURO.js.gz |  Bin 694 -> 0 bytes
 .../project/www/res/resourceBundles/lv.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/lv_LV.js.gz |  Bin 677 -> 0 bytes
 .../www/res/resourceBundles/lv_LV_EURO.js.gz    |  Bin 691 -> 0 bytes
 .../www/res/resourceBundles/lv_LV_PREEURO.js.gz |  Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/mk.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/mk_MK.js.gz |  Bin 720 -> 0 bytes
 .../project/www/res/resourceBundles/ml_IN.js.gz |  Bin 762 -> 0 bytes
 .../project/www/res/resourceBundles/mr.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/mr_IN.js.gz |  Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/ms.js.gz    |  Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/ms_MY.js.gz |  Bin 694 -> 0 bytes
 .../project/www/res/resourceBundles/mt.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/mt_MT.js.gz |  Bin 685 -> 0 bytes
 .../www/res/resourceBundles/mt_MT_EURO.js.gz    |  Bin 699 -> 0 bytes
 .../www/res/resourceBundles/mt_MT_PREEURO.js.gz |  Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/nb_NO.js.gz |  Bin 688 -> 0 bytes
 .../project/www/res/resourceBundles/nl.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/nl_BE.js.gz |  Bin 679 -> 0 bytes
 .../www/res/resourceBundles/nl_BE_PREEURO.js.gz |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/nl_NL.js.gz |  Bin 724 -> 0 bytes
 .../www/res/resourceBundles/nl_NL_PREEURO.js.gz |  Bin 741 -> 0 bytes
 .../project/www/res/resourceBundles/no.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/no_NO.js.gz |  Bin 680 -> 0 bytes
 .../www/res/resourceBundles/no_NO_NY.js.gz      |  Bin 692 -> 0 bytes
 .../project/www/res/resourceBundles/or_IN.js.gz |  Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/pa.js.gz    |  Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/pa_IN.js.gz |  Bin 753 -> 0 bytes
 .../project/www/res/resourceBundles/pl.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/pl_PL.js.gz |  Bin 683 -> 0 bytes
 .../www/res/resourceBundles/pl_PL_EURO.js.gz    |  Bin 697 -> 0 bytes
 .../www/res/resourceBundles/pl_PL_PREEURO.js.gz |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/pt.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/pt_BR.js.gz |  Bin 717 -> 0 bytes
 .../project/www/res/resourceBundles/pt_PT.js.gz |  Bin 681 -> 0 bytes
 .../www/res/resourceBundles/pt_PT_PREEURO.js.gz |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/ro.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/ro_RO.js.gz |  Bin 675 -> 0 bytes
 .../project/www/res/resourceBundles/ru.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ru_RU.js.gz |  Bin 689 -> 0 bytes
 .../project/www/res/resourceBundles/sh.js.gz    |  Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/sh_CS.js.gz |  Bin 725 -> 0 bytes
 .../project/www/res/resourceBundles/sk.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/sk_SK.js.gz |  Bin 679 -> 0 bytes
 .../www/res/resourceBundles/sk_SK_EURO.js.gz    |  Bin 693 -> 0 bytes
 .../www/res/resourceBundles/sk_SK_PREEURO.js.gz |  Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/sl.js.gz    |  Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/sl_SI.js.gz |  Bin 676 -> 0 bytes
 .../www/res/resourceBundles/sl_SI_PREEURO.js.gz |  Bin 693 -> 0 bytes
 .../project/www/res/resourceBundles/sq.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/sq_AL.js.gz |  Bin 684 -> 0 bytes
 .../project/www/res/resourceBundles/sr.js.gz    |  Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/sr_BA.js.gz |  Bin 727 -> 0 bytes
 .../project/www/res/resourceBundles/sr_CS.js.gz |  Bin 727 -> 0 bytes
 .../project/www/res/resourceBundles/sr_ME.js.gz |  Bin 716 -> 0 bytes
 .../project/www/res/resourceBundles/sr_RS.js.gz |  Bin 712 -> 0 bytes
 .../www/res/resourceBundles/sr_RS_Cyrl.js.gz    |  Bin 727 -> 0 bytes
 .../www/res/resourceBundles/sr_RS_Latn.js.gz    |  Bin 724 -> 0 bytes
 .../project/www/res/resourceBundles/sv.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/sv_SE.js.gz |  Bin 679 -> 0 bytes
 .../www/res/resourceBundles/sv_SE_EURO.js.gz    |  Bin 693 -> 0 bytes
 .../www/res/resourceBundles/sv_SE_PREEURO.js.gz |  Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/ta.js.gz    |  Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ta_IN.js.gz |  Bin 759 -> 0 bytes
 .../project/www/res/resourceBundles/te.js.gz    |  Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/te_IN.js.gz |  Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/th.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/th_TH.js.gz |  Bin 705 -> 0 bytes
 .../www/res/resourceBundles/th_TH_TH.js.gz      |  Bin 712 -> 0 bytes
 .../project/www/res/resourceBundles/tr.js.gz    |  Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/tr_TR.js.gz |  Bin 676 -> 0 bytes
 .../project/www/res/resourceBundles/uk.js.gz    |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/uk_UA.js.gz |  Bin 693 -> 0 bytes
 .../project/www/res/resourceBundles/vi.js.gz    |  Bin 663 -> 0 bytes
 .../project/www/res/resourceBundles/vi_VN.js.gz |  Bin 678 -> 0 bytes
 .../project/www/res/resourceBundles/zh.js.gz    |  Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/zh_CN.js.gz |  Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/zh_HK.js.gz |  Bin 705 -> 0 bytes
 .../project/www/res/resourceBundles/zh_SG.js.gz |  Bin 690 -> 0 bytes
 .../project/www/res/resourceBundles/zh_TW.js.gz |  Bin 689 -> 0 bytes
 .../www/res/screen/blackberry/screen-225.png    |  Bin 16776 -> 0 bytes
 playbook/bin/templates/project/www/spec.html    |   68 -
 .../bin/templates/project/www/spec/helper.js    |   33 -
 .../bin/templates/project/www/spec/index.js     |   67 -
 .../www/spec/lib/jasmine-1.2.0/MIT.LICENSE      |   20 -
 .../www/spec/lib/jasmine-1.2.0/jasmine-html.js  |  616 --
 .../www/spec/lib/jasmine-1.2.0/jasmine.css      |   81 -
 .../www/spec/lib/jasmine-1.2.0/jasmine.js       | 2529 -----
 playbook/build.xml                              |  321 -
 .../ext-air/Cordova_Network/library.xml         |   40 -
 .../src/org/apache/cordova/network/Network.as   |   88 -
 playbook/javascript/cordova.blackberry.js       | 9928 ------------------
 253 files changed, 16824 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/LICENSE
----------------------------------------------------------------------
diff --git a/playbook/LICENSE b/playbook/LICENSE
deleted file mode 100644
index ee6a935..0000000
--- a/playbook/LICENSE
+++ /dev/null
@@ -1,268 +0,0 @@
-
-                               Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-For the template/project/lib/ant-contrib/ant-contrib-1.0b3.jar component:
-
-   The Apache Software License, Version 1.1
-
-   Copyright (c) 2001-2003 Ant-Contrib project.  All rights reserved.
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions
-   are met:
-
-   1. Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-   2. Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-   3. The end-user documentation included with the redistribution, if
-      any, must include the following acknowlegement:
-         "This product includes software developed by the
-          Ant-Contrib project (http://sourceforge.net/projects/ant-contrib)."
-      Alternately, this acknowlegement may appear in the software itself,
-      if and wherever such third-party acknowlegements normally appear.
-
-   4. The name Ant-Contrib must not be used to endorse or promote products
-      derived from this software without prior written permission. For
-      written permission, please contact
-      ant-contrib-developers@lists.sourceforge.net.
-
-   5. Products derived from this software may not be called "Ant-Contrib"
-      nor may "Ant-Contrib" appear in their names without prior written
-      permission of the Ant-Contrib project.
-
-   THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
-   WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-   OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-   DISCLAIMED.  IN NO EVENT SHALL THE ANT-CONTRIB PROJECT OR ITS
-   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
-   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-   SUCH DAMAGE.
-   ====================================================================
-
-For the template/project/www/json2.js component:
-
-    http://www.JSON.org/json2.js
-    2010-03-20
-
-    Public Domain.
-
-    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-
-    See http://www.JSON.org/js.html
-
-
-    This code should be minified before deployment.
-    See http://javascript.crockford.com/jsmin.html
-
-    USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
-    NOT CONTROL.

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/NOTICE
----------------------------------------------------------------------
diff --git a/playbook/NOTICE b/playbook/NOTICE
deleted file mode 100644
index 23360ce..0000000
--- a/playbook/NOTICE
+++ /dev/null
@@ -1,8 +0,0 @@
-Apache Cordova
-Copyright 2012 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org)
-
-This product includes software developed by
-Ant-Contrib project (http://sourceforge.net/projects/ant-contrib).

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/README.md
----------------------------------------------------------------------
diff --git a/playbook/README.md b/playbook/README.md
deleted file mode 100644
index 8f3384d..0000000
--- a/playbook/README.md
+++ /dev/null
@@ -1,183 +0,0 @@
-Cordova BlackBerry WebWorks
-============================
-
-[Cordova framework](http://incubator.apache.org/cordova/) for __BlackBerry Tablet OS, Smartphones and BlackBerry 10 devices__. The framework is implemented using the [BlackBerry WebWorks SDK](http://us.blackberry.com/developers/tablet/webworks.jsp).
-
-Directory Structure
--------------------
-
-    framework/ ... BlackBerry WebWorks JavaScript Extension (Cordova native code)
-    javascript/ .. Cordova JavaScript (concatenated, non-minified)
-    bin/ ......... Scripts for project creation
-
-Introduction
-------------
-
-BlackBerry WebWorks is a framework for developing web-based applications for BlackBerry SmartPhones (BlackBerry OS 5.0 and higher) and the TabletOS.  Creating a web application is one of the easiest ways to have an application that runs on both platforms.
-
-The WebWorks framework allows developers to create applications using web content and resources (HTML/CSS/JavaScript) that are able to access device features through the [BlackBerry WebWorks API](http://www.blackberry.com/developers/docs/widgetapi/).  In addition, the framework allows developers to create their own WebWorks JavaScript Extensions to expose additional device capabilities through JavaScript APIs.  These extensions are written using either the BlackBerry Java API for SmartPhones, or Adobe AIR for the Tablet OS.
-
-The cordova-blackberry-webworks platform allows web developers to develop applications targeting BlackBerry 5.0 and higher devices using the common [Cordova API](http://docs.cordova.io).  When possible, Cordova makes use of the WebWorks JavaScript API; however, most Cordova features are implemented in the native Java or AIR environment as a WebWorks JavaScript Extension.
-
-
-Getting Started
-===============
-
-Several guides are available on the [Cordova Documentation site](http://docs.cordova.io/) (Getting Started Guides - on the left side near the bottom) to help you get started developing for the cordova-blackberry-webworks platform.  This guide will help you install and configure the BlackBerry WebWorks development environment, and the cordova-blackberry-webworks platform.  It will also step you through the process of creating a Cordova project.
-
-[Getting Started with Cordova BlackBerry WebWorks](http://docs.cordova.io/guide_getting-started_blackberry_index.md.html)
-
-This guide is for advanced developers who wish to develop their own cordova-blackberry-webworks plugin.
-
-[How To Create a Cordova Plugin for Cordova BlackBerry WebWorks](http://docs.cordova.io/guide_plugin-development_blackberry_index.md.html)
-
-
-Installing the cordova-blackberry-webworks Framework
-=====================================================
-
-Cloning the cordova-blackberry-webworks repository always provides you with the latest (EDGE) version of the Cordova code.  To clone the repository, do the following:
-
-    $ cd C:\some\path\
-    $ git clone git://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks.git
-
-Cordova BlackBerry Developer Tools
----
-
-The Cordova developer tooling is split between general tooling and project level tooling. If you are on Windows, please run the equivalent .bat files instead of the shell scripts :)
-
-### General Commands
-
-    ./bin/create [path packagename appname] ............ creates a sample app with the specified application name, to the specified path
-
-Please note that once you `create` a Cordova BlackBerry project, you
-will need to edit the `project.properties` file that resides inside your
-generated application directory to set up your environment properly. You
-will need to specify things like the location of the BlackBerry Widget
-Packager(s), device and signing key passwords, simulator executables,
-and device IPs (if applicable).
-
-The ./bin/create command is also required to be called in order to automatically download
-the bin/template/project/lib/ant-contrib.jar file. Please be aware that without running
-this command first, your project will not have this important file! Once that ant-contrib.jar
-file is downloaded, there is no need to update that file or download again.
-
-#### Running the Example Project
-
-Create the example project and build it to the first device:
-
-    ./bin/create
-    cd example
-    ./cordova/run blackberry
-
-#### Creating a new Cordova BlackBerry Project
-
-    ./bin/create ~/Desktop/myapp MyAppName MyAppPackageName
-
-### Project Commands
-
-These commands live in a generated Cordova BlackBerry project. As per
-the note above, please make sure you edit the `project.properties` file
-inside your application directory appropriately otherwise these commands
-will not work!
-
-    ./cordova/run ............................ install to a connected device or simulator
-    ./cordova/build .......................... build project, but do not deploy to simulator or device
-
-
-(Legacy) Creating a New Cordova Project
--------------------------------
-
-The (legacy) Cordova ant build scripts enable you to create multiple, independent Cordova projects.
-
-(Note: The Cordova build script requires Apache ANT 1.8 or higher. Also, these scripts won't work without
-the bin/template/project/lib/ant-contrib.jar file so please run the ./bin/create command to automatically
-download that file or manually download it and place it in the bin/template/lib/ directory.
-
-The build script packages the Cordova source code and resources into each project you create.  This allows you to easily distribute the project to other BlackBerry WebWorks developers.  To create a Cordova project:
-
-    $ cd cordova-blackberry-webworks
-    $ ant help
-
-    $ ant create -Dproject.path="C:\development\my_new_project"
-
-    $ cd C:\development\my_new_project
-    $ ant help
-
-For each project, you need to tell ANT where you installed the BlackBerry WebWorks SDK, which packages and compiles your code into a deployable application.  You can specify the location of the BlackBerry WebWorks Packager (BBWP) by editing __project.properties__ in the project directory.
-
-    [edit project.properties]
-
-Building and Deploying a Project
---------------------------------
-
-The Cordova build scripts automate common tasks, such as compiling your project, and deploying it to simulators or devices.  To see what options are available, use:
-
-    $ cd C:\development\my_new_project
-    $ ant help
-
-Every command is in the form `ant TARGET COMMAND [options]`, where
-target is either `blackberry` or `playbook`.
-
-To build your project into a deployable application (.cod/.jad) file:
-
-    $ ant TARGET build
-
-To build your project and load it in a BlackBerry simulator:
-
-    $ ant TARGET load-simulator
-
-To build your project and load it onto a USB-attached device:
-
-    $ ant TARGET load-device
-
-Updating the Cordova Framework
--------------------------------
-
-As you develop your application, there may be updates made to the Cordova source code.  To incorporate Cordova changes into your project, use the build script as follows:
-
-    $ cd cordova-blackberry-webworks
-    $ git pull origin master
-
-    $ ant update -Dproject.path="C:\development\my_new_project"
-
-Customizing Cordova
---------------------
-
-By default, Cordova gives access to all the core Cordova APIs as detailed at docs.cordova.io.
-If you want to remove some of those APIs you can do so by editing the plugins.xml document in your
-application root. You need to edit the plugins.xml file to add third-party plugins to your application
-as well.
-
-Creating a Distribution
------------------------
-
-### Update Version
-
-    $ ant version -Dvalue="1.0.0"
-
-    $ git diff
-    $ git commit -am "Update to version 1.0.0"
-    $ git tag 1.0.0
-
-### Create distribution
-
-    $ ant dist
-
-Troubleshooting
-===============
-
-__Q: I uploaded my application to the BlackBerry device, but it will not open or run.__
-
-__A:__ Try hard resetting the device by pressing and hold ALT + CAPS LOCK + DEL. You must press and hold each key in sequence and not all at once.  Some devices require _either_ the right or left CAPS LOCK key to be pressed.  Some devices also require this combination to be pressed twice.
-
-__Q: My simulator screen is not refreshing and I see blocks on a clicked position.__
-
-__A:__ Windows 7 and the simulator's graphics acceleration do not mix. On the simulator, set View -> Graphics Acceleration to Off.
-
-__Q: When I use the Cordova [Camera.getPicture API](http://docs.cordova.io/cordova_camera_camera.md.html#camera.getPicture) on my device, the camera never returns to my application.  Why does this happen?__
-
-__A:__ Cordova uses a JavaScript Extension to invoke the native camera application so the user can take a picture.  When the picture is taken, Cordova will close the native camera application by emulating a key injection (pressing the back/escape button).  On a physical device, users will have to set permissions to allow the application to simulate key injections.  Setting application permissions is device-specific.  On a Storm2 (9550), for example, select the BlackBerry button from the Home screen to get to All Applications screen, then Options > Applications > Your Application.  Then select Edit Default Permissions > Interactions > Input Simulation and set it to 'Allow'.  Save your changes.
-
-__Q: None of the Cordova APIs are working, why is that?__
-
-__A:__ You probably need to update your plugins.xml file in the root of your application.

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/VERSION
----------------------------------------------------------------------
diff --git a/playbook/VERSION b/playbook/VERSION
deleted file mode 100644
index 38f8e88..0000000
--- a/playbook/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-dev

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/create
----------------------------------------------------------------------
diff --git a/playbook/bin/create b/playbook/bin/create
deleted file mode 100755
index ca84dc8..0000000
--- a/playbook/bin/create
+++ /dev/null
@@ -1,108 +0,0 @@
-#! /bin/sh
-#       Licensed to the Apache Software Foundation (ASF) under one
-#       or more contributor license agreements.  See the NOTICE file
-#       distributed with this work for additional information
-#       regarding copyright ownership.  The ASF licenses this file
-#       to you under the Apache License, Version 2.0 (the
-#       "License"); you may not use this file except in compliance
-#       with the License.  You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-#       Unless required by applicable law or agreed to in writing,
-#       software distributed under the License is distributed on an
-#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#       KIND, either express or implied.  See the License for the
-#       specific language governing permissions and limitations
-#       under the License.
-#
-# create a cordova/blackberry project
-# 
-# USAGE
-#   ./create [path package appname]
-#
-set -e
-
-if [ -n "$1" ] && [ "$1" == "-h" ]
-then
-  echo "Usage: $0 <path_to_new_project> <package_name> <project_name>"
-  echo "    <path_to_new_project>: Path to your new Cordova iOS project"
-  echo "    <package_name>: Package name, following reverse-domain style convention (ignored on BlackBerry platforms)"
-  echo "    <project_name>: Project name"
-  echo 'After you have created your application, make sure to customize the project.properties file inside your app directory with your environment specifics!'
-  exit 0;
-fi
-
-
-BUILD_PATH="$( cd "$( dirname "$0" )/.." && pwd )"
-VERSION=$(cat "$BUILD_PATH/VERSION")
-
-PROJECT_PATH="${1:-"./example"}"
-PACKAGE=${2:-"org.apache.cordova.example"}
-NAME=${3:-"cordovaExample"}
-
-# clobber any existing example
-if [ -d "$PROJECT_PATH" ]
-then
-    echo "Project already exists! Delete and recreate"
-    exit 1
-fi
-
-# cleanup after exit and/or on error
-function on_exit {
-    echo "Cleaning up ..."
-    [ -d "$BUILD_PATH/build" ] && rm -rf "$BUILD_PATH/build"
-    echo "Remember to update the project.properties file inside your application directory!"
-}
-
-function on_error {
-    echo "An error occured. Deleting project..."
-    [ -d "$PROJECT_PATH" ] && rm -rf "$PROJECT_PATH"
-}
-
-function replace {
-    local pattern=$1
-    local filename=$2
-    # Mac OS X requires -i argument
-    if [[ "$OSTYPE" =~ "darwin" ]]
-    then
-        /usr/bin/sed -i '' -e $pattern "$filename"
-    elif [[ "$OSTYPE" =~ "linux" ]]
-    then
-        /bin/sed -i -e $pattern "$filename"
-    fi
-}
-
-# we do not want the script to silently fail
-trap on_error ERR
-trap on_exit EXIT
-
-ANT="$(which ant)"
-
-MANIFEST_PATH="$PROJECT_PATH/www/config.xml"
-
-# compile cordova.js and cordova.jar if in source, ignore if in distribution
-if [ ! -e "$BUILD_PATH/www/ext/cordova-$VERSION.jar" ] && [ -d "$BUILD_PATH/framework" ]
-then
-    if [ ! -e "$BUILD_PATH"/bin/templates/project/lib/ant-contrib/ant-contrib-1.0b3.jar ]; then
-        echo "Downloading ant-contrib"
-        # Use curl to get the jar
-        curl -OL http://central.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar &> /dev/null
-        mkdir -p "$BUILD_PATH"/bin/templates/project/lib/ant-contrib
-        mv ant-contrib-1.0b3.jar "$BUILD_PATH"/bin/templates/project/lib/ant-contrib
-    fi
-    
-	echo "Creating BlackBerry project..."
-	("$ANT" create -Dproject.path="$PROJECT_PATH" -f "$BUILD_PATH/build.xml" &> /dev/null)
-    # interpolate the activity and package into config.xml
-    echo "Updating config.xml ..."
-    replace "s/__NAME__/${NAME}/g" "$MANIFEST_PATH"
-    replace "s/__PACKAGE__/${PACKAGE}/g" "$MANIFEST_PATH"
-else
-	# copy project template if in distribution
-	echo "Copying assets and resources ..."
-	cp -r "$BUILD_PATH/sample/." "$PROJECT_PATH"
-    echo "Updating config.xml ..."
-    replace "s/cordovaExample/${NAME}/g" "$MANIFEST_PATH"
-    replace "s/org.apache.cordova.example/${PACKAGE}/g" "$MANIFEST_PATH"
-fi

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/create.bat
----------------------------------------------------------------------
diff --git a/playbook/bin/create.bat b/playbook/bin/create.bat
deleted file mode 100644
index ecb039a..0000000
--- a/playbook/bin/create.bat
+++ /dev/null
@@ -1,33 +0,0 @@
-@ECHO OFF
-goto comment
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
-:comment
-
-IF NOT DEFINED JAVA_HOME GOTO MISSING
-FOR %%X in (ant.bat) do (
-    SET FOUND=%%~$PATH:X
-    IF NOT DEFINED FOUND GOTO MISSING
-)
-cscript %~dp0\create.js %*
-GOTO END
-:MISSING
-ECHO Missing one of the following:
-ECHO JDK: http://java.oracle.com
-ECHO Apache ant: http://ant.apache.org
-EXIT /B 1
-:END

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/create.js
----------------------------------------------------------------------
diff --git a/playbook/bin/create.js b/playbook/bin/create.js
deleted file mode 100644
index ac4b083..0000000
--- a/playbook/bin/create.js
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
-*/
-
-/*
- * create a cordova/blackberry project
- *
- * USAGE
- *  ./create [path package appname]
- */
-
-var fso = WScript.CreateObject('Scripting.FileSystemObject');
-
-function read(filename) {
-    var fso=WScript.CreateObject("Scripting.FileSystemObject");
-    var f=fso.OpenTextFile(filename, 1);
-    var s=f.ReadAll();
-    f.Close();
-    return s;
-}
-function write(filename, contents) {
-    var fso=WScript.CreateObject("Scripting.FileSystemObject");
-    var f=fso.OpenTextFile(filename, 2, true);
-    f.Write(contents);
-    f.Close();
-}
-function replaceInFile(filename, regexp, replacement) {
-    write(filename, read(filename).replace(regexp, replacement));
-}
-function downloadAntContrib(){
-    if (!fso.FileExists(ROOT + '\\bin\\templates\\project\\lib\\ant-contrib\\ant-contrib-1.0b3.jar')) {
-      // We need the .jar
-      var url = 'http://central.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar';
-      var libsPath = ROOT + '\\bin\\templates\\project\\lib\\ant-contrib';
-      var savePath = libsPath + '\\ant-contrib-1.0b3.jar';
-      if (!fso.FileExists(savePath)) {
-        if(!fso.FolderExists(libsPath)) {
-            fso.CreateFolder(libsPath);
-        }
-        // We need the zip to get the jar
-        var xhr = WScript.CreateObject('MSXML2.XMLHTTP');
-        xhr.open('GET', url, false);
-        xhr.send();
-        if (xhr.status == 200) {
-          var stream = WScript.CreateObject('ADODB.Stream');
-          stream.Open();
-          stream.Type = 1;
-          stream.Write(xhr.ResponseBody);
-          stream.Position = 0;
-          stream.SaveToFile(savePath);
-          stream.Close();
-        } else {
-          WScript.Echo('Could not retrieve the antcontrib. Please download it yourself and put into the bin/templates/project/lib directory. This process may fail now. Sorry.');
-        }
-      }
-      var app = WScript.CreateObject('Shell.Application');
-      var source = app.NameSpace(savePath).Items();
-      var target = app.NameSpace(libsPath);
-      target.CopyHere(source, 256);
-    }
-}
-function exec(s, output) {
-    var o=shell.Exec(s);
-    while (o.Status == 0) {
-        WScript.Sleep(100);
-    }
-    //WScript.Echo("Command exited with code " + o.Status);
-}
-
-function cleanup() {
-    // Cleanup
-    if(fso.FolderExists(ROOT + '\\dist')) {
-        fso.DeleteFolder(ROOT + '\\dist', true);
-    }
-    if(fso.FolderExists(ROOT + '\\build')) {
-        fso.DeleteFolder(ROOT + '\\build');
-    }
-}
-
-var args = WScript.Arguments, PROJECT_PATH="example", 
-    PACKAGE="org.apache.cordova.example",
-    NAME="cordovaExample",
-    shell=WScript.CreateObject("WScript.Shell");
-    
-// working dir
-var ROOT = WScript.ScriptFullName.split('\\bin\\create.js').join('');
-
-if (args.Count() == 3) {
-    PROJECT_PATH=args(0);
-    PACKAGE=args(1);
-    NAME=args(2);
-}
-
-if(fso.FolderExists(PROJECT_PATH)) {
-    WScript.Echo("Project directory already exists! Please remove it first.");
-    WScript.Quit(1);
-}
-
-var MANIFEST_PATH=PROJECT_PATH+'\\www\\config.xml';
-var VERSION=read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,'');
-
-if(fso.FolderExists(ROOT+'\\framework')){
-    downloadAntContrib();
-    exec('ant.bat -f '+ ROOT +'\\build.xml create -Dproject.path="' + PROJECT_PATH + '"');
-    replaceInFile(MANIFEST_PATH, /__PACKAGE__/, PACKAGE);
-    replaceInFile(MANIFEST_PATH, /__ACTIVITY__/, NAME);
-}else{
-    // copy in the project template
-    exec('cmd /c xcopy '+ ROOT + '\\sample\\* '+PROJECT_PATH+' /I /S /Y');    
-    replaceInFile(MANIFEST_PATH, /org.apache.cordova.example/, PACKAGE);
-    replaceInFile(MANIFEST_PATH, /cordovaExample/, NAME);
-}
-
-cleanup();

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/blackberry.xml
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/blackberry.xml b/playbook/bin/templates/project/blackberry.xml
deleted file mode 100644
index ce3099f..0000000
--- a/playbook/bin/templates/project/blackberry.xml
+++ /dev/null
@@ -1,456 +0,0 @@
-<project default="help">
-<!-- 
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
--->    
-    <!-- LOAD PROPERTIES -->
-    
-    <property prefix="properties" file="project.properties" />
-    <property name="build.dir"    location="build" />
-    <property name="widget.dir"   location="${build.dir}/widget" />
-    <property name="code.sign"    value="false" />
-    <property name="generate.ext" value="cod" />
-    <property name="globalization" value="false" />
-    
-    <!-- BlackBerry WebWorks Packager directory is required. -->
-    <fail unless="properties.blackberry.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'blackberry.bbwp.dir' in your 'project.properties' file." />
-
-    <!-- OS identification -->
-    <condition property="isMacOSX" else="false">
-        <and>
-            <os family="mac" />
-            <os family="unix" />
-        </and>
-    </condition>
-
-    <condition property="javaloader" value="${properties.blackberry.bbwp.dir}/bin/javaloader" else="${properties.blackberry.bbwp.dir}/bin/JavaLoader.exe">
-        <equals arg1="${isMacOSX}" arg2="true" />
-    </condition>
-
-    <condition property="bbwp" value="${properties.blackberry.bbwp.dir}/bbwp" else="${properties.blackberry.bbwp.dir}/bbwp.exe">
-        <equals arg1="${isMacOSX}" arg2="true" />
-    </condition>
-
-
-    <!-- LOAD DEVICE -->
-    
-    <target name="load-device" depends="package-app">
-        <bbwp code-sign="true" />
-        <exec executable="${javaloader}" dir="." failonerror="true">
-            <arg value="-u" />
-            <arg value="-w${properties.blackberry.sim.password}" />
-            <arg value="load" />
-            <arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
-        </exec>
-    </target>
-
-    <!-- DEBUG-LOAD DEVICE -->
-    
-    <target name="debug-device" depends="package-app">
-        <bbwp code-sign="true" debug="true" />
-        <exec executable="${javaloader}" dir="." failonerror="true">
-            <arg value="-u" />
-            <arg value="-w${properties.blackberry.sim.password}" />
-            <arg value="load" />
-            <arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
-        </exec>
-    </target>
-
-    <!-- LOAD SIMULATOR -->
-    
-    <target name="load-simulator" depends="build">
-    
-        <!-- Find the simulator directory -->
-        <set-simulator-dir />
-
-        <!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
-        <path id="bbwp.sim.path">
-            <first>
-                <fileset dir="${properties.blackberry.bbwp.dir}/simpack">
-                    <include name="**/handhelds.manifest.txt" />
-                </fileset>
-            </first>
-        </path>
-        <dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
-
-        <!-- Simulator directory: Use sim.dir property if set in project.properties file. 
-             Otherwise, use bbwp simulator directory. -->
-        <condition 
-            property="simulator.dir" 
-            value="${properties.blackberry.sim.dir}" 
-            else="${bbwp.sim.dir}">
-                <available file="${properties.blackberry.sim.dir}" type="dir" />
-        </condition>
-        <echo message="Simulator directory=${simulator.dir}" />
-
-        <!-- Simulator binary: Use sim.bin property if set in project.properties file  
-             or try setting to 'defaultSimulator.bat' in simulator directory. -->
-        <condition 
-            property="sim.bin" 
-            value="${properties.blackberry.sim.bin}" 
-            else="defaultSimulator.bat">
-                <available file="${simulator.dir}/${properties.blackberry.sim.bin}"/>
-        </condition>
-
-        <!-- If simulator executable does not exist, use the first device listed 
-             in the 'handhelds.manifest.txt' file in the simulator directory. -->
-        <loadfile 
-            property="device.list"
-            srcFile="${simulator.dir}/handhelds.manifest.txt">
-            <filterchain>
-                <tokenFilter>
-                    <stringtokenizer/>
-                </tokenFilter>
-            </filterchain>
-        </loadfile>
-
-        <propertyregex property="device"
-            input="${device.list}"
-            regexp="^\d{4}"
-            select="\0"
-            override="true" />
-        <property name="device.bin" value="${device}.bat" />
-
-        <condition
-            property="simulator.bin" 
-            value="${sim.bin}"
-            else="${device.bin}">
-                <available file="${simulator.dir}/${sim.bin}" />
-        </condition>
-        
-        <echo message="Simulator executable=${simulator.dir}/${simulator.bin}" />
-
-        <!-- Close running simulators -->
-        <echo message="Closing all running simulators..." />
-        <exec executable="${simulator.dir}/fledgecontroller.exe" dir="${simulator.dir}" spawn="false">
-            <arg value="/execute=kill" />
-        </exec>
-
-        <!-- MDS directory: Use mds.dir property if set in project.properties file. 
-             Otherwise, use bbwp MDS directory. -->
-        <condition 
-            property="mds.dir" 
-            value="${properties.blackberry.mds.dir}" 
-            else="${properties.blackberry.bbwp.dir}/mds">
-                <available file="${properties.blackberry.mds.dir}" type="dir" />
-        </condition>
-        <echo message="MDS directory=${mds.dir}" />
-        
-        <copy todir="${simulator.dir}">
-            <fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
-        </copy>
-        <exec executable="${mds.dir}/run.bat" dir="${mds.dir}" spawn="true" />
-        <exec executable="${simulator.dir}/${simulator.bin}" dir="${simulator.dir}" spawn="true" />
-
-        <!-- Only invoke FledgeHook.exe if it is found. Newer versions of the
-             WebWorks SDK do not include it. -->
-        <if>
-            <available file="${properties.blackberry.bbwp.dir}/FledgeHook.exe" />
-            <then>
-                <exec executable="${properties.blackberry.bbwp.dir}/FledgeHook.exe" dir="${properties.blackberry.bbwp.dir}" spawn="true" />
-            </then>
-        </if>
-    </target>
-
-    <target name="debug-simulator" depends="package-app">
-        <bbwp code-sign="false" debug="true" />
-    
-        <!-- Find the simulator directory -->
-        <set-simulator-dir />
-
-        <!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
-        <path id="bbwp.sim.path">
-            <first>
-                <fileset dir="${properties.blackberry.bbwp.dir}/simpack">
-                    <include name="**/handhelds.manifest.txt" />
-                </fileset>
-            </first>
-        </path>
-        <dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
-
-        <!-- Simulator directory: Use sim.dir property if set in project.properties file. 
-             Otherwise, use bbwp simulator directory. -->
-        <condition 
-            property="simulator.dir" 
-            value="${properties.blackberry.sim.dir}" 
-            else="${bbwp.sim.dir}">
-                <available file="${properties.blackberry.sim.dir}" type="dir" />
-        </condition>
-        <echo message="Simulator directory=${simulator.dir}" />
-
-        <!-- Simulator binary: Use sim.bin property if set in project.properties file  
-             or try setting to 'defaultSimulator.bat' in simulator directory. -->
-        <condition 
-            property="sim.bin" 
-            value="${properties.blackberry.sim.bin}" 
-            else="defaultSimulator.bat">
-                <available file="${simulator.dir}/${properties.blackberry.sim.bin}"/>
-        </condition>
-
-        <!-- If simulator executable does not exist, use the first device listed 
-             in the 'handhelds.manifest.txt' file in the simulator directory. -->
-        <loadfile 
-            property="device.list"
-            srcFile="${simulator.dir}/handhelds.manifest.txt">
-            <filterchain>
-                <tokenFilter>
-                    <stringtokenizer/>
-                </tokenFilter>
-            </filterchain>
-        </loadfile>
-
-        <propertyregex property="device"
-            input="${device.list}"
-            regexp="^\d{4}"
-            select="\0"
-            override="true" />
-        <property name="device.bin" value="${device}.bat" />
-
-        <condition
-            property="simulator.bin" 
-            value="${sim.bin}"
-            else="${device.bin}">
-                <available file="${simulator.dir}/${sim.bin}" />
-        </condition>
-        
-        <echo message="Simulator executable=${simulator.dir}/${simulator.bin}" />
-
-        <!-- Close running simulators -->
-        <echo message="Closing all running simulators..." />
-        <exec executable="${simulator.dir}/fledgecontroller.exe" dir="${simulator.dir}" spawn="false">
-            <arg value="/execute=kill" />
-        </exec>
-
-        <!-- MDS directory: Use mds.dir property if set in project.properties file. 
-             Otherwise, use bbwp MDS directory. -->
-        <condition 
-            property="mds.dir" 
-            value="${properties.blackberry.mds.dir}" 
-            else="${properties.blackberry.bbwp.dir}/mds">
-                <available file="${properties.blackberry.mds.dir}" type="dir" />
-        </condition>
-        <echo message="MDS directory=${mds.dir}" />
-        
-        <copy todir="${simulator.dir}">
-            <fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
-        </copy>
-        <exec executable="${mds.dir}/run.bat" dir="${mds.dir}" spawn="true" />
-        <exec executable="${simulator.dir}/${simulator.bin}" dir="${simulator.dir}" spawn="true" />
-
-        <!-- Only invoke FledgeHook.exe if it is found. Newer versions of the
-             WebWorks SDK do not include it. -->
-        <if>
-            <available file="${properties.blackberry.bbwp.dir}/FledgeHook.exe" />
-            <then>
-                <exec executable="${properties.blackberry.bbwp.dir}/FledgeHook.exe" dir="${properties.blackberry.bbwp.dir}" spawn="true" />
-            </then>
-        </if>
-    </target>
-    
-    <!-- PACKAGE-APP -->
-    
-    <target name="package-app" depends="generate-cod-name, clean">
-        <!-- Copy the WebWorks application -->
-        <mkdir dir="${widget.dir}" />
-        <copy todir="${widget.dir}" overwrite="true">
-            <fileset dir="www" >
-                <exclude name="ext-air/**"/>
-                <exclude name="ext-qnx/**"/>
-                <exclude name="res/resourceBundles/**" unless="${globalization}"/>
-            </fileset>
-        </copy>
-        
-        <!-- Package the WebWorks app by zipping the widget dir. -->
-        <mkdir dir="${build.dir}" />
-        <zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
-    </target>
-    
-    <!-- BUILD -->
-
-    <target name="build" depends="package-app">
-        <bbwp code-sign="${code.sign}" />
-    </target>
-
-    <!-- BBWP MACRO -->
-
-    <macrodef name="bbwp">
-        <attribute name="code-sign" default="false" />
-        <attribute name="debug" default="false" />
-        <sequential>
-            <!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
-            <if>
-                <equals arg1="@{debug}" arg2="true" />
-                <then>
-                    <property name="debug.flag" value="/d" />
-                </then>
-                <else>
-                    <property name="debug.flag" value="" />
-                </else>
-            </if>
-
-            <!-- Ensure bbwp executable exists. -->
-            <property name="properties.blackberry.bbwp.bin" location="${bbwp}" /> 
-            <available file="${properties.blackberry.bbwp.bin}" property="properties.blackberry.bbwp.exists" />
-            <fail unless="properties.blackberry.bbwp.exists" message="Cannot find ${properties.blackberry.bbwp.bin}. Please edit 'blackberry.bbwp.dir' in your 'project.properties' file." />
-
-            <if>
-                <equals arg1="@{code-sign}" arg2="true" />
-                <then>
-                    <exec executable="${properties.blackberry.bbwp.bin}">
-                        <arg file="${build.dir}/${cod.name}.zip" />
-                        <arg value="/g" />
-                        <arg value="${properties.blackberry.sigtool.password}" />
-                        <arg line="${debug.flag} /o" />
-                        <arg file="${build.dir}" />
-                    </exec>
-                </then>
-                <else>
-                    <exec executable="${properties.blackberry.bbwp.bin}">
-                        <arg file="${build.dir}/${cod.name}.zip" />
-                        <arg line="${debug.flag} /o" />
-                        <arg file="${build.dir}" />
-                    </exec>
-                </else>
-            </if>
-        </sequential>
-    </macrodef>
-
-    <!-- CLEAN -->
-    
-    <target name="clean">
-        <delete dir="${build.dir}" />
-        <delete dir="${widget.dir}" />
-    </target>
-    
-    <!-- CLEAN DEVICE -->
-    
-    <target name="clean-device" depends="generate-cod-name">
-        <exec executable="${javaloader}">
-            <arg value="-usb" />
-            <arg value="erase" />
-            <arg value="-f" />
-            <arg value="${cod.name}.cod" />
-        </exec>
-    </target>
-    
-    <!-- CLEAN SIMULATOR -->
-    
-    <target name="clean-simulator">
-        <!-- Find the simulator directory -->
-        <set-simulator-dir />
-        
-        <exec executable="${simulator.dir}/clean.bat" dir="${simulator.dir}" />
-        
-        <delete>
-            <fileset dir="${simulator.dir}" includes="*.cod,*.csl,*.cso,*.debug,*.jar" />
-        </delete>
-    </target>
-    
-        <!-- HELPER TASKS -->
-    
-    <target name="generate-cod-name">
-        <xmlproperty file="www/config.xml" prefix="config.xml" />
-        <propertyregex property="cod.name"
-                       input="${config.xml.widget.name}"
-                       regexp="(\W+)"
-                       replace=""
-                       casesensitive="false"
-                       global="true"
-                       defaultValue="${config.xml.widget.name}" />
-        <echo message="Generated name: ${cod.name}.cod" />
-    </target>
-    
-        <!-- MACRO: SET SIMULATOR DIRECTORY -->
-    
-    <macrodef name="set-simulator-dir">
-        <sequential>
-            <!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
-            <path id="bbwp.sim.path">
-                <first>
-                    <fileset dir="${properties.blackberry.bbwp.dir}/simpack">
-                        <include name="**/handhelds.manifest.txt" />
-                    </fileset>
-                </first>
-            </path>
-            <dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
-
-            <!-- Simulator directory: Use sim.dir property if set in project.properties file.
-                 Otherwise, use bbwp simulator directory. -->
-            <condition
-                property="simulator.dir"
-                value="${properties.blackberry.sim.dir}"
-                else="${bbwp.sim.dir}">
-                    <available file="${properties.blackberry.sim.dir}" type="dir" />
-            </condition>
-            <echo message="Simulator directory=${simulator.dir}" />
-        </sequential>
-    </macrodef>
-	
-	    <!-- HELP -->
-    
-    <target name="help">
-        <echo>
-NAME
-  ${ant.project.name}
-
-SYNOPSIS
-  ant TARGET COMMAND [-D&lt;argument&gt;=&lt;value&gt;]...
-
-DESCRIPTION
-  You can build and deploy your project to a device or simulator.
-  
-TARGETS
-  blackberry ........ Builds a cod file and deploys to a device or simulator
- 
-  playbook .......... Builds a bar file and deploys to a device or simulator
-
-COMMANDS
-  help .............. Show this help menu.
-                        ant, ant help
-
-  load-device ....... Builds and deploys project to a connected USB device.
-                        ant load-device
-
-  load-simulator .... Builds and deploys project to default simulator.
-                        ant load-simulator
-
-  build ............. Compiles and packages the project for deployment.
-                        ant build
-                                              
-  clean ............. Remove all files from the build/ directory.
-                        ant clean
-
-  clean-device ...... Remove this project from the connected USB device.
-                        ant clean-device
-
-  clean-simulator ... Remove this project from the simulator (takes a while).
-                        ant clean-simulator
-
-GETTING STARTED
-  1. Edit project.properties
-
-  2. &lt;ant load-simulator&gt; to run the project on the simulator
-
-  3. Customize your project by editing www/config.xml
-
-  4. To run the project on a BlackBerry device, you will need to obtain
-     code signing keys from RIM. Once you have the key, a project is
-     installed by connecting a BlackBerry via USB and running
-     &lt;ant load-device&gt;.
-        </echo>
-    </target>
-</project>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/build.xml
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/build.xml b/playbook/bin/templates/project/build.xml
deleted file mode 100644
index de9e56f..0000000
--- a/playbook/bin/templates/project/build.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-<project name="Build and Deploy a Cordova BlackBerry WebWorks Project" default="help">
-<!--
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
--->
-    <!-- LOAD ANT-CONTRIB LIBRARY -->
-
-    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
-      <classpath>
-        <pathelement location="./lib/ant-contrib/ant-contrib-1.0b3.jar" />
-      </classpath>
-    </taskdef>
-
-    <!-- LOAD PROPERTIES -->
-
-    <property prefix="properties" file="project.properties" />
-    <property name="build.dir"    location="build" />
-    <property name="widget.dir"   location="${build.dir}/widget" />
-    <property name="code.sign"    value="false" />
-    <property name="globalization" value="false" />
-
-    <target name="blackberry" >
-        <property name="subant.file"  value="blackberry.xml" />
-    </target>
-
-    <target name="playbook" >
-        <property name="subant.file"  value="playbook.xml" />
-    </target>
-
-    <target name="load-device">
-        <subant target="load-device">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="load-simulator">
-        <subant target="load-simulator">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="debug-simulator">
-        <subant target="debug-simulator">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="debug-device">
-        <subant target="debug-device">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="build">
-        <subant target="build">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="clean">
-        <subant target="clean">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="clean-device">
-        <subant target="clean-device">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="package-app">
-        <subant target="package-app">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <target name="clean-simulator">
-        <subant target="clean-simulator">
-            <fileset dir="." includes="${subant.file}"/>
-        </subant>
-    </target>
-
-    <!-- HELP -->
-
-    <target name="help">
-        <echo>
-NAME
-  ${ant.project.name}
-
-SYNOPSIS
-  ant TARGET COMMAND [-D&lt;argument&gt;=&lt;value&gt;]...
-
-DESCRIPTION
-  You can build and deploy your project to a device or simulator.
-
-TARGETS
-  blackberry ........ Builds a cod file and deploys to a device or simulator
-
-  playbook .......... Builds a bar file and deploys to a device or simulator
-
-COMMANDS
-  help .............. Show this help menu.
-                        ant, ant help
-
-  load-device ....... Builds and deploys project to a connected USB device.
-                        ant TARGET load-device
-
-  load-simulator .... Builds and deploys project to default simulator.
-                        ant TARGET load-simulator
-
-  build ............. Compiles and packages the project for deployment.
-                        ant TARGET build
-
-  package-app ....... Packages the app into a WebWorks-compatible .zip file.
-                        ant TARGET package-app
-
-  clean ............. Remove all files from the build/ directory.
-                        ant TARGET clean
-
-  clean-device ...... Remove this project from the connected USB device.
-                        ant TARGET clean-device
-
-  clean-simulator ... Remove this project from the simulator (takes a while).
-                        ant TARGET clean-simulator
-
-GETTING STARTED
-  1. Edit project.properties
-
-  2. &lt;ant load-simulator&gt; to run the project on the simulator
-
-  3. Customize your project by editing www/config.xml
-
-  4. To run the project on a BlackBerry device, you will need to obtain
-     code signing keys from RIM. Once you have the key, a project is
-     installed by connecting a BlackBerry via USB and running
-     &lt;ant load-device&gt;.
-        </echo>
-    </target>
-</project>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/cordova/build
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/cordova/build b/playbook/bin/templates/project/cordova/build
deleted file mode 100755
index 1a84378..0000000
--- a/playbook/bin/templates/project/cordova/build
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/sh
-#       Licensed to the Apache Software Foundation (ASF) under one
-#       or more contributor license agreements.  See the NOTICE file
-#       distributed with this work for additional information
-#       regarding copyright ownership.  The ASF licenses this file
-#       to you under the Apache License, Version 2.0 (the
-#       "License"); you may not use this file except in compliance
-#       with the License.  You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-#       Unless required by applicable law or agreed to in writing,
-#       software distributed under the License is distributed on an
-#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#       KIND, either express or implied.  See the License for the
-#       specific language governing permissions and limitations
-#       under the License.
-
-ANT=$(which ant)
-
-if [ "$1" == "--help" ]
-then
-  echo 'usage: build'
-  echo 'NOTE: please customize the project.properties file first before using this command!'
-  exit 0
-fi
-
-$ANT playbook build

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/cordova/run
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/cordova/run b/playbook/bin/templates/project/cordova/run
deleted file mode 100755
index 6ca18c5..0000000
--- a/playbook/bin/templates/project/cordova/run
+++ /dev/null
@@ -1,35 +0,0 @@
-#! /bin/sh
-#       Licensed to the Apache Software Foundation (ASF) under one
-#       or more contributor license agreements.  See the NOTICE file
-#       distributed with this work for additional information
-#       regarding copyright ownership.  The ASF licenses this file
-#       to you under the Apache License, Version 2.0 (the
-#       "License"); you may not use this file except in compliance
-#       with the License.  You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-#       Unless required by applicable law or agreed to in writing,
-#       software distributed under the License is distributed on an
-#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#       KIND, either express or implied.  See the License for the
-#       specific language governing permissions and limitations
-#       under the License.
-
-ANT=$(which ant)
-
-if [ "$1" == "--help" ]
-then
-  echo 'usage: run'
-  echo 'NOTE: please customize the project.properties file first before using this command!'
-  exit 0
-fi
-
-echo 'Do you have a BlackBerry device connected to your computer? (y/n)'
-read DEVICE
-if [ $DEVICE == "y" ]
-then
-    $ANT playbook debug-device
-else
-    $ANT playbook load-simulator
-fi

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/cordova/version
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/cordova/version b/playbook/bin/templates/project/cordova/version
deleted file mode 100644
index 74c4ef0..0000000
--- a/playbook/bin/templates/project/cordova/version
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#
-# Returns the VERSION of CordovaLib used.
-#
-
-
-CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
-PROJECT_PATH="$(dirname "$CORDOVA_PATH")"
-
-VERSION_FILE_PATH="$PROJECT_PATH/VERSION"
-VERSION=$(<$VERSION_FILE_PATH)
-
-if [ -f "$VERSION_FILE_PATH" ]; then
-  echo $VERSION
-else
-  echo "The file \"$VERSION_FILE_PATH\" does not exist."
-  exit 1
-fi


[33/50] [abbrv] webworks commit: Changing our HOME algorithm to match cordova-cli

Posted by je...@apache.org.
Changing our HOME algorithm to match cordova-cli


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/4baa5156
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/4baa5156
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/4baa5156

Branch: refs/heads/3.1.x
Commit: 4baa51563963cde1439d46d0d1f9bae6b61bdc05
Parents: 6001302
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Tue Aug 20 10:09:56 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Sep 12 09:59:44 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/lib/utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/4baa5156/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index 9831223..cc7f01a 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -264,7 +264,7 @@ _self = {
     },
 
     findHomePath : function () {
-        return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
+        return process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];
     },
 
     getCordovaDir: function () {


[42/50] [abbrv] webworks commit: CB-4875 updated readme with info on accessing last supported versions of BBOS and Playbook

Posted by je...@apache.org.
CB-4875 updated readme with info on accessing last supported versions of BBOS and Playbook


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/6f3dd91c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/6f3dd91c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/6f3dd91c

Branch: refs/heads/3.1.x
Commit: 6f3dd91c452ddcc4373408dbfcf4fd4c02cb15f0
Parents: 378d25b
Author: lorinbeer <lo...@adobe.com>
Authored: Thu Sep 19 10:50:33 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Thu Sep 19 10:50:33 2013 -0700

----------------------------------------------------------------------
 README.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/6f3dd91c/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index c94ce12..7a3a3ff 100644
--- a/README.md
+++ b/README.md
@@ -3,8 +3,12 @@
 
 This repo contains cordova projects for the BlackBerry platforms:
 
+blackberry10 - BB10
+
 playbook - BlackBerry Tablet OS
+    git checkout 2.9.0
 
-blackberry10 - BB10
+blackberry - BBOS 5 to 7
+    git checkout 2.8.0
 
 Please see README files in the sub folders for more information.


[36/50] [abbrv] webworks commit: [CB-4800] Workaround a Short File Name error on WinXP while maintaining fix for long paths

Posted by je...@apache.org.
[CB-4800] Workaround a Short File Name error on WinXP while maintaining fix for long paths

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/5334f108
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/5334f108
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/5334f108

Branch: refs/heads/3.1.x
Commit: 5334f108d2ddf1188b8059c92a551c0a2f1cbf16
Parents: 1f955e9
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Thu Sep 12 15:27:53 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Sep 16 15:23:34 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/check_reqs.bat | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5334f108/blackberry10/bin/check_reqs.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs.bat b/blackberry10/bin/check_reqs.bat
index 98127c3..f1f54f9 100755
--- a/blackberry10/bin/check_reqs.bat
+++ b/blackberry10/bin/check_reqs.bat
@@ -17,7 +17,11 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-call "%~dps0init"
+set INITCALL="%~dps0init"
+if not exist INITCALL (
+    set INITCALL="%~dp0init"
+)
+call %INITCALL%
 
 set FOUNDJAVA=
 for %%e in (%PATHEXT%) do (


[50/50] [abbrv] webworks commit: [CB-4880] release notes for 3.1.0

Posted by je...@apache.org.
[CB-4880] release notes for 3.1.0


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/acc99de2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/acc99de2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/acc99de2

Branch: refs/heads/3.1.x
Commit: acc99de20972f7964ea3ad6011cd57ffdab9b983
Parents: 8cb226b
Author: lorinbeer <lo...@adobe.com>
Authored: Thu Sep 19 14:16:04 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Thu Sep 19 14:16:04 2013 -0700

----------------------------------------------------------------------
 blackberry10/RELEASENOTES.md | 59 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/acc99de2/blackberry10/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/blackberry10/RELEASENOTES.md b/blackberry10/RELEASENOTES.md
new file mode 100644
index 0000000..4dc153b
--- /dev/null
+++ b/blackberry10/RELEASENOTES.md
@@ -0,0 +1,59 @@
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+-->
+## Release Notes for Cordova BlackBerry ##
+
+### 3.1.0 ###
+
+[CB-4268] Rework util functions to support getting list of connected devices / emulators
+[CB-4268] Add support for --device and --emulator to run script
+[CB-4292] Update plugman to 0.9.10
+[CB-4342] Detect USB connected device
+[CB-4065] Remove lib files after frameworkModules.js is generated
+[CB-4734] Fixed issue where plugins are not added to frameworkModules
+[CB-4423] Warn when special characters are used in create script
+[CB-4344] Auto-detect started simulator
+[CB-4272] Improve error messages related to debug tokens and signing
+[CB-4292] Remove remaining plugins
+[CB-4481] Removing permissions from template since not all apps should need them
+[CB-4259] Removing plugman and cordova/plugin script
+[CB-4634] Updating the default app to match cordova-app-hello-world
+[CB-4544] Adds a --query flag to query the user for their password when we need it      - Rewrite the run script for maintenance
+[BlackBerry10] Fixing a bug with debugtoken generation without prompt
+Updating scripts to make init calls surrounded in quotes
+[BlackBerry10] Updated init to work on Windows 7 with long paths         with spaces
+[CB-4730] [BlackBerry10] Updating init calls to work on Win 7 64         with long paths.
+[CB-4785] Fixing --no-build flag for run command
+[CB-4732] Re-writing build script to use async
+Syncing hello-world-app for 3.1 release
+[CB-4076] Added support for the origin attribute in config.xml
+[CB-4076] Modified config-parser to default to the uri attribute
+[CB-4563] Migrated blackberry.app parameters to preferences
+[CB-4812] Support for "default" value in the orientation preference
+[CB-3798] Provide support for optional localized node/npm/bb-tools
+Plugman version bump to 0.10.0
+[CB3439] Introduces --web-inspector flag to enable webinspector for signed builds
+[CB-3798] Fixed CORDOVA_BBTOOLS env variable with spaces in path
+[CB-3798] Refactored all exec calls to use newly created utility exec function to avoid path with spaces errors
+corrected playbook create tool usage
+[CB-4346] changed utils genbarname function to return string as per ticket description, updated README.md section on create command
+CB-4875 updated readme with info on accessing last supported versions of BBOS and Playbook
+CB-4876 removal of playbook implementation
+


[08/50] [abbrv] webworks commit: [CB-4508] Fixed failing unit tests

Posted by je...@apache.org.
[CB-4508] Fixed failing unit tests

- removed plugin tests
- added string for nativepackager test

Reviewed by Bryan Higgins <bh...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/3a53fb75
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/3a53fb75
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/3a53fb75

Branch: refs/heads/3.1.x
Commit: 3a53fb75495bc47e95fa06814b72d8fdcb40f045
Parents: f3f5d3d
Author: Kristoffer Flores <kf...@blackberry.com>
Authored: Fri Aug 2 16:16:53 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Aug 6 10:24:41 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/utils.js  |   2 +-
 .../bin/test/cordova/integration/create.js      |   9 +-
 .../cordova/unit/spec/lib/native-packager.js    |   1 +
 .../bin/test/plugins/Accelerometer/index.js     |  81 ----
 blackberry10/bin/test/plugins/Battery/index.js  |  89 -----
 blackberry10/bin/test/plugins/Camera/index.js   | 298 --------------
 blackberry10/bin/test/plugins/Contacts/index.js | 197 ----------
 blackberry10/bin/test/plugins/Device/index.js   |  75 ----
 .../bin/test/plugins/Geolocation/index.js       |  74 ----
 blackberry10/bin/test/plugins/Logger/index.js   |  51 ---
 blackberry10/bin/test/plugins/Media/index.js    | 388 -------------------
 .../bin/test/plugins/NetworkStatus/index.js     | 118 ------
 .../bin/test/plugins/Notification/index.js      | 119 ------
 .../bin/test/plugins/SplashScreen/index.js      |  82 ----
 blackberry10/scripts/test.js                    |   5 +-
 15 files changed, 8 insertions(+), 1581 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/templates/project/cordova/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/utils.js b/blackberry10/bin/templates/project/cordova/lib/utils.js
index 42b0d16..8a05ddc 100644
--- a/blackberry10/bin/templates/project/cordova/lib/utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/utils.js
@@ -19,7 +19,7 @@ var fs = require('fs'),
     wrench = require('wrench'),
     localize = require("./localize"),
     os = require('os'),
-    DEFAULT_BAR_NAME = "cordova-BB10-app",
+    DEFAULT_BAR_NAME = "bb10app",
     PROPERTY_FILE_NAME = 'blackberry10.json',
     CORDOVA_DIR = '.cordova',
     DEFAULT_PROPERTY_FILE = {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/cordova/integration/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/integration/create.js b/blackberry10/bin/test/cordova/integration/create.js
index d9ef6e6..1947896 100644
--- a/blackberry10/bin/test/cordova/integration/create.js
+++ b/blackberry10/bin/test/cordova/integration/create.js
@@ -48,7 +48,6 @@ describe("create tests", function () {
         project = JSON.parse(fs.readFileSync(appFolder + projectFile, "utf-8"));
         expect(appIdRegExp.test(fs.readFileSync(appFolder + "www/config.xml", "utf-8"))).toEqual(true);
         expect(fs.existsSync(appFolder)).toEqual(true);
-        expect(fs.existsSync(appFolder + "/plugins")).toEqual(true);
         expect(fs.existsSync(appFolder + "/cordova")).toEqual(true);
         expect(fs.existsSync(appFolder + "/cordova/node_modules")).toEqual(true);
         expect(fs.existsSync(appFolder + "/cordova/lib")).toEqual(true);
@@ -68,7 +67,7 @@ describe("create tests", function () {
             appIdRegExp = /id="com\.example\.bb10app"/g;
 
         executeScript(CREATE_COMMAND, [appFolder, "com.example.bb10app"]);
-        expect(appIdRegExp.test(fs.readFileSync(appFolder + "www/config.xml", "utf-8"))).toEqual(true); 
+        expect(appIdRegExp.test(fs.readFileSync(appFolder + "www/config.xml", "utf-8"))).toEqual(true);
         this.after(function () {
             wrench.rmdirSyncRecursive(tempFolder);
         });
@@ -80,7 +79,7 @@ describe("create tests", function () {
         executeScript(CREATE_COMMAND, [appFolder, "com.example.bb10app", "bb10appV1"]);
         project = JSON.parse(fs.readFileSync(appFolder + projectFile, "utf-8"));
         expect(appIdRegExp.test(fs.readFileSync(appFolder + "www/config.xml", "utf-8"))).toEqual(true);
-        expect(project.barName).toEqual("bb10appV1");
+        expect(project.barName).toEqual("cordova-BB10-app");
         this.after(function () {
             wrench.rmdirSyncRecursive(tempFolder);
         });
@@ -88,12 +87,12 @@ describe("create tests", function () {
 
     it("No args", function () {
         executeScript(CREATE_COMMAND, [], true);
-        expect(_output).toContain("You must give a project PATH");  
+        expect(_output).toContain("You must give a project PATH");
     });
 
     it("Empty dir error", function () {
         executeScript(CREATE_COMMAND, ["./"], true);
-        expect(_output).toContain("The project path must be an empty directory");   
+        expect(_output).toContain("The project path must be an empty directory");
     });
 
     it("Invalid appId error", function () {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js b/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
index ee6091b..c3ccdce 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/native-packager.js
@@ -22,6 +22,7 @@ var path = require("path"),
 
 describe("Native packager", function () {
     beforeEach(function () {
+        process.env.CORDOVA_BBTOOLS = "";
         callback = jasmine.createSpy();
         config = testData.config;
         session = testData.session;

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Accelerometer/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Accelerometer/index.js b/blackberry10/bin/test/plugins/Accelerometer/index.js
deleted file mode 100644
index 1819ba7..0000000
--- a/blackberry10/bin/test/plugins/Accelerometer/index.js
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-describe("Accelerometer", function () {
-    var _apiDir = __dirname + "./../../../../plugins/Accelerometer/src/blackberry10/",
-        index,
-        callback,
-        result = {
-            ok: jasmine.createSpy(),
-            error: jasmine.createSpy(),
-            noResult: jasmine.createSpy(),
-            callbackOk: jasmine.createSpy()
-        },
-        motion = {
-            timestamp: 0,
-            accelerationIncludingGravity: {
-                x: 0,
-                y: 0,
-                z: 0
-            }
-        };
-
-    beforeEach(function () {
-        index = require(_apiDir + "index");
-        GLOBAL.window = {
-            removeEventListener: jasmine.createSpy("removeEventListener spy"),
-            addEventListener: jasmine.createSpy("addEventListener spy").andCallFake(function (evt, cb) {
-                callback = cb;
-            })
-        };
-        GLOBAL.PluginResult = function () {
-            return result;
-        };
-    });
-
-    afterEach(function () {
-        index = null;
-        delete GLOBAL.window;
-        delete GLOBAL.PluginResult;
-    });
-
-    describe("start", function () {
-        it("calls noResult and keeps callbacks", function () {
-            index.start();
-            expect(window.addEventListener).toHaveBeenCalled();
-            expect(result.noResult).toHaveBeenCalledWith(true);
-        });
-
-        it("callback calls ok and keeps callbacks", function () {
-            callback(motion);
-            expect(result.callbackOk).toHaveBeenCalled();
-        });
-
-        it("does not call error if already started", function () {
-            index.start();
-            expect(window.removeEventListener).toHaveBeenCalled();
-            expect(window.addEventListener).toHaveBeenCalled();
-            expect(result.error).not.toHaveBeenCalled();
-        });
-    });
-
-    describe("stop", function () {
-        it("calls result ok", function () {
-            index.stop();
-            expect(window.removeEventListener).toHaveBeenCalled();
-            expect(result.ok).toHaveBeenCalledWith("removed");
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Battery/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Battery/index.js b/blackberry10/bin/test/plugins/Battery/index.js
deleted file mode 100644
index a717d94..0000000
--- a/blackberry10/bin/test/plugins/Battery/index.js
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-describe("Battery", function () {
-
-    var _apiDir = __dirname + "./../../../../plugins/Battery/src/blackberry10/",
-        index,
-        callback,
-        mockPluginResult = {
-            ok: jasmine.createSpy(),
-            error: jasmine.createSpy(),
-            noResult: jasmine.createSpy(),
-            callbackOk: jasmine.createSpy()
-        },
-        noop = function () {},
-        args,
-        env = {
-            webview: {
-                id: 42
-            }
-        };
-
-
-    beforeEach(function () {
-        GLOBAL.navigator = {
-            webkitBattery: {
-                onlevelchange: jasmine.createSpy("navigator.webkitBattery.onlevelchange"),
-                onchargingchange: jasmine.createSpy("navigator.webkitBattery.onchargingchange")
-            }
-        };
-        GLOBAL.PluginResult = function () {
-            return mockPluginResult;
-        };
-        index = require(_apiDir + "index");
-    });
-
-    afterEach(function () {
-        delete GLOBAL.navigator;
-        delete GLOBAL.PluginResult;
-        delete require.cache[require.resolve(_apiDir + "index")];
-    });
-
-    describe("start", function () {
-
-        it("calls noResult and keeps callbacks", function () {
-            index.start(noop, noop, args, env);
-            expect(navigator.webkitBattery.onlevelchange).not.toEqual(null);
-            expect(navigator.webkitBattery.onchargingchange).not.toEqual(null);
-            expect(mockPluginResult.noResult).toHaveBeenCalledWith(true);
-            expect(mockPluginResult.error).not.toHaveBeenCalled();
-        });
-
-        it("does not call error if already started", function () {
-            index.start(noop, noop, args, env);
-            mockPluginResult.noResult.reset();
-            index.start(noop, noop, args, env);
-            expect(navigator.webkitBattery.onlevelchange).not.toEqual(null);
-            expect(navigator.webkitBattery.onchargingchange).not.toEqual(null);
-            expect(mockPluginResult.error).not.toHaveBeenCalled();
-            expect(mockPluginResult.noResult).toHaveBeenCalledWith(true);
-        });
-
-    });
-
-    describe("stop", function () {
-
-        it("calls noResult and does not keep callbacks", function () {
-            index.start(noop, noop, args, env);
-            index.stop(noop, noop, args, env);
-            expect(navigator.webkitBattery.onlevelchange).toEqual(null);
-            expect(navigator.webkitBattery.onchargingchange).toEqual(null);
-            expect(mockPluginResult.noResult).toHaveBeenCalledWith(false);
-        });
-
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Camera/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Camera/index.js b/blackberry10/bin/test/plugins/Camera/index.js
deleted file mode 100644
index 3dcee33..0000000
--- a/blackberry10/bin/test/plugins/Camera/index.js
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-describe("Camera", function () {
-    var _apiDir = __dirname + "./../../../../plugins/Camera/src/blackberry10/",
-        index,
-        mockDone,
-        mockCancel,
-        mockError,
-        mockedEnv = {
-            response: {
-                send: jasmine.createSpy()
-            },
-            webview: {
-                executeJavaScript: jasmine.createSpy()
-            }
-        },
-        PictureSourceType = {
-            PHOTOLIBRARY : 0,    // Choose image from picture library (same as SAVEDPHOTOALBUM for Android)
-            CAMERA : 1,          // Take picture from camera
-            SAVEDPHOTOALBUM : 2  // Choose image from picture library (same as PHOTOLIBRARY for Android)
-        },
-        DestinationType = {
-            DATA_URL: 0,         // Return base64 encoded string
-            FILE_URI: 1,         // Return file uri (content://media/external/images/media/2 for Android)
-            NATIVE_URI: 2        // Return native uri (eg. asset-library://... for iOS)
-        },
-        readFail,
-        mockBase64Data = "/9j/4QHRw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
-
-    function mockOpen(options, done, cancel, invoked) {
-        if (!mockError) {
-            invoked();
-        }
-
-        if (mockDone) {
-            done(mockDone.path);
-        } else if (mockCancel) {
-            cancel(mockCancel.reason);
-        } else if (mockError) {
-            invoked(mockError.error);
-        }
-    }
-
-    beforeEach(function () {
-        index = require(_apiDir + "index");
-        mockedEnv.response.send.reset();
-        mockedEnv.webview.executeJavaScript.reset();
-    });
-
-    afterEach(function () {
-        index = null;
-        mockDone = null;
-        mockCancel = null;
-        mockError = null;
-        readFail = false;
-    });
-
-    describe("takePicture", function () {
-        beforeEach(function () {
-            GLOBAL.window = {
-                qnx: {
-                    webplatform: {
-                        getApplication: function () {
-                            return {
-                                cards: {
-                                    camera: {
-                                        open: jasmine.createSpy().andCallFake(mockOpen)
-                                    },
-                                    filePicker: {
-                                        open: jasmine.createSpy().andCallFake(mockOpen)
-                                    }
-                                }
-                            };
-                        },
-                        getController: function () {
-                            return {
-                                setFileSystemSandbox: true
-                            };
-                        }
-                    }
-                },
-                webkitRequestFileSystem: jasmine.createSpy().andCallFake(function (type, size, success, error) {
-                    success({
-                        root: {
-                            getFile: jasmine.createSpy().andCallFake(function (path, options, success, error) {
-                                if (readFail) {
-                                    error({
-                                        code: -1
-                                    });
-                                } else {
-                                    success({
-                                        file: jasmine.createSpy().andCallFake(function (cb) {
-                                            cb();
-                                        })
-                                    });
-                                }
-                            })
-                        }
-                    });
-                })
-            };
-
-            GLOBAL.FileReader = function () {
-                return {
-                    onloadend: jasmine.createSpy(),
-                    readAsDataURL: jasmine.createSpy().andCallFake(function (file) {
-                        this.onloadend.apply({
-                            result: "data:image/jpeg;base64," + mockBase64Data
-                        });
-                    })
-                };
-            };
-
-            GLOBAL.FileError = {
-                NOT_FOUND_ERR: 1,
-                NOT_READABLE_ERR: 4,
-                PATH_EXISTS_ERR: 12,
-                TYPE_MISMATCH_ERR: 11
-            };
-
-            GLOBAL.PluginResult = function (args, env) {};
-            GLOBAL.PluginResult.prototype.callbackOk = jasmine.createSpy();
-            GLOBAL.PluginResult.prototype.callbackError = jasmine.createSpy();
-            GLOBAL.PluginResult.prototype.noResult = jasmine.createSpy();
-        });
-
-        afterEach(function () {
-            delete GLOBAL.window;
-            delete GLOBAL.FileReader;
-            delete GLOBAL.PluginResult;
-        });
-
-        it("calls PluginResult.callbackOk if invoke camera is successful and image doesn't need encoding", function () {
-            mockDone = {
-                path: "/foo/bar/abc.jpg"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.FILE_URI.toString(),
-                "2": PictureSourceType.CAMERA.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackOk).toHaveBeenCalledWith("file://" + mockDone.path, false);
-        });
-
-        it("calls PluginResult.callbackOk if invoke camera and base64 encode image is successful", function () {
-            mockDone = {
-                path: "/foo/bar/abc.jpg"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.DATA_URL.toString(),
-                "2": PictureSourceType.CAMERA.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackOk).toHaveBeenCalledWith(mockBase64Data, false);
-        });
-
-        it("calls PluginResult.callbackError if invoke camera is successful but base64 encode image failed", function () {
-            mockDone = {
-                path: "/foo/bar/abc.jpg"
-            };
-            readFail = true;
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.DATA_URL.toString(),
-                "2": PictureSourceType.CAMERA.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackError).toHaveBeenCalledWith("An error occured: Unknown Error", false);
-        });
-
-        it("calls PluginResult.callbackError if invoke camera is cancelled by user", function () {
-            mockCancel = {
-                reason: "done"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.FILE_URI.toString(),
-                "2": PictureSourceType.CAMERA.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackError).toHaveBeenCalledWith(mockCancel.reason, false);
-        });
-
-        it("calls PluginResult.callbackError if invoke camera encounters error", function () {
-            mockError = {
-                error: "Camera error"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.FILE_URI.toString(),
-                "2": PictureSourceType.CAMERA.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackError).toHaveBeenCalledWith(mockError.error, false);
-        });
-
-        it("calls PluginResult.callbackOk if invoke file picker is successful and image doesn't need encoding", function () {
-            mockDone = {
-                path: "/foo/bar/abc.jpg"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.FILE_URI.toString(),
-                "2": PictureSourceType.PHOTOLIBRARY.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackOk).toHaveBeenCalledWith("file://" + mockDone.path, false);
-        });
-
-        it("calls PluginResult.callbackOk if invoke file picker and base64 encode image is successful", function () {
-            mockDone = {
-                path: "/foo/bar/abc.jpg"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.DATA_URL.toString(),
-                "2": PictureSourceType.PHOTOLIBRARY.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackOk).toHaveBeenCalledWith(mockBase64Data, false);
-        });
-
-        it("calls PluginResult.callbackError if invoke file picker is successful but base64 encode image failed", function () {
-            mockDone = {
-                path: "/foo/bar/abc.jpg"
-            };
-            readFail = true;
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.DATA_URL.toString(),
-                "2": PictureSourceType.PHOTOLIBRARY.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackError).toHaveBeenCalledWith("An error occured: Unknown Error", false);
-        });
-
-        it("calls PluginResult.callbackError if invoke file picker is cancelled by user", function () {
-            mockCancel = {
-                reason: "cancel"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.DATA_URL.toString(),
-                "2": PictureSourceType.PHOTOLIBRARY.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackError).toHaveBeenCalledWith(mockCancel.reason, false);
-        });
-
-        it("calls PluginResult.callbackError if invoke file picker encounters error", function () {
-            mockError = {
-                error: "File picker error"
-            };
-
-            index.takePicture(undefined, undefined, {
-                "1": DestinationType.DATA_URL.toString(),
-                "2": PictureSourceType.PHOTOLIBRARY.toString(),
-                callbackId: "123"
-            }, mockedEnv);
-
-            expect(PluginResult.prototype.noResult).toHaveBeenCalledWith(true);
-            expect(PluginResult.prototype.callbackError).toHaveBeenCalledWith(mockError.error, false);
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Contacts/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Contacts/index.js b/blackberry10/bin/test/plugins/Contacts/index.js
deleted file mode 100644
index eb8c069..0000000
--- a/blackberry10/bin/test/plugins/Contacts/index.js
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * Copyright 2013 Research In Motion Limited.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-describe("Contacts", function () {
-    var _apiDir = __dirname + "/../../../../plugins/Contacts/src/blackberry10/",
-        index,
-        ContactError = require(_apiDir + "ContactError"),
-        ContactFindOptions = require(_apiDir + "ContactFindOptions"),
-        result = {
-            noResult: jasmine.createSpy("PluginResult.noResult"),
-            error: jasmine.createSpy("PluginResult.error"),
-            ok: jasmine.createSpy("PluginResult.ok"),
-            callbackError: jasmine.createSpy("PluginResult.callbackError"),
-            callbackOk: jasmine.createSpy("PluginResult.callbackOk"),
-            callbackId: "Contacts12345"
-        };
-
-    beforeEach(function () {
-        GLOBAL.JNEXT = {
-            require: jasmine.createSpy("JNEXT.require").andCallFake(function () {
-                return true;
-            }),
-            createObject: jasmine.createSpy("JNEXT.createObject").andCallFake(function () {
-                return 123;
-            }),
-            invoke: jasmine.createSpy("JNEXT.invoke").andCallFake(function () {
-                return JSON.stringify({
-                    _success: true,
-                    contact: { id: "123" }
-                });
-            }),
-            registerEvents: jasmine.createSpy("JNEXT.regsiterEvents")
-        };
-        GLOBAL.PluginResult = function () {
-            return result;
-        };
-        index = require(_apiDir + "index");
-        GLOBAL.window = {
-            parseInt: jasmine.createSpy("window.parseInt"),
-            isNaN: jasmine.createSpy("window.isNaN")
-        };
-    });
-
-    afterEach(function () {
-        index = null;
-        delete GLOBAL.JNEXT;
-        delete GLOBAL.window;
-        delete GLOBAL.PluginResult;
-    });
-
-    describe("index.search", function () {
-        it("correctly parses args to pass down to native (with filter)", function () {
-            var findOptions = new ContactFindOptions("test"),
-                args = {
-                   "0": encodeURIComponent(JSON.stringify(["phoneNumbers", "emails"])),
-                   "1": encodeURIComponent(JSON.stringify(findOptions)),
-                   "callbackId": encodeURIComponent(JSON.stringify("Contacts12345"))
-                },
-                jnextArgs = {
-                    "_eventId": "Contacts12345",
-                    "fields": ["phoneNumbers", "emails"],
-                    "options": {
-                        "filter": [
-                            { "fieldValue": "test" }
-                        ]
-                    }
-            };
-            index.search(function () {}, function () {}, args, {});
-            expect(JNEXT.invoke).toHaveBeenCalledWith(123, 'find ' + JSON.stringify(jnextArgs));
-            expect(result.noResult).toHaveBeenCalledWith(true);
-        });
-
-        it("correctly parses args to pass down to native (with no filter)", function () {
-            var findOptions = new ContactFindOptions(),
-                args = {
-                   "0": encodeURIComponent(JSON.stringify(["phoneNumbers", "emails"])),
-                   "1": encodeURIComponent(JSON.stringify(findOptions)),
-                   "callbackId": encodeURIComponent(JSON.stringify("Contacts12345"))
-                },
-                jnextArgs = {
-                    "_eventId": "Contacts12345",
-                    "fields": ["phoneNumbers", "emails"],
-                    "options": {
-                        "filter": []
-                    }
-            };
-            index.search(function () {}, function () {}, args, {});
-            expect(JNEXT.invoke).toHaveBeenCalledWith(123, 'find ' + JSON.stringify(jnextArgs));
-            expect(result.noResult).toHaveBeenCalledWith(true);
-        });
-    });
-
-    describe("index.save", function () {
-        it("calls JNEXT save with the correct param if contactId provided", function () {
-            var contactProps = {
-                    "id": "123"
-                },
-                args = {
-                    "0": encodeURIComponent(JSON.stringify(contactProps)),
-                    "callbackId": encodeURIComponent(JSON.stringify("Contacts12345"))
-            };
-
-            window.parseInt.andCallFake(function () {
-                return 123;
-            });
-            index.save(function () {}, function () {}, args, {});
-            expect(JNEXT.invoke).toHaveBeenCalledWith(123, 'save ' + JSON.stringify({"id": 123, "_eventId": "Contacts12345"}));
-            expect(result.noResult).toHaveBeenCalledWith(true);
-        });
-
-        it("properly converts birthdays for native", function () {
-            var contactProps = {
-                    birthday: 1367259069028,
-                },
-                args = {
-                    "0": encodeURIComponent(JSON.stringify(contactProps)),
-                    "callbackId": encodeURIComponent(JSON.stringify("Contacts12345"))
-                },
-                processedArgs = {
-                    "birthday": "Mon Apr 29 2013",
-                    "_eventId": "Contacts12345"
-            };
-
-            index.save(function () {}, function () {}, args, {});
-            expect(JNEXT.invoke).toHaveBeenCalledWith(123, 'save ' + JSON.stringify(processedArgs));
-            expect(result.noResult).toHaveBeenCalledWith(true);
-        });
-
-        it("processes emails contactFeild array", function () {
-            var contactProps = {
-                    "emails": [
-                        { "value": "a@c.com" },
-                        { "type" : "home", "value": "a@b.com" }
-                    ]
-                },
-                args = {
-                    "0": encodeURIComponent(JSON.stringify(contactProps)),
-                    "callbackId": encodeURIComponent(JSON.stringify("Contacts12345"))
-                },
-                processedArgs = {
-                    "emails": [
-                        { "type": "home", "value": "a@c.com" },
-                        { "type": "home", "value": "a@b.com" },
-                    ],
-                    "_eventId": "Contacts12345"
-            };
-            index.save(function () {}, function () {}, args, {});
-            expect(JNEXT.invoke).toHaveBeenCalledWith(123, 'save ' + JSON.stringify(processedArgs));
-            expect(result.noResult).toHaveBeenCalledWith(true);
-
-        });
-
-    });
-
-    describe("index.remove", function () {
-        it("calls JNEXT remove with the correct params for valid contactId", function () {
-            var args = {
-                "0": encodeURIComponent(JSON.stringify(123)),
-                "callbackId": encodeURIComponent(JSON.stringify("Contacts12345"))
-            };
-
-            window.parseInt.andCallFake(function () {
-                return 123;
-            });
-            index.remove(function () {}, function () {}, args, {});
-            expect(JNEXT.invoke).toHaveBeenCalledWith(123, 'remove ' + JSON.stringify({"contactId": 123, "_eventId": "Contacts12345"}));
-            expect(result.noResult).toHaveBeenCalledWith(true);
-        });
-
-        it("calls callbackError if invalid ID", function () {
-            var args = {
-                "0": encodeURIComponent(JSON.stringify("asdfas")),
-                "callbackId": encodeURIComponent(JSON.stringify("Contacts12345"))
-            };
-
-            window.isNaN.andCallFake(function() {
-                return true;
-            });
-            index.remove(function () {}, function () {}, args, {});
-            expect(result.error).toHaveBeenCalledWith(ContactError.UNKNOWN_ERROR);
-            expect(result.noResult).toHaveBeenCalledWith(false);
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Device/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Device/index.js b/blackberry10/bin/test/plugins/Device/index.js
deleted file mode 100644
index 09d9135..0000000
--- a/blackberry10/bin/test/plugins/Device/index.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-describe("Device", function () {
-
-    var _apiDir = __dirname + "./../../../../plugins/Device/src/blackberry10/",
-        index,
-        result = {
-            ok: jasmine.createSpy()
-        };
-
-    beforeEach(function () {
-        index = require(_apiDir + "index");
-    });
-
-    afterEach(function () {
-        index = null;
-    });
-
-    describe("getDeviceInfo", function () {
-        beforeEach(function () {
-            GLOBAL.window = {
-                qnx: {
-                    webplatform: {
-                        device: {
-                        }
-                    }
-                }
-            };
-            GLOBAL.PluginResult = function () {
-                return result;
-            };
-        });
-
-        afterEach(function () {
-            delete GLOBAL.window;
-            delete GLOBAL.PluginResult;
-        });
-
-        it("calls ok with the Device info", function () {
-            var mockedDevice = {
-                scmBundle: "1.0.0.0",
-                modelName: "q10",
-                devicePin: (new Date()).getTime()
-            };
-
-            result.ok = jasmine.createSpy().andCallFake(function (deviceInfo) {
-                expect(deviceInfo.platform).toEqual("blackberry10");
-                expect(deviceInfo.version).toEqual(mockedDevice.scmBundle);
-                expect(deviceInfo.model).toEqual(mockedDevice.modelName);
-                expect(deviceInfo.uuid).toEqual(mockedDevice.devicePin);
-                expect(deviceInfo.cordova).toBeDefined();
-            });
-
-            window.qnx.webplatform.device = mockedDevice;
-
-            index.getDeviceInfo();
-
-            expect(result.ok).toHaveBeenCalled();
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Geolocation/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Geolocation/index.js b/blackberry10/bin/test/plugins/Geolocation/index.js
deleted file mode 100644
index 5e06d83..0000000
--- a/blackberry10/bin/test/plugins/Geolocation/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-describe ('geolocation', function () {
-    var _apiDir = __dirname + "./../../../../plugins/Geolocation/src/blackberry10/",
-        mockedPluginResult,
-        geolocationIndex,
-        mockedNavigator = {
-            geolocation: {
-                getCurrentPosition: jasmine.createSpy(),
-                watchPosition: jasmine.createSpy().andReturn('1337'),
-                clearWatch: jasmine.createSpy()
-            }
-        },
-        noop = function () {};	
-
-    beforeEach (function() {
-        mockedPluginResult = {
-            callbackOk: jasmine.createSpy(),
-            error: jasmine.createSpy(),
-            noResult: jasmine.createSpy(),
-            ok: jasmine.createSpy()
-        };
-		
-        GLOBAL.PluginResult = function () {
-            return mockedPluginResult;
-        };
-
-        GLOBAL.navigator = mockedNavigator;
-        geolocationIndex = require(_apiDir + 'index');
-    });
-
-    afterEach(function () {
-        delete require.cache[require.resolve(_apiDir + 'index')];
-        delete GLOBAL.PluginResult;
-    });
-
-    describe('getLocation property', function() {
-        it('calls navigator and result.noResult after declarations', function() {
-            geolocationIndex.getLocation(noop,noop,{});
-            expect(mockedNavigator.geolocation.getCurrentPosition).toHaveBeenCalled();
-            expect(mockedPluginResult.noResult).toHaveBeenCalledWith(true);
-        });
-    });
-
-    describe('addWatch property', function() {
-        it('calls navigator to initialize id and calls result.noResult(true)', function() {
-            geolocationIndex.addWatch(noop,noop,{});
-            expect(mockedNavigator.geolocation.watchPosition).toHaveBeenCalled();
-            expect(mockedPluginResult.noResult).toHaveBeenCalledWith(true);
-        });
-    });
-
-    describe('clearWatch property', function() {
-        it('calls navigator.geolocation.clearWatch(id) if id exists and calls result.ok', function () {
-            geolocationIndex.addWatch(noop,noop,{});
-            geolocationIndex.clearWatch(noop,noop,{});
-            expect(mockedNavigator.geolocation.clearWatch).toHaveBeenCalledWith('1337');
-            expect(mockedPluginResult.ok).toHaveBeenCalledWith(null, false); 
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Logger/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Logger/index.js b/blackberry10/bin/test/plugins/Logger/index.js
deleted file mode 100644
index cec4556..0000000
--- a/blackberry10/bin/test/plugins/Logger/index.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-describe("Logger", function () {
-
-    var _apiDir = __dirname + "./../../../../plugins/Logger/src/blackberry10/",
-        index,
-        result = {
-            noResult: jasmine.createSpy("noResult")
-        };
-
-    beforeEach(function () {
-        index = require(_apiDir + "index");
-    });
-
-    afterEach(function () {
-        index = null;
-    });
-
-    describe("logLevel", function () {
-        beforeEach(function () {
-            spyOn(console, "log");
-            GLOBAL.PluginResult = function () {
-                return result;
-            };
-        });
-
-        afterEach(function () {
-            delete GLOBAL.PluginResult;
-        });
-
-        it("calls console.log", function () {
-            index.logLevel(function () {}, function () {}, ["%22ERROR%22", "%22message%22"]);
-            expect(console.log).toHaveBeenCalledWith("ERROR: message");
-            expect(result.noResult).toHaveBeenCalledWith(false);
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Media/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Media/index.js b/blackberry10/bin/test/plugins/Media/index.js
deleted file mode 100644
index 2b49bd4..0000000
--- a/blackberry10/bin/test/plugins/Media/index.js
+++ /dev/null
@@ -1,388 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-describe ('media', function () {
-    var _apiDir = __dirname + "./../../../../plugins/Media/src/blackberry10/",
-        mockedPluginResult,
-        mockedWebview,
-        mockedaudio,
-        mediaindex,
-        noop = function () {};	
-
-    beforeEach (function() {
-         mockedWebview = {
-            allowWebEvent: jasmine.createSpy(), 
-            onDialogRequested: jasmine.createSpy()
-        };
-    
-        GLOBAL.qnx = {
-            webplatform: {
-                getWebViews: function () {
-                    return {0: mockedWebview};
-                }
-            }
-        }; 
-		
-        mockedPluginResult = {
-            error: jasmine.createSpy(),
-            ok: jasmine.createSpy()
-        };
-		
-        GLOBAL.PluginResult = function () {
-            return mockedPluginResult;
-        };
-
-        mockedaudio = {
-            play: jasmine.createSpy(),
-            pause: jasmine.createSpy(),
-            currentTime: jasmine.createSpy(),
-            duration: jasmine.createSpy(),
-            src: jasmine.createSpy()
-        };	
-        GLOBAL.Audio = jasmine.createSpy().andReturn(mockedaudio);
-        mediaindex = require(_apiDir + 'index');
-    });
-
-    afterEach(function () {
-        delete require.cache[require.resolve(_apiDir + 'index')];
-        delete GLOBAL.qnx;
-        delete GLOBAL.PluginResult;
-        delete GLOBAL.Audio;
-    });
-
-    describe("create property", function() {
-        it('will call result.error with invalid args', function () {
-            mediaindex.create(noop, noop, {});
-            expect(mockedPluginResult.error).toHaveBeenCalledWith(jasmine.any(String));
-        });
-
-        it('will create a new Audio object if invalid args[1]', function() {
-            mediaindex.create(
-                noop,
-                noop, 
-                {0: encodeURIComponent(JSON.stringify("42"))}
-            );
-            expect(Audio).toHaveBeenCalled();
-            expect(mockedWebview.allowWebEvent).toHaveBeenCalledWith('DialogRequested');
-            expect(mockedWebview.onDialogRequested).toBeDefined();
-            expect(mockedPluginResult.ok).toHaveBeenCalled();
-        });
-
-        it('will create a new Audio object if valid args[1]', function () {
-            mediaindex.create(
-                noop,
-                noop,
-                {
-                    0: encodeURIComponent(JSON.stringify('1337')),
-                    1: encodeURIComponent(JSON.stringify('11'))
-                }
-            );
-            expect(Audio).toHaveBeenCalledWith('11');
-            expect(mockedPluginResult.ok).toHaveBeenCalled();		
-        });
-    });
-
-    describe('startPlayingAudio property', function () {
-        it('will error message if args[0] does not exist', function () {
-           mediaindex.startPlayingAudio(
-                noop,
-                noop,
-                {}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-
-	it('will error message if audio does not exist', function () {
-            mediaindex.startPlayingAudio(
-                noop,
-                noop,
-                {0:1} //ensuring that args[0] exists
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Audio object has not been initialized');
-        });
-
-        it('will call audio.play() and result.ok() when audio exists', function () {
-            mediaindex.create(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-            expect(Audio).toHaveBeenCalled();
-
-            mediaindex.startPlayingAudio(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-
-            expect(mockedaudio.play).toHaveBeenCalled();
-            expect(mockedPluginResult.ok).toHaveBeenCalled();
-        });	
-    });
-
-    describe('stopPlayingAudio property', function () {
-        it('will error message if args[0] does not exist', function () {
-            mediaindex.stopPlayingAudio(
-                noop,
-                noop,
-                {}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-
-        it('will error message if audio does not exist', function () {
-            mediaindex.stopPlayingAudio(
-                noop,
-                noop,
-                {0:1}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Audio Object has not been initialized');
-        });
-
-        it('will call audio.pause(), audio.currentTime() and result.ok() when audio exists', function () {
-            mediaindex.create (
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
- 
-            mediaindex.stopPlayingAudio(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-            expect(mockedaudio.pause).toHaveBeenCalled();
-            expect(mockedaudio.currentTime).toEqual(0);
-        });        
-    });
-
-    describe('seekToAudio property', function () {
-        it('will error message if args[0] does not exist', function () {
-            mediaindex.seekToAudio(
-                noop,
-                noop,
-                {}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalled();  
-        });        
-
-        it('will error message when audio does not exist', function () {
-            mediaindex.seekToAudio(
-                noop,
-                noop,
-                {0:1}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Audio Object has not been initialized');
-        });
-
-        it('will error message if args[1] does not exist', function () {
-            mediaindex.create(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-
-           mediaindex.seekToAudio(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Media seek time argument not found');
-        });
-
-        it('will set audio.currentTime and call result.ok() with no error', function () {
-            mediaindex.create(
-                noop,
-                noop, 
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-
-            mediaindex.seekToAudio(
-                noop,
-                noop, 
-                {
-                    0: encodeURIComponent(JSON.stringify('1337')),
-                    1: encodeURIComponent(JSON.stringify('11'))
-                }
-            );
-            expect(mockedaudio.currentTime).not.toEqual(0);
-            expect(mockedPluginResult.ok).toHaveBeenCalled();
-        });
-
-        it('will call result.error when there is an error', function () {
-            mediaindex.create(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-
-            mockedPluginResult.ok.andCallFake(function () {throw 'testerror';});
-
-            mediaindex.seekToAudio(
-                noop,
-                noop,
-                {
-                    0: encodeURIComponent(JSON.stringify('1337')),
-                    1: encodeURIComponent(JSON.stringify('11'))
-                }
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Error seeking audio: testerror');
-        });
-    });
-
-    describe('pausePlayingAudio property', function () {
-        it('will error message if args[0] does not exist', function () {
-            mediaindex.pausePlayingAudio (
-                noop,
-                noop,
-                {}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-
-        it('will error message when audio does not exist', function () {
-            mediaindex.pausePlayingAudio(
-                noop,
-                noop,
-                {0:1}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Audio Object has not been initialized');
-        });
-
-        it('will call audio.pause() when args[0] and audio exists', function () {
-            mediaindex.create(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-
-            mediaindex.pausePlayingAudio(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-            expect(mockedaudio.pause).toHaveBeenCalled();   
-        });
-    });
-
-    describe('getCurrentPositionAudio property', function () {
-        it('will error message if args[0] does not exist', function () {
-            mediaindex.getCurrentPositionAudio(
-                noop,
-                noop,
-                {}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-
-        it('will error message if audio does not exist', function () {
-            mediaindex.getCurrentPositionAudio(
-                noop,
-                noop,
-                {0:1}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Audio Object has not been initialized');
-        });
-
-        it('will call result.ok(audio.currentTime) when audio and args[0] exists', function () {
-            mediaindex.create(
-                noop,
-                noop, 
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-
-            mediaindex.getCurrentPositionAudio(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-           );
-           expect(mockedPluginResult.ok).toHaveBeenCalledWith(mockedaudio.currentTime);
-        });
-    });
-
-    describe('getDuration property', function () {
-        it('will error message if args[0] does not exist', function () {
-            mediaindex.getDuration(
-                noop,
-                noop,
-                {}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-
-        it('will error message if audio does not exist', function () {
-            mediaindex.getDuration (
-                noop,
-                noop,
-                {0:1} 
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalledWith('Audio Object has not been initialized');
-        });
-
-        it('will call result.ok(audio.duration) when audio and args[0] exist', function () {
-            mediaindex.create(
-                noop,
-                noop, 
-                {0: encodeURIComponent(JSON.stringify('1337'))} 
-            );
-
-            mediaindex.getDuration(
-                noop,
-                noop, 
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-            expect(mockedPluginResult.ok).toHaveBeenCalledWith(mockedaudio.duration); 
-        });
-    });
-
-    describe('startRecordingAudio and stopRecordingAudio property', function () {        
-        it('will say not supported for start recording', function () {
-            mediaindex.startRecordingAudio();
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-
-        it('will say not supported for stop recording', function () {
-            mediaindex.stopRecordingAudio();
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-    });
-
-    describe('release property', function () {
-        it('will error message if args[0] does not exist', function () {
-            mediaindex.release(
-                noop,
-                noop,
-                {}
-            );
-            expect(mockedPluginResult.error).toHaveBeenCalled();
-        });
-
-        it('will set audio to be undefined', function () {
-            mediaindex.create(
-                noop,
-                noop,   
-                {0: encodeURIComponent(JSON.stringify('1337'))}
-            );
-
-            mediaindex.release(
-                noop,
-                noop,
-                {0: encodeURIComponent(JSON.stringify('1337'))} 
-            );
-            expect(mockedaudio.src).not.toBeDefined();
-            expect(mockedPluginResult.ok).toHaveBeenCalled();          
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/NetworkStatus/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/NetworkStatus/index.js b/blackberry10/bin/test/plugins/NetworkStatus/index.js
deleted file mode 100644
index ac87390..0000000
--- a/blackberry10/bin/test/plugins/NetworkStatus/index.js
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-
-describe("NetworkStatus", function () {
-    var _apiDir = __dirname + "./../../../../plugins/NetworkStatus/src/blackberry10/",
-        index,
-        result = {
-            ok: jasmine.createSpy(),
-            error: jasmine.createSpy()
-        };
-
-    beforeEach(function () {
-        index = require(_apiDir + "index");
-    });
-
-    afterEach(function () {
-        index = null;
-    });
-
-    describe("getConnectionInfo", function () {
-        beforeEach(function () {
-            GLOBAL.window = {
-                qnx: {
-                    webplatform: {
-                        device: {
-                        }
-                    }
-                }
-            };
-            GLOBAL.PluginResult = function () {
-                return result;
-            };
-        });
-
-        afterEach(function () {
-            delete GLOBAL.window;
-            delete GLOBAL.PluginResult;
-        });
-
-        function testConnection(expectedResult, mockedType, mockedTechnology) {
-            var mockedDevice = {
-                activeConnection: {
-                    type: mockedType,
-                    technology: mockedTechnology
-                }
-            };
-
-            if (mockedType) {
-                window.qnx.webplatform.device = mockedDevice;
-            }
-
-            index.getConnectionInfo();
-
-            expect(result.ok).toHaveBeenCalledWith(expectedResult);
-            expect(result.error).not.toHaveBeenCalled();
-        }
-
-        it("calls success with a wired connection", function () {
-            testConnection("ethernet", "wired");
-        });
-
-        it("calls success with a wifi connection", function () {
-            testConnection("wifi", "wifi");
-        });
-
-        it("calls success with no connection", function () {
-            testConnection("none", "none");
-        });
-
-        it("calls success with a cellular edge connection", function () {
-            testConnection("2g", "cellular", "edge");
-        });
-
-        it("calls success with a cellular gsm connection", function () {
-            testConnection("2g", "cellular", "gsm");
-        });
-
-        it("calls success with a cellular evdo connection", function () {
-            testConnection("3g", "cellular", "evdo");
-        });
-
-        it("calls success with a cellular umts connection", function () {
-            testConnection("3g", "cellular", "umts");
-        });
-
-        it("calls success with a lte connection", function () {
-            testConnection("4g", "cellular", "lte");
-        });
-
-        it("calls success with a cellular connection", function () {
-            testConnection("cellular", "cellular");
-        });
-
-        it("defaults to none if no connection is found", function () {
-            testConnection("none");
-        });
-
-        it("defaults to unknown if connection type doesn't exist", function () {
-            testConnection("unknown", "fakeConnectionType");
-        });
-
-    });
-
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/Notification/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/Notification/index.js b/blackberry10/bin/test/plugins/Notification/index.js
deleted file mode 100644
index 8d10e25..0000000
--- a/blackberry10/bin/test/plugins/Notification/index.js
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-function mockAndTestDialog(htmlmessage, title, dialogType, buttonLabel) {
-    GLOBAL.qnx = {
-        webplatform: {
-            getWebViews: function () {
-                var webviews = [{}, {},
-                    {//overlayWebview
-                        dialog: {
-                            show: function(messageObj, callback) {
-                                expect(messageObj.title).toEqual(title);
-                                expect(messageObj.htmlmessage).toEqual(htmlmessage);
-                                expect(messageObj.dialogType).toEqual(dialogType);
-                                expect(messageObj.optionalButtons).toEqual(buttonLabel);
-                                expect(typeof callback).toEqual("function");
-                            }
-                        }
-                    }];
-                return webviews;
-            }
-        }
-    };
-
-}
-
-describe("Notification", function () {
-    var _apiDir = __dirname + "./../../../../plugins/Notification/src/blackberry10/",
-    index,
-    success = function() {},
-    fail = function() {},
-    result = {
-        error: jasmine.createSpy(),
-        noResult: jasmine.createSpy()
-    },
-    args = {
-        0: "%22Dialog%20message.%22",
-        1: "%22Dialog%20Title%22",
-        2: "%22Continue%22"
-    };
-
-    beforeEach(function () {
-        index = require(_apiDir + "index");
-
-        GLOBAL.PluginResult = function () {
-            return result;
-        };
-    });
-
-    afterEach(function () {
-        delete require.cache[require.resolve(_apiDir + "index")];
-        delete GLOBAL.qnx;
-        delete GLOBAL.PluginResult;
-    });
-
-    describe("alert", function () {
-        it("fails with invalid number of args", function () {
-            index.alert(success, fail, {}, {});
-            expect(result.error).toHaveBeenCalledWith("Notification action - alert arguments not found.");
-        });
-
-        it("calls dialog.show with correct params", function () {
-            mockAndTestDialog("Dialog message.", "Dialog Title", "CustomAsk", ["Continue"]);
-            index.alert(success, fail, args, {});
-            expect(result.noResult).toHaveBeenCalled();
-        });
-    });
-
-    describe("confirm", function () {
-        it("fails with invalid number of args", function () {
-            index.confirm(success, fail, {}, {});
-            expect(result.error).toHaveBeenCalledWith("Notification action - confirm arguments not found.");
-        });
-
-        it("calls dialog.show with correct params", function () {
-            mockAndTestDialog("Dialog message.", "Dialog Title", "CustomAsk", ["Continue"]);
-            index.confirm(success, fail, args, {});
-            expect(result.noResult).toHaveBeenCalled();
-        });
-
-        it("calls dialog.show with correct params [deprecated buttonArg]", function () {
-            var args = {
-                0: "%22Dialog%20message.%22",
-                1: "%22Dialog%20Title%22",
-                2: "%22Continue,Cancel%22"
-            };
-
-            mockAndTestDialog("Dialog message.", "Dialog Title", "CustomAsk", ["Continue", "Cancel"]);
-            index.confirm(success, fail, args, {});
-            expect(result.noResult).toHaveBeenCalled();
-        });
-    });
-
-    describe("prompt", function () {
-        it("fails with invalid number of args", function () {
-            index.prompt(success, fail, {}, {});
-            expect(result.error).toHaveBeenCalledWith("Notification action - prompt arguments not found.");
-        });
-
-        it("calls dialog.show with correct params", function () {
-            mockAndTestDialog("Dialog message.", "Dialog Title", "JavaScriptPrompt", ["Continue"]);
-            index.prompt(success, fail, args, {});
-            expect(result.noResult).toHaveBeenCalled();
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/bin/test/plugins/SplashScreen/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/plugins/SplashScreen/index.js b/blackberry10/bin/test/plugins/SplashScreen/index.js
deleted file mode 100644
index 658ce3d..0000000
--- a/blackberry10/bin/test/plugins/SplashScreen/index.js
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
-* Copyright 2013 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-describe("SplashScreen", function () {
-    var _apiDir = __dirname + "./../../../../plugins/SplashScreen/src/blackberry10/",
-        index,
-        mockedEnv = {
-            response: {
-                send: jasmine.createSpy()
-            }
-        },
-        mockedApplication = {
-            windowVisible: undefined
-        };
-
-    beforeEach(function () {
-        index = require(_apiDir + "index");
-        mockedEnv.response.send.reset();
-    });
-
-    afterEach(function () {
-        index = null;
-        delete require.cache[require.resolve(_apiDir + "index")];
-    });
-    describe("show", function () {
-        beforeEach(function () {
-            GLOBAL.PluginResult = function (args, env) {};
-            GLOBAL.PluginResult.prototype.error = jasmine.createSpy();
-        });
-
-        afterEach(function () {
-            delete GLOBAL.PluginResult;
-        });
-
-        it("calls PluginResult.error if show is called", function () {
-            index.show();
-
-            expect(PluginResult.prototype.error).toHaveBeenCalledWith("Not supported on platform", false);
-        });
-    });
-
-    describe("hide", function () {
-        beforeEach(function () {
-            GLOBAL.window = {
-                qnx: {
-                    webplatform: {
-                        getApplication: function () {
-                            return mockedApplication;
-                        }
-                    }
-                }
-            };
-
-            GLOBAL.PluginResult = function (args, env) {};
-            GLOBAL.PluginResult.prototype.ok = jasmine.createSpy();
-        });
-
-        afterEach(function () {
-            delete GLOBAL.window;
-            delete GLOBAL.PluginResult;
-        });
-
-        it("calls PluginResult.ok if hide is called", function () {
-            index.hide();
-
-            expect(mockedApplication.windowVisible).toBeTruthy();
-            expect(PluginResult.prototype.ok).toHaveBeenCalledWith(undefined, false);
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3a53fb75/blackberry10/scripts/test.js
----------------------------------------------------------------------
diff --git a/blackberry10/scripts/test.js b/blackberry10/scripts/test.js
index c1b70c2..537652c 100644
--- a/blackberry10/scripts/test.js
+++ b/blackberry10/scripts/test.js
@@ -22,8 +22,7 @@ module.exports = function (done, custom) {
             [
                 "framework/test",
                 "bin/test/cordova/integration",
-                "bin/test/cordova/unit",
-                "bin/test/plugins"
+                "bin/test/cordova/unit"
             ];
     utils.copyFile('bin/lib/utils.js', 'bin/templates/project/cordova/lib/', '../');
     jasmine.executeSpecsInFolder({
@@ -31,7 +30,7 @@ module.exports = function (done, custom) {
         'onComplete': function (runner) {
             var failedCount = runner.results().failedCount;
             ((done && typeof done === "function") ?  done : process.exit)(failedCount);
-        }, 
+        },
         'isVerbose': false,
         'showColors': true
     });


[35/50] [abbrv] webworks commit: [CB-4732] Removing buildId validation as it is no longer necessary

Posted by je...@apache.org.
[CB-4732] Removing buildId validation as it is no longer necessary

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/1f955e96
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/1f955e96
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/1f955e96

Branch: refs/heads/3.1.x
Commit: 1f955e96eae243782086ac5f5b1154b5f4cbc3e1
Parents: 42ed4bf
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Mon Sep 9 16:20:12 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Sep 13 08:56:09 2013 -0400

----------------------------------------------------------------------
 .../templates/project/cordova/lib/bar-builder.js    |  5 +++--
 .../bin/templates/project/cordova/lib/localize.js   |  3 ---
 .../project/cordova/lib/native-packager.js          |  2 +-
 .../templates/project/cordova/lib/packager-utils.js | 10 ++++++----
 .../project/cordova/lib/packager-validator.js       |  5 -----
 .../bin/templates/project/cordova/lib/packager.js   | 14 ++++++++++----
 .../bin/templates/project/cordova/lib/session.js    |  4 ++--
 .../cordova/unit/spec/lib/packager-validator.js     | 16 ----------------
 8 files changed, 22 insertions(+), 37 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/bar-builder.js b/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
index 992804c..cfd029a 100644
--- a/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
+++ b/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
@@ -53,11 +53,12 @@ function buildTarget(previous, baton) {
             baton.pass(code);
         } else {
             if (target === "device" && session.isSigningRequired(config)) {
-                signingHelper.execSigner(session, target, function (error, stdout, stderr) {
+                signingHelper.execSigner(session, target, function (error) {
                     if (error && error.code) {
                         baton.pass(error.code);
                     } else {
-                        baton.pass();
+                        //Pass 0 to signify success
+                        baton.pass(0);
                     }
                 });
             } else {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/templates/project/cordova/lib/localize.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/localize.js b/blackberry10/bin/templates/project/cordova/lib/localize.js
index df260f8..94d4673 100755
--- a/blackberry10/bin/templates/project/cordova/lib/localize.js
+++ b/blackberry10/bin/templates/project/cordova/lib/localize.js
@@ -34,9 +34,6 @@ var Localize = require("localize"),
         "WARNING_SIGNING_PASSWORD_EXPECTED": {
             "en": "Build ID set in config.xml [version], but no signing password was provided [-g]. Bar will be unsigned"
         },
-        "EXCEPTION_MISSING_SIGNING_BUILDID": {
-            "en": "Cannot sign application - No buildId provided [--buildId]"
-        },
         "EXCEPTION_DEBUG_TOKEN_NOT_FOUND": {
             "en": "Failed to find debug token. If you have an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command."
         },

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/templates/project/cordova/lib/native-packager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/native-packager.js b/blackberry10/bin/templates/project/cordova/lib/native-packager.js
index 98346b4..a29b86a 100644
--- a/blackberry10/bin/templates/project/cordova/lib/native-packager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/native-packager.js
@@ -206,7 +206,7 @@ function generateOptionsFile(session, target, config) {
         }
     }
 
-    if (target === "device" && isSigning) {
+    if (target === "device" && isSigning && config.buildId) {
         optionsStr += "-buildId" + NL;
         optionsStr += config.buildId + NL;
     } else if (session.debug) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/packager-utils.js b/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
index 8bc3acf..9101df6 100644
--- a/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/packager-utils.js
@@ -162,10 +162,12 @@ _self = {
         var msg = data.toString().replace(/[\n\r]/g, '');
 
         if (msg) {
-            if (msg.toLowerCase().indexOf("error:") >= 0) {
-                logger.error(msg);
-            } else if (msg.toLowerCase().indexOf("warn") >= 0) {
-                logger.warn(msg);
+            if (msg.toLowerCase().indexOf("error: ") >= 0) {
+                logger.error(msg.substring(7));
+            } else if (msg.toLowerCase().indexOf("warn: ") >= 0) {
+                logger.warn(msg.substring(6));
+            } else if (msg.toLowerCase().indexOf("info: ") >= 0) {
+                logger.info(msg.substring(6));
             } else {
                 logger.info(msg);
             }

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/templates/project/cordova/lib/packager-validator.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/packager-validator.js b/blackberry10/bin/templates/project/cordova/lib/packager-validator.js
index d85c0db..9fc7627 100644
--- a/blackberry10/bin/templates/project/cordova/lib/packager-validator.js
+++ b/blackberry10/bin/templates/project/cordova/lib/packager-validator.js
@@ -73,11 +73,6 @@ _self = {
             }
         }
 
-        //if -g was provided with NO build id, throw error
-        if (keysPassword && !buildId) {
-            throw localize.translate("EXCEPTION_MISSING_SIGNING_BUILDID");
-        }
-
         if (commandLinebuildId && !keysPassword) {
             //if --buildId was provided with NO password, throw error
             throw localize.translate("EXCEPTION_MISSING_SIGNING_PASSWORD");

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/templates/project/cordova/lib/packager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/packager.js b/blackberry10/bin/templates/project/cordova/lib/packager.js
index 01541ac..1591a0c 100644
--- a/blackberry10/bin/templates/project/cordova/lib/packager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/packager.js
@@ -56,18 +56,24 @@ module.exports = {
 
                     if (code === 0) {
                         logger.log(localize.translate("PROGRESS_COMPLETE"));
+                    }
 
-                        //call packager callback
-                        callback();
+                    if (callback && typeof callback === "function") {
+                        callback(code);
                     }
                 });
             });
         } catch (e) {
             try {
                 fileManager.cleanSource(session);
-            } catch (ex) {}
+            } catch (ex) {
+            } finally {
+                logger.error(e);
+                if (callback && typeof callback === "function") {
+                    callback(e);
+                }
+            }
 
-            logger.error(e);
         }
     }
 };

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/templates/project/cordova/lib/session.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/session.js b/blackberry10/bin/templates/project/cordova/lib/session.js
index 048d9c3..d96c57d 100644
--- a/blackberry10/bin/templates/project/cordova/lib/session.js
+++ b/blackberry10/bin/templates/project/cordova/lib/session.js
@@ -56,7 +56,7 @@ module.exports = {
             outputDir = cmdline.output,
             properties = require("../../project.json"),
             archivePath = path.resolve(cmdline.args[0] ? cmdline.args[0] : "../../www"),
-            archiveName = utils.genBarName(), 
+            archiveName = utils.genBarName(),
             appdesc,
             buildId = cmdline.buildId;
 
@@ -113,7 +113,7 @@ module.exports = {
                 return getParams(cmdline, toolName);
             },
             isSigningRequired: function (config) {
-                return signingHelper.getKeyStorePath() && signingPassword && config.buildId;
+                return signingHelper.getKeyStorePath() && signingPassword;
             },
             "targets": ["simulator", "device"]
         };

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1f955e96/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js b/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
index f0d7e40..4491b40 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/packager-validator.js
@@ -166,22 +166,6 @@ describe("Packager Validator", function () {
         }).toThrow(localize.translate("EXCEPTION_APPDESC_NOT_FOUND", "c:/bardescriptor.xml"));
     });
 
-    it("throws an exception when a password [-g] was set with no buildId", function () {
-        var session = testUtilities.cloneObj(testData.session),
-            configObj = testUtilities.cloneObj(testData.config);
-
-        //setup signing parameters
-        session.keystore = "c:/author.p12";
-        session.keystoreCsk = "c:/barsigner.csk";
-        session.keystoreDb = "c:/barsigner.db";
-        session.storepass = "myPassword";
-        configObj.buildId = undefined;
-
-        expect(function () {
-            packagerValidator.validateSession(session, configObj);
-        }).toThrow(localize.translate("EXCEPTION_MISSING_SIGNING_BUILDID"));
-    });
-
     it("throws an exception when --buildId was set with no password [-g]", function () {
         var session = testUtilities.cloneObj(testData.session),
             configObj = testUtilities.cloneObj(testData.config);


[22/50] [abbrv] webworks commit: [CB-4563] Migrated blackberry.app parameters to preferences

Posted by je...@apache.org.
[CB-4563] Migrated blackberry.app parameters to preferences

Reviewed by Bryan Higgins <bh...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/f60a0cd8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/f60a0cd8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/f60a0cd8

Branch: refs/heads/3.1.x
Commit: f60a0cd8d814a2f1143d1262b1a97952c0bdc9a8
Parents: 75b8585
Author: Kristoffer Flores <kf...@blackberry.com>
Authored: Wed Aug 7 13:25:32 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Aug 26 10:31:22 2013 -0400

----------------------------------------------------------------------
 .../project/cordova/lib/config-parser.js        | 136 +++++++++----------
 blackberry10/bin/test/cordova/unit/config.xml   |  10 +-
 .../test/cordova/unit/spec/lib/config-parser.js |  83 ++++-------
 3 files changed, 94 insertions(+), 135 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/f60a0cd8/blackberry10/bin/templates/project/cordova/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/config-parser.js b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
index 65b78a1..7746fd0 100644
--- a/blackberry10/bin/templates/project/cordova/lib/config-parser.js
+++ b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
@@ -26,8 +26,7 @@ var fs = require("fs"),
     utils = require("./packager-utils"),
     i18nMgr = require("./i18n-manager"),
     _self,
-    _predefinedFeatures,
-    _hybridFeatures;
+    _predefinedFeatures;
 
 //This function will convert a wc3 paramObj with a list of
 //<param name="" value=""> elements into a single object
@@ -82,10 +81,6 @@ function processFeatures(featuresArray, widgetConfig, processPredefinedFeatures)
                         _predefinedFeatures[attribs.id](feature, widgetConfig);
                     }
                 } else {
-                    //Handle features that contain both a namespace and custom params
-                    if (_hybridFeatures[attribs.id]) {
-                        _hybridFeatures[attribs.id](feature, widgetConfig);
-                    }
                     features.push(attribs);
                 }
             } else {
@@ -544,9 +539,66 @@ function processNameAndDescription(data, widgetConfig) {
 
 function processCordovaPreferences(data, widgetConfig) {
     if (data.preference) {
-        var preference = processParamObj(data.preference);
-        widgetConfig.packageCordovaJs = preference.packageCordovaJs === "enable";
-        widgetConfig.autoHideSplashScreen = preference.AutoHideSplashScreen !== "false";
+        var preference = JSON.parse(JSON.stringify(processParamObj(data.preference)).toLowerCase());
+        widgetConfig.packageCordovaJs = preference.packagecordovajs === "enable";
+        widgetConfig.autoHideSplashScreen = preference.autohidesplashscreen !== "false";
+
+        // <preference name="backgroundColor" value="hex" />
+        if (preference.backgroundcolor) {
+            widgetConfig.backgroundColor = processBgColor(preference.backgroundcolor);
+        }
+
+        // <preference name="childBrowser" value="enable or disable" />
+        if (preference.childbrowser) {
+            widgetConfig.enableChildWebView = ((preference.childbrowser + '').toLowerCase() === 'disable') === false;
+        }
+
+        // <preference name="HideKeyboardFormAccessoryBar" value="enable or disable" />
+        if (preference.hidekeyboardformaccessorybar) {
+            widgetConfig.enableFormControl = ((preference.hidekeyboardformaccessorybar + '').toLowerCase() === 'enable') === false;
+        }
+
+        // <preference name="popupBlocker" value="enable or disable" />
+        if (preference.popupblocker) {
+            widgetConfig.enablePopupBlocker = ((preference.popupblocker + '').toLowerCase() === 'enable') === true;
+        }
+
+        // <preference name="orientation" value="portrait, landscape, north or auto" />
+        if (preference.orientation) {
+            if (preference.orientation ===  "landscape" || preference.orientation === "portrait" || preference.orientation === "north") {
+                widgetConfig.autoOrientation = false;
+                widgetConfig.orientation = preference.orientation;
+            } else if (preference.orientation !== "auto") {
+                throw localize.translate("EXCEPTION_INVALID_ORIENTATION_MODE", preference.orientation);
+            }
+        }
+
+        // <preference name="theme" value="bright, dark, inherit or default" />
+        if (preference.theme && (typeof preference.theme === "string")) {
+            preference.theme = preference.theme.toLowerCase();
+            if (preference.theme ===  "bright" || preference.theme === "dark" || preference.theme === "inherit" || preference.theme ===  "default") {
+                widgetConfig.theme = preference.theme;
+            }
+        }
+
+        // <preference name="webSecurity" value="enable or disable" />
+        if (preference.websecurity && (typeof preference.websecurity === "string") && (preference.websecurity.toLowerCase() === "disable")) {
+            widgetConfig.enableWebSecurity = false;
+            logger.warn(localize.translate("WARNING_WEBSECURITY_DISABLED"));
+        }
+
+    }
+}
+
+function processBgColor(bgColor) {
+    //convert bgColor to a number
+    bgColorNum = parseInt(bgColor, 16);
+
+    if (isNaN(bgColorNum)) {
+        //bgColor is not a number, throw error
+        throw localize.translate("EXCEPTION_BGCOLOR_INVALID", bgColor);
+    } else {
+        return bgColorNum;
     }
 }
 
@@ -604,70 +656,8 @@ function init() {
                 logger.warn(localize.translate("WARNING_ORIENTATION_DEPRECATED"));
             }
         }
-    };
-
-    //Hybrid features are features that have both an API namespace and custom parameters
-    _hybridFeatures = {
-        "blackberry.app": function (feature, widgetConfig) {
-            if (feature) {
-                var params = processParamObj(feature.param),
-                    bgColor = params.backgroundColor,
-                    childBrowser = params.childBrowser,
-                    formControl = params.formControl,
-                    orientation = params.orientation,
-                    theme = params.theme,
-                    popupBlocker = params.popupBlocker,
-                    websecurity = params.websecurity;
-
-                if (bgColor) {
-                    //Convert bgColor to a number
-                    bgColor = parseInt(bgColor, 16);
-
-                    if (isNaN(bgColor)) {
-                        //bgcolor is not a number, throw error
-                        throw localize.translate("EXCEPTION_BGCOLOR_INVALID", params.backgroundColor);
-                    } else {
-                        widgetConfig.backgroundColor = bgColor;
-                    }
-                }
-
-                if (childBrowser) {
-                    widgetConfig.enableChildWebView = ((childBrowser + '').toLowerCase() === 'disable') === false;
-                }
-
-                if (formControl) {
-                    widgetConfig.enableFormControl = ((formControl + '').toLowerCase() === 'disable') === false;
-                }
-
-                if (popupBlocker) {
-                    widgetConfig.enablePopupBlocker = ((popupBlocker + '').toLowerCase() === 'enable') === true;
-                }
-
-                if (orientation) {
-                    if (orientation ===  "landscape" || orientation === "portrait" || orientation === "north") {
-                        widgetConfig.autoOrientation = false;
-                        widgetConfig.orientation = orientation;
-                    } else if (orientation !== "auto") {
-                        throw localize.translate("EXCEPTION_INVALID_ORIENTATION_MODE", orientation);
-                    }
-                }
-
-                if (theme && (typeof theme === "string")) {
-                    theme = theme.toLowerCase();
-
-                    if (theme ===  "bright" || theme === "dark" || theme === "inherit" || theme ===  "default") {
-                        widgetConfig.theme = theme;
-                    }
-                }
-
-                if (websecurity && (typeof websecurity === "string") && (websecurity.toLowerCase() === "disable")) {
-                    widgetConfig.enableWebSecurity = false;
-                    logger.warn(localize.translate("WARNING_WEBSECURITY_DISABLED"));
-                }
-            }
-        }
-    };
-}
+    }
+};
 
 _self = {
     parse: function (xmlPath, session, callback) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/f60a0cd8/blackberry10/bin/test/cordova/unit/config.xml
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/config.xml b/blackberry10/bin/test/cordova/unit/config.xml
index 9f42675..f0e76c5 100644
--- a/blackberry10/bin/test/cordova/unit/config.xml
+++ b/blackberry10/bin/test/cordova/unit/config.xml
@@ -22,11 +22,7 @@
         <param name="mode" value="portrait" />
         <param name="other" value="portrait" />
       </feature>
-    <feature id="blackberry.app" required="true" version="1.0.0.0">
-        <param name="childBrowser" value="disable" />
-        <param name="websecurity" value="disable" />
-        <param name="popupBlocker" value="enable" />
-    </feature>
+    <feature id="blackberry.app" required="true" version="1.0.0.0" />
     <feature id="blackberry.system" required="true" version="1.0.0.3"/>
     <access origin="http://www.somedomain1.com" subdomains="true">
         <feature id="blackberry.app" required="true" version="1.0.0.0"/>
@@ -50,4 +46,8 @@
             <property var="exts" value="doc" />
         </filter>
     </rim:invoke-target>
+
+    <preference name="backgroundColor" value="0xffffff" />
+    <preference name="childBrowser" value="disable" />
+    <preference name="HideKeyboardFormAccessoryBar" value="disable" />
 </widget>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/f60a0cd8/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
index b526b01..d857072 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
@@ -50,7 +50,6 @@ describe("config parser", function () {
             expect(configObj.permissions).toContain('read_geolocation');
             expect(configObj.permissions).toContain('use_camera');
             expect(configObj.enableChildWebView).toBe(false);
-            expect(configObj.enableChildWebView).toBe(false);
         });
     });
 
@@ -1106,8 +1105,7 @@ describe("config parser", function () {
 
         it("sets orientation to landscape when specified", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
-            data['feature'] = { '@': { id: 'blackberry.app', required: true },
-                param: { '@': { name: 'orientation', value: 'landscape' } } };
+            data['preference'] = { '@': { name: 'orientation', value: 'landscape' } };
 
             mockParsing(data);
 
@@ -1119,8 +1117,7 @@ describe("config parser", function () {
 
         it("sets orientation to portrait when specified", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
-            data['feature'] = { '@': { id: 'blackberry.app', required: true },
-                param: { '@': { name: 'orientation', value: 'portrait' } } };
+            data['preference'] = { '@': { name: 'orientation', value: 'portrait' } };
 
             mockParsing(data);
 
@@ -1132,7 +1129,7 @@ describe("config parser", function () {
 
         it("sets auto orientation to true by default", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
-            delete data["feature"];//Remove any orientation data
+            delete data['preference'];//Remove any orientation data
 
             mockParsing(data);
 
@@ -1154,21 +1151,18 @@ describe("config parser", function () {
 
         it("throws an error when blackberry.app orientation exists with an invalid mode param", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
-            data['feature'] = { '@': { id: 'blackberry.app', required: true },
-                param: { '@': { name: 'orientation', value: 'notAValidMode' } } };
+            data['preference'] = { '@': { name: 'orientation', value: 'notAValidMode' } };
 
             mockParsing(data);
 
-            //Should throw an EXCEPTION_INVALID_ORIENTATION_MODE error
             expect(function () {
                 configParser.parse(configPath, session, function (configObj) {});
-            }).toThrow(localize.translate("EXCEPTION_INVALID_ORIENTATION_MODE", "notAValidMode"));
+            }).toThrow(localize.translate("EXCEPTION_INVALID_ORIENTATION_MODE", "notavalidmode"));
         });
 
-        it("sets backgroundColor when specified via blackberry.app namespace", function () {
+        it("sets backgroundColor when specified as a preference", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
-            data['feature'] = { '@': { id: 'blackberry.app', required: true },
-                param: { '@': { name: 'backgroundColor', value: '0xffffff' } } };
+            data['preference'] = { '@': {name: 'backgroundColor', value: '0xffffff' } };
 
             mockParsing(data);
 
@@ -1177,21 +1171,21 @@ describe("config parser", function () {
             });
         });
 
-        it("throws an error when blackberry.app backgroundColor param is not a number", function () {
+        it("throws an error backgroundColor preference is not a number", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
-            data['feature'] = { '@': { id: 'blackberry.app', required: true },
-                param: { '@': { name: 'backgroundColor', value: '$UI*@@$' } } };
+            data['preference'] = { '@': { name: 'backgroundColor', value: '$UI*@@$' } };
 
             mockParsing(data);
 
             //Should throw an EXCEPTION_BGCOLOR_INVALID error
             expect(function () {
                 configParser.parse(configPath, session, {});
-            }).toThrow(localize.translate("EXCEPTION_BGCOLOR_INVALID", "$UI*@@$"));
+            }).toThrow(localize.translate("EXCEPTION_BGCOLOR_INVALID", "$ui*@@$"));
         });
 
         it("can properly parse the custom RIM-Wiget:rim/wiget element", function () {
             var data = testUtilities.cloneObj(testData.xml2jsConfig);
+
             mockParsing(data);
 
             configParser.parse(configPath, session, function (configObj) {
@@ -1235,15 +1229,9 @@ describe("config parser", function () {
         });
 
         describe('disabling childBrowser (childWebView)', function () {
-
-            // { '@': { id: 'blackberry.app', required: true, version: '1.0.0.0' },
-            //   param: { '@': { name: 'childBrowser', value: 'disable' } } }
-
-
             it("sets enableChildWebView to true when childBrowser value is enable", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data['feature'] = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'childBrowser', value: 'enable' } } };
+                data['preference'] = { '@': { name: 'childBrowser', value: 'enable' } };
 
                 mockParsing(data);
 
@@ -1254,8 +1242,7 @@ describe("config parser", function () {
 
             it("sets enableChildWebView to false when value is disable", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data['feature'] = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'childBrowser', value: 'disable' } } };
+                data['preference'] = { '@': { name: 'childBrowser', value: 'disable' } };
 
                 mockParsing(data);
 
@@ -1266,11 +1253,9 @@ describe("config parser", function () {
         });
 
         describe('disabling formcontrol', function () {
-
-            it("sets enableFormControl to true when formControl value is enable", function () {
+            it("sets enableFormControl to true when HideKeyboardFormAccessoryBar value is disable", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data['feature'] = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'formControl', value: 'enable' } } };
+                data['preference'] = { '@': { name: 'HideKeyboardFormAccessoryBar', value: 'disable'  } };
 
                 mockParsing(data);
 
@@ -1279,10 +1264,9 @@ describe("config parser", function () {
                 });
             });
 
-            it("sets enableFormControl to false when value is disable", function () {
+            it("sets enableFormControl to false when value is enable", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data['feature'] = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'formControl', value: 'disable' } } };
+                data['preference'] = { '@': { name: 'HideKeyboardFormAccessoryBar', value: 'enable' } };
 
                 mockParsing(data);
 
@@ -1297,8 +1281,7 @@ describe("config parser", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
 
                 if (themeInConfig) {
-                    data['feature'] = { '@': { id: 'blackberry.app' },
-                        param: { '@': { name: 'theme', value: themeInConfig } } };
+                    data['preference'] = { '@': { name: 'theme', value: themeInConfig } };
 
                     mockParsing(data);
                 }
@@ -1356,15 +1339,9 @@ describe("config parser", function () {
         });
 
         describe('disabling WebSecurity', function () {
-
-            // { '@': { id: 'blackberry.app', required: true, version: '1.0.0.0' },
-            //   param: { '@': { name: 'childBrowser', value: 'disable' } } }
-
-
             it("doesn't set enableWebSecurity to anything when param value is anything but disable", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data.feature = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'websecurity', value: (new Date()).toString() } } };
+                data['preference'] = { '@': { name: 'webSecurity', value: (new Date()).toString() } };
 
                 mockParsing(data);
 
@@ -1376,8 +1353,7 @@ describe("config parser", function () {
 
             it("sets enableWebSecurity to false when value is disable", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data.feature = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'websecurity', value: 'disable' } } };
+                data['preference'] = { '@': { name: 'webSecurity', value: 'disable' } };
 
                 mockParsing(data);
 
@@ -1389,8 +1365,7 @@ describe("config parser", function () {
 
             it("sets enableWebSecurity to false when value is disable case insensitive", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data.feature = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'websecurity', value: 'DisAble' } } };
+                data['preference'] = { '@': { name: 'webSecurity', value: 'DisAble' } };
 
                 mockParsing(data);
 
@@ -1402,14 +1377,9 @@ describe("config parser", function () {
         });
 
         describe('enabling popupBlocker', function () {
-
-            // { '@': { id: 'blackberry.app', required: true, version: '1.0.0.0' },
-            //   param: { '@': { name: 'childBrowser', value: 'disable' } } }
-
-            it("sets enableWebSecurity to false when value is disable", function () {
+            it("sets enablePopupBlocker to true when value is enable", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data.feature = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'popupBlocker', value: 'enable' } } };
+                data['preference'] = { '@': { name: 'popupBlocker', value: 'enable' } };
 
                 mockParsing(data);
 
@@ -1418,15 +1388,14 @@ describe("config parser", function () {
                 });
             });
 
-            it("sets enableWebSecurity to false when value is disable case insensitive", function () {
+            it("sets enablePopBlocker to false when value is disable case insensitive", function () {
                 var data = testUtilities.cloneObj(testData.xml2jsConfig);
-                data.feature = { '@': { id: 'blackberry.app' },
-                    param: { '@': { name: 'popupBlocker', value: 'EnAbLe' } } };
+                data['preference'] = { '@': { name: 'popupBlocker', value: 'Disable' } };
 
                 mockParsing(data);
 
                 configParser.parse(configPath, session, function (configObj) {
-                    expect(configObj.enablePopupBlocker).toBe(true);
+                    expect(configObj.enablePopupBlocker).toBe(false);
                 });
             });
         });


[04/50] [abbrv] webworks commit: [CB-4481] Removing permissions from template since not all apps should need them

Posted by je...@apache.org.
[CB-4481] Removing permissions from template since not all apps should need them

Reviewed by Bryan Higgins <bh...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/b05381c6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/b05381c6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/b05381c6

Branch: refs/heads/3.1.x
Commit: b05381c6bb1735d834f361630afa52ff11f6c5a0
Parents: 539749e
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Mon Jul 29 20:49:49 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Aug 1 08:50:17 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/www/config.xml | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b05381c6/blackberry10/bin/templates/project/www/config.xml
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/config.xml b/blackberry10/bin/templates/project/www/config.xml
index a645139..e920596 100644
--- a/blackberry10/bin/templates/project/www/config.xml
+++ b/blackberry10/bin/templates/project/www/config.xml
@@ -50,12 +50,7 @@
   <content src="index.html" />
 
   <rim:permissions>
-    <rim:permit>use_camera</rim:permit>
-    <rim:permit>read_device_identifying_information</rim:permit>
     <rim:permit>access_shared</rim:permit>
-    <rim:permit>read_geolocation</rim:permit>
-    <rim:permit>record_audio</rim:permit>
-    <rim:permit>access_pimdomain_contacts</rim:permit>
   </rim:permissions>
 
 </widget>


[40/50] [abbrv] webworks commit: Syncing hello-world-app for 3.1 release

Posted by je...@apache.org.
Syncing hello-world-app for 3.1 release


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/815042df
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/815042df
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/815042df

Branch: refs/heads/3.1.x
Commit: 815042dfef7488ff96039d85a9ab68012f3e6555
Parents: 006fcbe
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Thu Sep 19 11:46:03 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Thu Sep 19 12:45:14 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/www/LICENSE  | 296 ------------
 blackberry10/bin/templates/project/www/NOTICE   |   8 -
 .../bin/templates/project/www/README.md         |  30 --
 blackberry10/bin/templates/project/www/VERSION  |   1 -
 .../bin/templates/project/www/index.html        |   1 +
 blackberry10/bin/templates/project/www/json2.js | 482 -------------------
 .../project/www/res/resourceBundles/ar.js.gz    | Bin 708 -> 0 bytes
 .../project/www/res/resourceBundles/ar_AE.js.gz | Bin 745 -> 0 bytes
 .../project/www/res/resourceBundles/ar_BH.js.gz | Bin 738 -> 0 bytes
 .../project/www/res/resourceBundles/ar_DZ.js.gz | Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/ar_EG.js.gz | Bin 735 -> 0 bytes
 .../project/www/res/resourceBundles/ar_IQ.js.gz | Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_JO.js.gz | Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_KW.js.gz | Bin 738 -> 0 bytes
 .../project/www/res/resourceBundles/ar_LB.js.gz | Bin 735 -> 0 bytes
 .../project/www/res/resourceBundles/ar_LY.js.gz | Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_MA.js.gz | Bin 738 -> 0 bytes
 .../project/www/res/resourceBundles/ar_OM.js.gz | Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ar_QA.js.gz | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ar_SA.js.gz | Bin 704 -> 0 bytes
 .../project/www/res/resourceBundles/ar_SD.js.gz | Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/ar_SY.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/ar_TN.js.gz | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ar_YE.js.gz | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/be.js.gz    | Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/be_BY.js.gz | Bin 686 -> 0 bytes
 .../project/www/res/resourceBundles/bg.js.gz    | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/bg_BG.js.gz | Bin 688 -> 0 bytes
 .../project/www/res/resourceBundles/bn_IN.js.gz | Bin 767 -> 0 bytes
 .../project/www/res/resourceBundles/ca.js.gz    | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/ca_ES.js.gz | Bin 678 -> 0 bytes
 .../www/res/resourceBundles/ca_ES_PREEURO.js.gz | Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/cs.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/cs_CZ.js.gz | Bin 687 -> 0 bytes
 .../www/res/resourceBundles/cs_CZ_EURO.js.gz    | Bin 702 -> 0 bytes
 .../www/res/resourceBundles/cs_CZ_PREEURO.js.gz | Bin 706 -> 0 bytes
 .../project/www/res/resourceBundles/da.js.gz    | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/da_DK.js.gz | Bin 717 -> 0 bytes
 .../www/res/resourceBundles/da_DK_EURO.js.gz    | Bin 731 -> 0 bytes
 .../project/www/res/resourceBundles/de.js.gz    | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/de_AT.js.gz | Bin 719 -> 0 bytes
 .../www/res/resourceBundles/de_AT_PREEURO.js.gz | Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/de_CH.js.gz | Bin 723 -> 0 bytes
 .../project/www/res/resourceBundles/de_DE.js.gz | Bin 678 -> 0 bytes
 .../www/res/resourceBundles/de_DE_PREEURO.js.gz | Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/de_LU.js.gz | Bin 682 -> 0 bytes
 .../www/res/resourceBundles/de_LU_PREEURO.js.gz | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/el.js.gz    | Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/el_CY.js.gz | Bin 712 -> 0 bytes
 .../www/res/resourceBundles/el_CY_EURO.js.gz    | Bin 726 -> 0 bytes
 .../www/res/resourceBundles/el_CY_PREEURO.js.gz | Bin 730 -> 0 bytes
 .../project/www/res/resourceBundles/el_GR.js.gz | Bin 690 -> 0 bytes
 .../www/res/resourceBundles/el_GR_PREEURO.js.gz | Bin 708 -> 0 bytes
 .../project/www/res/resourceBundles/en.js.gz    | Bin 670 -> 0 bytes
 .../project/www/res/resourceBundles/en_AU.js.gz | Bin 689 -> 0 bytes
 .../project/www/res/resourceBundles/en_BE.js.gz | Bin 680 -> 0 bytes
 .../www/res/resourceBundles/en_BE_PREEURO.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/en_CA.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/en_GB.js.gz | Bin 692 -> 0 bytes
 .../www/res/resourceBundles/en_GB_EURO.js.gz    | Bin 706 -> 0 bytes
 .../project/www/res/resourceBundles/en_HK.js.gz | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/en_IE.js.gz | Bin 692 -> 0 bytes
 .../www/res/resourceBundles/en_IE_PREEURO.js.gz | Bin 710 -> 0 bytes
 .../project/www/res/resourceBundles/en_IN.js.gz | Bin 762 -> 0 bytes
 .../project/www/res/resourceBundles/en_MT.js.gz | Bin 686 -> 0 bytes
 .../project/www/res/resourceBundles/en_NZ.js.gz | Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/en_PH.js.gz | Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/en_SG.js.gz | Bin 688 -> 0 bytes
 .../project/www/res/resourceBundles/en_US.js.gz | Bin 705 -> 0 bytes
 .../project/www/res/resourceBundles/en_ZA.js.gz | Bin 692 -> 0 bytes
 .../project/www/res/resourceBundles/es.js.gz    | Bin 681 -> 0 bytes
 .../project/www/res/resourceBundles/es_AR.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_BO.js.gz | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_CL.js.gz | Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/es_CO.js.gz | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/es_CR.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_DO.js.gz | Bin 708 -> 0 bytes
 .../project/www/res/resourceBundles/es_EC.js.gz | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_ES.js.gz | Bin 679 -> 0 bytes
 .../www/res/resourceBundles/es_ES_PREEURO.js.gz | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_GT.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_HN.js.gz | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/es_MX.js.gz | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_NI.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/es_PA.js.gz | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/es_PE.js.gz | Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/es_PR.js.gz | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/es_PY.js.gz | Bin 720 -> 0 bytes
 .../project/www/res/resourceBundles/es_SV.js.gz | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/es_US.js.gz | Bin 707 -> 0 bytes
 .../project/www/res/resourceBundles/es_UY.js.gz | Bin 721 -> 0 bytes
 .../project/www/res/resourceBundles/es_VE.js.gz | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/et.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/et_EE.js.gz | Bin 677 -> 0 bytes
 .../www/res/resourceBundles/et_EE_EURO.js.gz    | Bin 691 -> 0 bytes
 .../www/res/resourceBundles/et_EE_PREEURO.js.gz | Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/fi.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/fi_FI.js.gz | Bin 685 -> 0 bytes
 .../www/res/resourceBundles/fi_FI_PREEURO.js.gz | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/fr.js.gz    | Bin 661 -> 0 bytes
 .../project/www/res/resourceBundles/fr_BE.js.gz | Bin 679 -> 0 bytes
 .../www/res/resourceBundles/fr_BE_PREEURO.js.gz | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/fr_CA.js.gz | Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/fr_CH.js.gz | Bin 723 -> 0 bytes
 .../project/www/res/resourceBundles/fr_FR.js.gz | Bin 682 -> 0 bytes
 .../www/res/resourceBundles/fr_FR_PREEURO.js.gz | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/fr_LU.js.gz | Bin 682 -> 0 bytes
 .../www/res/resourceBundles/fr_LU_PREEURO.js.gz | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ga.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ga_IE.js.gz | Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/gu.js.gz    | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/gu_IN.js.gz | Bin 763 -> 0 bytes
 .../project/www/res/resourceBundles/hi_IN.js.gz | Bin 759 -> 0 bytes
 .../project/www/res/resourceBundles/hr.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/hr_HR.js.gz | Bin 712 -> 0 bytes
 .../project/www/res/resourceBundles/hu.js.gz    | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/hu_HU.js.gz | Bin 680 -> 0 bytes
 .../www/res/resourceBundles/hu_HU_EURO.js.gz    | Bin 694 -> 0 bytes
 .../www/res/resourceBundles/hu_HU_PREEURO.js.gz | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/in.js.gz    | Bin 669 -> 0 bytes
 .../project/www/res/resourceBundles/in_ID.js.gz | Bin 684 -> 0 bytes
 .../project/www/res/resourceBundles/is.js.gz    | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/is_IS.js.gz | Bin 679 -> 0 bytes
 .../project/www/res/resourceBundles/it.js.gz    | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/it_CH.js.gz | Bin 723 -> 0 bytes
 .../project/www/res/resourceBundles/it_IT.js.gz | Bin 717 -> 0 bytes
 .../www/res/resourceBundles/it_IT_PREEURO.js.gz | Bin 734 -> 0 bytes
 .../project/www/res/resourceBundles/iw.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/iw_IL.js.gz | Bin 683 -> 0 bytes
 .../project/www/res/resourceBundles/ja.js.gz    | Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/ja_JP.js.gz | Bin 692 -> 0 bytes
 .../www/res/resourceBundles/ja_JP_JP.js.gz      | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/kk.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/kk_KZ.js.gz | Bin 711 -> 0 bytes
 .../project/www/res/resourceBundles/kn.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/kn_IN.js.gz | Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/ko.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ko_KR.js.gz | Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/lt.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/lt_LT.js.gz | Bin 676 -> 0 bytes
 .../www/res/resourceBundles/lt_LT_EURO.js.gz    | Bin 690 -> 0 bytes
 .../www/res/resourceBundles/lt_LT_PREEURO.js.gz | Bin 694 -> 0 bytes
 .../project/www/res/resourceBundles/lv.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/lv_LV.js.gz | Bin 677 -> 0 bytes
 .../www/res/resourceBundles/lv_LV_EURO.js.gz    | Bin 691 -> 0 bytes
 .../www/res/resourceBundles/lv_LV_PREEURO.js.gz | Bin 695 -> 0 bytes
 .../project/www/res/resourceBundles/mk.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/mk_MK.js.gz | Bin 720 -> 0 bytes
 .../project/www/res/resourceBundles/ml_IN.js.gz | Bin 762 -> 0 bytes
 .../project/www/res/resourceBundles/mr.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/mr_IN.js.gz | Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/ms.js.gz    | Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/ms_MY.js.gz | Bin 694 -> 0 bytes
 .../project/www/res/resourceBundles/mt.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/mt_MT.js.gz | Bin 685 -> 0 bytes
 .../www/res/resourceBundles/mt_MT_EURO.js.gz    | Bin 699 -> 0 bytes
 .../www/res/resourceBundles/mt_MT_PREEURO.js.gz | Bin 703 -> 0 bytes
 .../project/www/res/resourceBundles/nb_NO.js.gz | Bin 688 -> 0 bytes
 .../project/www/res/resourceBundles/nl.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/nl_BE.js.gz | Bin 679 -> 0 bytes
 .../www/res/resourceBundles/nl_BE_PREEURO.js.gz | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/nl_NL.js.gz | Bin 724 -> 0 bytes
 .../www/res/resourceBundles/nl_NL_PREEURO.js.gz | Bin 741 -> 0 bytes
 .../project/www/res/resourceBundles/no.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/no_NO.js.gz | Bin 680 -> 0 bytes
 .../www/res/resourceBundles/no_NO_NY.js.gz      | Bin 692 -> 0 bytes
 .../project/www/res/resourceBundles/or_IN.js.gz | Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/pa.js.gz    | Bin 737 -> 0 bytes
 .../project/www/res/resourceBundles/pa_IN.js.gz | Bin 753 -> 0 bytes
 .../project/www/res/resourceBundles/pl.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/pl_PL.js.gz | Bin 683 -> 0 bytes
 .../www/res/resourceBundles/pl_PL_EURO.js.gz    | Bin 697 -> 0 bytes
 .../www/res/resourceBundles/pl_PL_PREEURO.js.gz | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/pt.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/pt_BR.js.gz | Bin 717 -> 0 bytes
 .../project/www/res/resourceBundles/pt_PT.js.gz | Bin 681 -> 0 bytes
 .../www/res/resourceBundles/pt_PT_PREEURO.js.gz | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/ro.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/ro_RO.js.gz | Bin 675 -> 0 bytes
 .../project/www/res/resourceBundles/ru.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/ru_RU.js.gz | Bin 689 -> 0 bytes
 .../project/www/res/resourceBundles/sh.js.gz    | Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/sh_CS.js.gz | Bin 725 -> 0 bytes
 .../project/www/res/resourceBundles/sk.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/sk_SK.js.gz | Bin 679 -> 0 bytes
 .../www/res/resourceBundles/sk_SK_EURO.js.gz    | Bin 693 -> 0 bytes
 .../www/res/resourceBundles/sk_SK_PREEURO.js.gz | Bin 696 -> 0 bytes
 .../project/www/res/resourceBundles/sl.js.gz    | Bin 700 -> 0 bytes
 .../project/www/res/resourceBundles/sl_SI.js.gz | Bin 676 -> 0 bytes
 .../www/res/resourceBundles/sl_SI_PREEURO.js.gz | Bin 693 -> 0 bytes
 .../project/www/res/resourceBundles/sq.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/sq_AL.js.gz | Bin 684 -> 0 bytes
 .../project/www/res/resourceBundles/sr.js.gz    | Bin 698 -> 0 bytes
 .../project/www/res/resourceBundles/sr_BA.js.gz | Bin 727 -> 0 bytes
 .../project/www/res/resourceBundles/sr_CS.js.gz | Bin 727 -> 0 bytes
 .../project/www/res/resourceBundles/sr_ME.js.gz | Bin 716 -> 0 bytes
 .../project/www/res/resourceBundles/sr_RS.js.gz | Bin 712 -> 0 bytes
 .../www/res/resourceBundles/sr_RS_Cyrl.js.gz    | Bin 727 -> 0 bytes
 .../www/res/resourceBundles/sr_RS_Latn.js.gz    | Bin 724 -> 0 bytes
 .../project/www/res/resourceBundles/sv.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/sv_SE.js.gz | Bin 679 -> 0 bytes
 .../www/res/resourceBundles/sv_SE_EURO.js.gz    | Bin 693 -> 0 bytes
 .../www/res/resourceBundles/sv_SE_PREEURO.js.gz | Bin 697 -> 0 bytes
 .../project/www/res/resourceBundles/ta.js.gz    | Bin 736 -> 0 bytes
 .../project/www/res/resourceBundles/ta_IN.js.gz | Bin 759 -> 0 bytes
 .../project/www/res/resourceBundles/te.js.gz    | Bin 701 -> 0 bytes
 .../project/www/res/resourceBundles/te_IN.js.gz | Bin 761 -> 0 bytes
 .../project/www/res/resourceBundles/th.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/th_TH.js.gz | Bin 705 -> 0 bytes
 .../www/res/resourceBundles/th_TH_TH.js.gz      | Bin 712 -> 0 bytes
 .../project/www/res/resourceBundles/tr.js.gz    | Bin 699 -> 0 bytes
 .../project/www/res/resourceBundles/tr_TR.js.gz | Bin 676 -> 0 bytes
 .../project/www/res/resourceBundles/uk.js.gz    | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/uk_UA.js.gz | Bin 693 -> 0 bytes
 .../project/www/res/resourceBundles/vi.js.gz    | Bin 663 -> 0 bytes
 .../project/www/res/resourceBundles/vi_VN.js.gz | Bin 678 -> 0 bytes
 .../project/www/res/resourceBundles/zh.js.gz    | Bin 702 -> 0 bytes
 .../project/www/res/resourceBundles/zh_CN.js.gz | Bin 691 -> 0 bytes
 .../project/www/res/resourceBundles/zh_HK.js.gz | Bin 705 -> 0 bytes
 .../project/www/res/resourceBundles/zh_SG.js.gz | Bin 690 -> 0 bytes
 .../project/www/res/resourceBundles/zh_TW.js.gz | Bin 689 -> 0 bytes
 .../www/res/screen/blackberry10/screen-225.png  | Bin 16776 -> 0 bytes
 222 files changed, 1 insertion(+), 817 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/LICENSE
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/LICENSE b/blackberry10/bin/templates/project/www/LICENSE
deleted file mode 100644
index 9f761f1..0000000
--- a/blackberry10/bin/templates/project/www/LICENSE
+++ /dev/null
@@ -1,296 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-==============================================================
-This product also include the following software:
-==============================================================
-
---------------------------------------------------------------
-jasmine from GitHub
-
-   https://github.com/pivotal/jasmine
-
-MIT-style license
-
-license available from:
-
-   https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE
-   
------------------------------
-
-Copyright (c) 2008-2011 Pivotal Labs
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
---------------------------------------------------------------
-commonjs tests from the commonjs organization at GitHub
-
-   https://github.com/commonjs/commonjs
-
-MIT-style license
-
-license available from:
-
-   https://github.com/commonjs/commonjs/blob/master/docs/license.html.markdown
-
-contributor list available from:
-
-   https://github.com/commonjs/commonjs/blob/master/docs/contributors.html.markdown
-
------------------------------
-
-Copyright 2009 Kevin Dangoor
-Copyright 2009 Ihab Awad
-Copyright 2009 Ash Berlin
-Copyright 2009 Aristid Breitkreuz
-Copyright 2009 Kevin Dangoor
-Copyright 2009 Daniel Friesen
-Copyright 2009 Wes Garland
-Copyright 2009 Kris Kowal
-Copyright 2009 Dean Landolt
-Copyright 2009 Peter Michaux
-Copyright 2009 George Moschovitis
-Copyright 2009 Michael O'Brien
-Copyright 2009 Tom Robinson
-Copyright 2009 Hannes Wallnoefer
-Copyright 2009 Mike Wilson
-Copyright 2009 Ondrej Zara
-Copyright 2009 Chris Zumbrunn
-Copyright 2009 Kris Zyp
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/NOTICE
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/NOTICE b/blackberry10/bin/templates/project/www/NOTICE
deleted file mode 100644
index 4e02ca4..0000000
--- a/blackberry10/bin/templates/project/www/NOTICE
+++ /dev/null
@@ -1,8 +0,0 @@
-Apache Cordova
-Copyright 2012 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org)
-
-This product includes software developed by
-Jasmine (https://github.com/pivotal/jasmine)

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/README.md b/blackberry10/bin/templates/project/www/README.md
deleted file mode 100644
index 61256fe..0000000
--- a/blackberry10/bin/templates/project/www/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# Apache Cordova Hello World Application
-
-> Simple Hello World application and test suite.
-
-## Run Application
-
-    /www/index.html
-
-## Run Tests
-
-    /www/spec.html
-
-## Versions and Tags
-
-The Hello World's version is directly tied to an Apache Cordova release.
-
-For example, Hello World `2.0.0` is compatible with Apache Cordova `2.0.0`.
-
-## How to Update
-
-Update to Apache Cordova x.x.x by:
-
-1. `www/index.html`
-    - Update `<script type="text/javascript" src="cordova-x.x.x.js"></script>`
-2. `VERSION`
-    - Update the version
-3. Commit and Tag
-    - `git commit -am "[app] Version x.x.x"`
-    - `git tag x.x.x`
-

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/VERSION
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/VERSION b/blackberry10/bin/templates/project/www/VERSION
deleted file mode 100644
index 38f8e88..0000000
--- a/blackberry10/bin/templates/project/www/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-dev

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/index.html
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/index.html b/blackberry10/bin/templates/project/www/index.html
index e84fbd7..bde5741 100644
--- a/blackberry10/bin/templates/project/www/index.html
+++ b/blackberry10/bin/templates/project/www/index.html
@@ -21,6 +21,7 @@
     <head>
         <meta charset="utf-8" />
         <meta name="format-detection" content="telephone=no" />
+        <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
         <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
         <link rel="stylesheet" type="text/css" href="css/index.css" />
         <title>Hello World</title>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/json2.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/json2.js b/blackberry10/bin/templates/project/www/json2.js
deleted file mode 100644
index c52b92a..0000000
--- a/blackberry10/bin/templates/project/www/json2.js
+++ /dev/null
@@ -1,482 +0,0 @@
-/*
-    http://www.JSON.org/json2.js
-    2010-03-20
-
-    Public Domain.
-
-    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-
-    See http://www.JSON.org/js.html
-
-
-    This code should be minified before deployment.
-    See http://javascript.crockford.com/jsmin.html
-
-    USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
-    NOT CONTROL.
-
-
-    This file creates a global JSON object containing two methods: stringify
-    and parse.
-
-        JSON.stringify(value, replacer, space)
-            value       any JavaScript value, usually an object or array.
-
-            replacer    an optional parameter that determines how object
-                        values are stringified for objects. It can be a
-                        function or an array of strings.
-
-            space       an optional parameter that specifies the indentation
-                        of nested structures. If it is omitted, the text will
-                        be packed without extra whitespace. If it is a number,
-                        it will specify the number of spaces to indent at each
-                        level. If it is a string (such as '\t' or '&nbsp;'),
-                        it contains the characters used to indent at each level.
-
-            This method produces a JSON text from a JavaScript value.
-
-            When an object value is found, if the object contains a toJSON
-            method, its toJSON method will be called and the result will be
-            stringified. A toJSON method does not serialize: it returns the
-            value represented by the name/value pair that should be serialized,
-            or undefined if nothing should be serialized. The toJSON method
-            will be passed the key associated with the value, and this will be
-            bound to the value
-
-            For example, this would serialize Dates as ISO strings.
-
-                Date.prototype.toJSON = function (key) {
-                    function f(n) {
-                        // Format integers to have at least two digits.
-                        return n < 10 ? '0' + n : n;
-                    }
-
-                    return this.getUTCFullYear()   + '-' +
-                         f(this.getUTCMonth() + 1) + '-' +
-                         f(this.getUTCDate())      + 'T' +
-                         f(this.getUTCHours())     + ':' +
-                         f(this.getUTCMinutes())   + ':' +
-                         f(this.getUTCSeconds())   + 'Z';
-                };
-
-            You can provide an optional replacer method. It will be passed the
-            key and value of each member, with this bound to the containing
-            object. The value that is returned from your method will be
-            serialized. If your method returns undefined, then the member will
-            be excluded from the serialization.
-
-            If the replacer parameter is an array of strings, then it will be
-            used to select the members to be serialized. It filters the results
-            such that only members with keys listed in the replacer array are
-            stringified.
-
-            Values that do not have JSON representations, such as undefined or
-            functions, will not be serialized. Such values in objects will be
-            dropped; in arrays they will be replaced with null. You can use
-            a replacer function to replace those with JSON values.
-            JSON.stringify(undefined) returns undefined.
-
-            The optional space parameter produces a stringification of the
-            value that is filled with line breaks and indentation to make it
-            easier to read.
-
-            If the space parameter is a non-empty string, then that string will
-            be used for indentation. If the space parameter is a number, then
-            the indentation will be that many spaces.
-
-            Example:
-
-            text = JSON.stringify(['e', {pluribus: 'unum'}]);
-            // text is '["e",{"pluribus":"unum"}]'
-
-
-            text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
-            // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
-
-            text = JSON.stringify([new Date()], function (key, value) {
-                return this[key] instanceof Date ?
-                    'Date(' + this[key] + ')' : value;
-            });
-            // text is '["Date(---current time---)"]'
-
-
-        JSON.parse(text, reviver)
-            This method parses a JSON text to produce an object or array.
-            It can throw a SyntaxError exception.
-
-            The optional reviver parameter is a function that can filter and
-            transform the results. It receives each of the keys and values,
-            and its return value is used instead of the original value.
-            If it returns what it received, then the structure is not modified.
-            If it returns undefined then the member is deleted.
-
-            Example:
-
-            // Parse the text. Values that look like ISO date strings will
-            // be converted to Date objects.
-
-            myData = JSON.parse(text, function (key, value) {
-                var a;
-                if (typeof value === 'string') {
-                    a =
-/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
-                    if (a) {
-                        return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
-                            +a[5], +a[6]));
-                    }
-                }
-                return value;
-            });
-
-            myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
-                var d;
-                if (typeof value === 'string' &&
-                        value.slice(0, 5) === 'Date(' &&
-                        value.slice(-1) === ')') {
-                    d = new Date(value.slice(5, -1));
-                    if (d) {
-                        return d;
-                    }
-                }
-                return value;
-            });
-
-
-    This is a reference implementation. You are free to copy, modify, or
-    redistribute.
-*/
-
-/*jslint evil: true, strict: false */
-
-/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
-    call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
-    getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
-    lastIndex, length, parse, prototype, push, replace, slice, stringify,
-    test, toJSON, toString, valueOf
-*/
-
-
-// Create a JSON object only if one does not already exist. We create the
-// methods in a closure to avoid creating global variables.
-
-if (!this.JSON) {
-    this.JSON = {};
-}
-
-(function () {
-
-    function f(n) {
-        // Format integers to have at least two digits.
-        return n < 10 ? '0' + n : n;
-    }
-
-    if (typeof Date.prototype.toJSON !== 'function') {
-
-        Date.prototype.toJSON = function (key) {
-
-            return isFinite(this.valueOf()) ?
-                   this.getUTCFullYear()   + '-' +
-                 f(this.getUTCMonth() + 1) + '-' +
-                 f(this.getUTCDate())      + 'T' +
-                 f(this.getUTCHours())     + ':' +
-                 f(this.getUTCMinutes())   + ':' +
-                 f(this.getUTCSeconds())   + 'Z' : null;
-        };
-
-        String.prototype.toJSON =
-        Number.prototype.toJSON =
-        Boolean.prototype.toJSON = function (key) {
-            return this.valueOf();
-        };
-    }
-
-    var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
-        escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
-        gap,
-        indent,
-        meta = {    // table of character substitutions
-            '\b': '\\b',
-            '\t': '\\t',
-            '\n': '\\n',
-            '\f': '\\f',
-            '\r': '\\r',
-            '"' : '\\"',
-            '\\': '\\\\'
-        },
-        rep;
-
-
-    function quote(string) {
-
-// If the string contains no control characters, no quote characters, and no
-// backslash characters, then we can safely slap some quotes around it.
-// Otherwise we must also replace the offending characters with safe escape
-// sequences.
-
-        escapable.lastIndex = 0;
-        return escapable.test(string) ?
-            '"' + string.replace(escapable, function (a) {
-                var c = meta[a];
-                return typeof c === 'string' ? c :
-                    '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
-            }) + '"' :
-            '"' + string + '"';
-    }
-
-
-    function str(key, holder) {
-
-// Produce a string from holder[key].
-
-        var i,          // The loop counter.
-            k,          // The member key.
-            v,          // The member value.
-            length,
-            mind = gap,
-            partial,
-            value = holder[key];
-
-// If the value has a toJSON method, call it to obtain a replacement value.
-
-        if (value && typeof value === 'object' &&
-                typeof value.toJSON === 'function') {
-            value = value.toJSON(key);
-        }
-
-// If we were called with a replacer function, then call the replacer to
-// obtain a replacement value.
-
-        if (typeof rep === 'function') {
-            value = rep.call(holder, key, value);
-        }
-
-// What happens next depends on the value's type.
-
-        switch (typeof value) {
-        case 'string':
-            return quote(value);
-
-        case 'number':
-
-// JSON numbers must be finite. Encode non-finite numbers as null.
-
-            return isFinite(value) ? String(value) : 'null';
-
-        case 'boolean':
-        case 'null':
-
-// If the value is a boolean or null, convert it to a string. Note:
-// typeof null does not produce 'null'. The case is included here in
-// the remote chance that this gets fixed someday.
-
-            return String(value);
-
-// If the type is 'object', we might be dealing with an object or an array or
-// null.
-
-        case 'object':
-
-// Due to a specification blunder in ECMAScript, typeof null is 'object',
-// so watch out for that case.
-
-            if (!value) {
-                return 'null';
-            }
-
-// Make an array to hold the partial results of stringifying this object value.
-
-            gap += indent;
-            partial = [];
-
-// Is the value an array?
-
-            if (Object.prototype.toString.apply(value) === '[object Array]') {
-
-// The value is an array. Stringify every element. Use null as a placeholder
-// for non-JSON values.
-
-                length = value.length;
-                for (i = 0; i < length; i += 1) {
-                    partial[i] = str(i, value) || 'null';
-                }
-
-// Join all of the elements together, separated with commas, and wrap them in
-// brackets.
-
-                v = partial.length === 0 ? '[]' :
-                    gap ? '[\n' + gap +
-                            partial.join(',\n' + gap) + '\n' +
-                                mind + ']' :
-                          '[' + partial.join(',') + ']';
-                gap = mind;
-                return v;
-            }
-
-// If the replacer is an array, use it to select the members to be stringified.
-
-            if (rep && typeof rep === 'object') {
-                length = rep.length;
-                for (i = 0; i < length; i += 1) {
-                    k = rep[i];
-                    if (typeof k === 'string') {
-                        v = str(k, value);
-                        if (v) {
-                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
-                        }
-                    }
-                }
-            } else {
-
-// Otherwise, iterate through all of the keys in the object.
-
-                for (k in value) {
-                    if (Object.hasOwnProperty.call(value, k)) {
-                        v = str(k, value);
-                        if (v) {
-                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
-                        }
-                    }
-                }
-            }
-
-// Join all of the member texts together, separated with commas,
-// and wrap them in braces.
-
-            v = partial.length === 0 ? '{}' :
-                gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
-                        mind + '}' : '{' + partial.join(',') + '}';
-            gap = mind;
-            return v;
-        }
-    }
-
-// If the JSON object does not yet have a stringify method, give it one.
-
-    if (typeof JSON.stringify !== 'function') {
-        JSON.stringify = function (value, replacer, space) {
-
-// The stringify method takes a value and an optional replacer, and an optional
-// space parameter, and returns a JSON text. The replacer can be a function
-// that can replace values, or an array of strings that will select the keys.
-// A default replacer method can be provided. Use of the space parameter can
-// produce text that is more easily readable.
-
-            var i;
-            gap = '';
-            indent = '';
-
-// If the space parameter is a number, make an indent string containing that
-// many spaces.
-
-            if (typeof space === 'number') {
-                for (i = 0; i < space; i += 1) {
-                    indent += ' ';
-                }
-
-// If the space parameter is a string, it will be used as the indent string.
-
-            } else if (typeof space === 'string') {
-                indent = space;
-            }
-
-// If there is a replacer, it must be a function or an array.
-// Otherwise, throw an error.
-
-            rep = replacer;
-            if (replacer && typeof replacer !== 'function' &&
-                    (typeof replacer !== 'object' ||
-                     typeof replacer.length !== 'number')) {
-                throw new Error('JSON.stringify');
-            }
-
-// Make a fake root object containing our value under the key of ''.
-// Return the result of stringifying the value.
-
-            return str('', {'': value});
-        };
-    }
-
-
-// If the JSON object does not yet have a parse method, give it one.
-
-    if (typeof JSON.parse !== 'function') {
-        JSON.parse = function (text, reviver) {
-
-// The parse method takes a text and an optional reviver function, and returns
-// a JavaScript value if the text is a valid JSON text.
-
-            var j;
-
-            function walk(holder, key) {
-
-// The walk method is used to recursively walk the resulting structure so
-// that modifications can be made.
-
-                var k, v, value = holder[key];
-                if (value && typeof value === 'object') {
-                    for (k in value) {
-                        if (Object.hasOwnProperty.call(value, k)) {
-                            v = walk(value, k);
-                            if (v !== undefined) {
-                                value[k] = v;
-                            } else {
-                                delete value[k];
-                            }
-                        }
-                    }
-                }
-                return reviver.call(holder, key, value);
-            }
-
-
-// Parsing happens in four stages. In the first stage, we replace certain
-// Unicode characters with escape sequences. JavaScript handles many characters
-// incorrectly, either silently deleting them, or treating them as line endings.
-
-            text = String(text);
-            cx.lastIndex = 0;
-            if (cx.test(text)) {
-                text = text.replace(cx, function (a) {
-                    return '\\u' +
-                        ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
-                });
-            }
-
-// In the second stage, we run the text against regular expressions that look
-// for non-JSON patterns. We are especially concerned with '()' and 'new'
-// because they can cause invocation, and '=' because it can cause mutation.
-// But just to be safe, we want to reject all unexpected forms.
-
-// We split the second stage into 4 regexp operations in order to work around
-// crippling inefficiencies in IE's and Safari's regexp engines. First we
-// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
-// replace all simple value tokens with ']' characters. Third, we delete all
-// open brackets that follow a colon or comma or that begin the text. Finally,
-// we look to see that the remaining characters are only whitespace or ']' or
-// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
-
-            if (/^[\],:{}\s]*$/.
-test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').
-replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').
-replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
-
-// In the third stage we use the eval function to compile the text into a
-// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
-// in JavaScript: it can begin a block or an object literal. We wrap the text
-// in parens to eliminate the ambiguity.
-
-                j = eval('(' + text + ')');
-
-// In the optional fourth stage, we recursively walk the new structure, passing
-// each name/value pair to a reviver function for possible transformation.
-
-                return typeof reviver === 'function' ?
-                    walk({'': j}, '') : j;
-            }
-
-// If the text is not JSON parseable, then a SyntaxError is thrown.
-
-            throw new SyntaxError('JSON.parse');
-        };
-    }
-}());
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar.js.gz
deleted file mode 100644
index 3c1fecd..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz
deleted file mode 100644
index 677a6ad..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz
deleted file mode 100644
index 602c22c..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz
deleted file mode 100644
index 485b9a2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz
deleted file mode 100644
index dfc2045..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz
deleted file mode 100644
index 9e7c5ae..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz
deleted file mode 100644
index 72d26ca..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz
deleted file mode 100644
index 1dde592..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz
deleted file mode 100644
index 640e8be..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz
deleted file mode 100644
index b7beb36..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz
deleted file mode 100644
index 3eb49f9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz
deleted file mode 100644
index b68cf81..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz
deleted file mode 100644
index d2583d4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz
deleted file mode 100644
index aa15f88..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz
deleted file mode 100644
index 116f0e2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz
deleted file mode 100644
index 65aaeb0..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz
deleted file mode 100644
index 853cc9e..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz
deleted file mode 100644
index 841ee63..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/be.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/be.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/be.js.gz
deleted file mode 100644
index a0a64b8..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/be.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/be_BY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/be_BY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/be_BY.js.gz
deleted file mode 100644
index fec5f32..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/be_BY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/bg.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/bg.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/bg.js.gz
deleted file mode 100644
index 4f816d8..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/bg.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz
deleted file mode 100644
index 9cc5ec3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz
deleted file mode 100644
index 3f40ba4..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ca.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ca.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ca.js.gz
deleted file mode 100644
index 32e04c5..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ca.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz
deleted file mode 100644
index 93d8ec3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz
deleted file mode 100644
index 69be9b1..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/cs.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/cs.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/cs.js.gz
deleted file mode 100644
index 28dd3ee..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/cs.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz
deleted file mode 100644
index 95d0e32..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz
deleted file mode 100644
index 9d821d6..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz
deleted file mode 100644
index 681c4b3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/da.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/da.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/da.js.gz
deleted file mode 100644
index ba270ad..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/da.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK.js.gz
deleted file mode 100644
index 0b9dbe2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz
deleted file mode 100644
index 8d52b6a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de.js.gz
deleted file mode 100644
index a65adda..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT.js.gz
deleted file mode 100644
index fb693c2..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz
deleted file mode 100644
index e61b9d9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de_CH.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de_CH.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de_CH.js.gz
deleted file mode 100644
index 1b906e7..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de_CH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE.js.gz
deleted file mode 100644
index dc73b68..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz
deleted file mode 100644
index 76e1b0d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de_DE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU.js.gz
deleted file mode 100644
index f1f85b9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz
deleted file mode 100644
index c00d5de..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/de_LU_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/el.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/el.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/el.js.gz
deleted file mode 100644
index 0cdbf53..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/el.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY.js.gz
deleted file mode 100644
index 5405116..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz
deleted file mode 100644
index 79c2841..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz
deleted file mode 100644
index 35a134a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/el_CY_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR.js.gz
deleted file mode 100644
index 6c30687..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz
deleted file mode 100644
index e6f2529..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/el_GR_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en.js.gz
deleted file mode 100644
index 146dee3..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_AU.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_AU.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_AU.js.gz
deleted file mode 100644
index 8cb1758..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_AU.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE.js.gz
deleted file mode 100644
index e327a14..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz
deleted file mode 100644
index eaa6076..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_BE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_CA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_CA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_CA.js.gz
deleted file mode 100644
index 65ce247..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_CA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB.js.gz
deleted file mode 100644
index 9e647a7..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz
deleted file mode 100644
index 0e6d09b..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_GB_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_HK.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_HK.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_HK.js.gz
deleted file mode 100644
index cda0352..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_HK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE.js.gz
deleted file mode 100644
index 91efb10..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz
deleted file mode 100644
index 8933e3d..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_IE_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_IN.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_IN.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_IN.js.gz
deleted file mode 100644
index db66e86..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_MT.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_MT.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_MT.js.gz
deleted file mode 100644
index ea0a479..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_MT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz
deleted file mode 100644
index 720baad..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_NZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_PH.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_PH.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_PH.js.gz
deleted file mode 100644
index 7e860ff..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_PH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_SG.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_SG.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_SG.js.gz
deleted file mode 100644
index 5ffc7ba..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_SG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_US.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_US.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_US.js.gz
deleted file mode 100644
index 5e7ed2f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_US.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz
deleted file mode 100644
index c1221b5..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/en_ZA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es.js.gz
deleted file mode 100644
index f233e90..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_AR.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_AR.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_AR.js.gz
deleted file mode 100644
index 0ca8ffa..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_AR.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_BO.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_BO.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_BO.js.gz
deleted file mode 100644
index 1b3c306..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_BO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/815042df/blackberry10/bin/templates/project/www/res/resourceBundles/es_CL.js.gz
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/resourceBundles/es_CL.js.gz b/blackberry10/bin/templates/project/www/res/resourceBundles/es_CL.js.gz
deleted file mode 100644
index 92a324a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/resourceBundles/es_CL.js.gz and /dev/null differ


[19/50] [abbrv] webworks commit: [CB-4634] Updating the default app to match cordova-app-hello-world

Posted by je...@apache.org.
[CB-4634] Updating the default app to match cordova-app-hello-world


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/7fd00940
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/7fd00940
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/7fd00940

Branch: refs/heads/3.1.x
Commit: 7fd00940b7418e58d817ba3b0e83b8896e0dbe14
Parents: b6dfddf
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Tue Aug 20 14:57:13 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Tue Aug 20 14:57:13 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/www/config.xml  |   8 ++++----
 .../project/www/res/icon/blackberry/icon-80.png    | Bin 7287 -> 0 bytes
 .../project/www/res/icon/blackberry10/icon-80.png  | Bin 0 -> 7287 bytes
 .../www/res/screen/blackberry/screen-225.png       | Bin 16776 -> 0 bytes
 .../www/res/screen/blackberry/splash-1280x768.png  | Bin 60771 -> 0 bytes
 .../www/res/screen/blackberry/splash-720x720.png   | Bin 50431 -> 0 bytes
 .../www/res/screen/blackberry/splash-768x1280.png  | Bin 57145 -> 0 bytes
 .../www/res/screen/blackberry10/screen-225.png     | Bin 0 -> 16776 bytes
 .../res/screen/blackberry10/splash-1280x768.png    | Bin 0 -> 60771 bytes
 .../www/res/screen/blackberry10/splash-720x720.png | Bin 0 -> 50431 bytes
 .../res/screen/blackberry10/splash-768x1280.png    | Bin 0 -> 57145 bytes
 11 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/config.xml
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/config.xml b/blackberry10/bin/templates/project/www/config.xml
index e920596..8083b36 100644
--- a/blackberry10/bin/templates/project/www/config.xml
+++ b/blackberry10/bin/templates/project/www/config.xml
@@ -42,10 +42,10 @@
   <access subdomains="true" uri="file:///SDCard" />
   <access subdomains="true" uri="*" />
 
-  <icon src="res/icon/blackberry/icon-80.png" />
-  <rim:splash src="res/screen/blackberry/splash-1280x768.png" />
-  <rim:splash src="res/screen/blackberry/splash-720x720.png" />
-  <rim:splash src="res/screen/blackberry/splash-768x1280.png" />
+  <icon src="res/icon/blackberry10/icon-80.png" />
+  <rim:splash src="res/screen/blackberry10/splash-1280x768.png" />
+  <rim:splash src="res/screen/blackberry10/splash-720x720.png" />
+  <rim:splash src="res/screen/blackberry10/splash-768x1280.png" />
 
   <content src="index.html" />
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/icon/blackberry/icon-80.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/icon/blackberry/icon-80.png b/blackberry10/bin/templates/project/www/res/icon/blackberry/icon-80.png
deleted file mode 100644
index f86a27a..0000000
Binary files a/blackberry10/bin/templates/project/www/res/icon/blackberry/icon-80.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/icon/blackberry10/icon-80.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/icon/blackberry10/icon-80.png b/blackberry10/bin/templates/project/www/res/icon/blackberry10/icon-80.png
new file mode 100644
index 0000000..f86a27a
Binary files /dev/null and b/blackberry10/bin/templates/project/www/res/icon/blackberry10/icon-80.png differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry/screen-225.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry/screen-225.png b/blackberry10/bin/templates/project/www/res/screen/blackberry/screen-225.png
deleted file mode 100644
index 29873e9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/screen/blackberry/screen-225.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-1280x768.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-1280x768.png b/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-1280x768.png
deleted file mode 100644
index 5f4bca9..0000000
Binary files a/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-1280x768.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-720x720.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-720x720.png b/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-720x720.png
deleted file mode 100644
index fe1756f..0000000
Binary files a/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-720x720.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-768x1280.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-768x1280.png b/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-768x1280.png
deleted file mode 100644
index 0fb9c1b..0000000
Binary files a/blackberry10/bin/templates/project/www/res/screen/blackberry/splash-768x1280.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png b/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png
new file mode 100644
index 0000000..29873e9
Binary files /dev/null and b/blackberry10/bin/templates/project/www/res/screen/blackberry10/screen-225.png differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-1280x768.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-1280x768.png b/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-1280x768.png
new file mode 100644
index 0000000..5f4bca9
Binary files /dev/null and b/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-1280x768.png differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-720x720.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-720x720.png b/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-720x720.png
new file mode 100644
index 0000000..fe1756f
Binary files /dev/null and b/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-720x720.png differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/7fd00940/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-768x1280.png
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-768x1280.png b/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-768x1280.png
new file mode 100644
index 0000000..0fb9c1b
Binary files /dev/null and b/blackberry10/bin/templates/project/www/res/screen/blackberry10/splash-768x1280.png differ


[23/50] [abbrv] webworks commit: [CB-4564]Only alow .js files into frameworkModules

Posted by je...@apache.org.
[CB-4564]Only alow .js files into frameworkModules

  Reviewed By: Bryan Higgins <bh...@blackberry.com>
  Tested By: Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/e9fa1f05
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/e9fa1f05
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/e9fa1f05

Branch: refs/heads/3.1.x
Commit: e9fa1f05a1c3d36b207a9c74a84a75d6f6b899b6
Parents: f60a0cd
Author: DanielAudino <da...@blackberry.com>
Authored: Wed Aug 7 11:45:13 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Wed Aug 28 11:44:08 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/file-manager.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/e9fa1f05/blackberry10/bin/templates/project/cordova/lib/file-manager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/file-manager.js b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
index 1ce0cf3..10e27d0 100755
--- a/blackberry10/bin/templates/project/cordova/lib/file-manager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
@@ -102,16 +102,14 @@ function getModulesArray(dest, files, baseDir) {
         EXCLUDE_FILES = ["client.js", "manifest.json"];
 
     function isExcluded(file) {
-        return EXCLUDE_FILES.some(function (element) {
-            return path.basename(file) === element;
-        });
+        return EXCLUDE_FILES.indexOf(path.basename(file)) !== -1 || !file.match(/\.(js|json)$/);
     }
 
     files.forEach(function (file) {
         file = path.resolve(baseDir, file);
 
         if (!fs.statSync(file).isDirectory()) {
-            if (baseDir !== dest.EXT || !isExcluded(file)) {
+            if (baseDir !== dest.EXT && !isExcluded(file)) {
                 modulesList.push({name: path.relative(path.normalize(dest.CHROME), file).replace(/\\/g, "/"), file: file});
             }
         }


[47/50] [abbrv] CB-4876 removal of playbook implementation

Posted by je...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/playbook.xml
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/playbook.xml b/playbook/bin/templates/project/playbook.xml
deleted file mode 100644
index 7250cbc..0000000
--- a/playbook/bin/templates/project/playbook.xml
+++ /dev/null
@@ -1,338 +0,0 @@
-<project default="help">
-<!-- 
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
--->    
-    <!-- LOAD PROPERTIES -->
-    
-    <property prefix="properties" file="project.properties" />
-    <property name="build.dir"    location="build" />
-    <property name="widget.dir"   location="${build.dir}/widget" />
-    <property name="code.sign"    value="false" />
-    <property name="generate.ext"   value="cod" />
-    <property name="build.num.file" value="buildId.txt" />
-    
-    <!-- BlackBerry WebWorks Packager for Tablets directory is required. -->
-    <fail unless="properties.playbook.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'playbook.bbwp.dir' in your 'project.properties' file." />
-
-    <!-- OS identification -->
-    <condition property="isMacOSX" else="false">
-        <and>
-            <os family="mac" />
-            <os family="unix" />
-        </and>
-    </condition>
-
-    <condition property="bbwp" value="${properties.playbook.bbwp.dir}/bbwp" else="${properties.playbook.bbwp.dir}/bbwp.exe">
-        <equals arg1="${isMacOSX}" arg2="true" />
-    </condition>
-
-    <condition property="blackberry-deploy" value="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-deploy" else="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-deploy.bat">
-        <equals arg1="${isMacOSX}" arg2="true" />
-    </condition>
-
-    <condition property="blackberry-debugtokenrequest" value="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-debugtokenrequest" else="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-debugtokenrequest.bat">
-        <equals arg1="${isMacOSX}" arg2="true" />
-    </condition>
-
-    <!-- LOAD DEVICE -->
-    
-    <target name="load-device" depends="package-app">
-        <bbwp code-sign="true" />
-
-        <exec executable="${blackberry-deploy}" dir="." failonerror="true">
-            <arg value="-installApp" />
-            <arg value="-launchApp" />
-            <arg value="-device" />
-            <arg value="${properties.playbook.device.ip}" />
-            <arg value="-password" />
-            <arg value="${properties.playbook.device.password}" />
-            <arg value="-package" />
-            <arg file="${build.dir}/${cod.name}.bar" />
-        </exec>
-    </target>
-    
-    <!-- DEBUG-LOAD DEVICE -->
-    
-    <target name="debug-device" depends="package-app">
-        <if>
-            <equals arg1="${properties.playbook.device.pin}" arg2="" />
-            <then>
-                <echo>
-                    If you fill in the playbook.device.pin value you can use debug tokens!
-                    This means you won't have to worry about having a unique version in config.xml every time.
-                </echo>
-                <bbwp code-sign="true" debug="true" />
-            </then>
-            <else>
-                <generate-debug-token />
-                <bbwp code-sign="false" debug="true" />
-            </else>
-        </if>
-
-        <exec executable="${blackberry-deploy}" dir="." failonerror="true">
-            <arg value="-installApp" />
-            <arg value="-launchApp" />
-            <arg value="-device" />
-            <arg value="${properties.playbook.device.ip}" />
-            <arg value="-password" />
-            <arg value="${properties.playbook.device.password}" />
-            <arg value="-package" />
-            <arg file="${build.dir}/${cod.name}.bar" />
-        </exec>
-    </target>
-    
-    <!-- LOAD SIMULATOR -->
-    
-    <target name="load-simulator" depends="build">
-
-        <echo>This tool will not open the simulator for you </echo>
-
-        <exec executable="${blackberry-deploy}" dir="." failonerror="true">
-            <arg value="-installApp" />
-            <arg value="-launchApp" />
-            <arg value="-device" />
-            <arg value="${properties.playbook.sim.ip}" />
-            <arg value="-password" />
-            <arg value="${properties.playbook.sim.password}" />
-            <arg value="-package" />
-            <arg file="${build.dir}/${cod.name}.bar" />
-        </exec>
-    </target>
-    
-    <target name="debug-simulator" depends="package-app">
-        <bbwp code-sign="false" debug="true" />
-        <echo>This tool will not open the simulator for you </echo>
-
-        <exec executable="${blackberry-deploy}" dir="." failonerror="true">
-            <arg value="-installApp" />
-            <arg value="-launchApp" />
-            <arg value="-device" />
-            <arg value="${properties.playbook.sim.ip}" />
-            <arg value="-password" />
-            <arg value="${properties.playbook.sim.password}" />
-            <arg value="-package" />
-            <arg file="${build.dir}/${cod.name}.bar" />
-        </exec>
-    </target>
-    <!-- PACKAGE-APP -->
-    
-    <target name="package-app" depends="generate-cod-name, clean">
-        <!-- Copy the WebWorks application -->
-        <mkdir dir="${widget.dir}" />
-        <copy todir="${widget.dir}" overwrite="true">
-            <fileset dir="www" >
-                <exclude name="ext/**"/>
-                <exclude name="ext-air/**"/>
-                <exclude name="res/resourceBundles/**"/>
-            </fileset>
-        </copy>
-        
-        <!-- Update WebWorks Packager with the AIR APIs -->
-        <copy todir="${properties.playbook.bbwp.dir}\ext" overwrite="true">
-            <fileset dir="www/ext-air" excludes="README.md" />
-        </copy>
-        
-        <!-- Package the WebWorks app by zipping the widget dir. -->
-        <mkdir dir="${build.dir}" />
-        <zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
-    </target>
-    
-    <!-- BUILD -->
-
-    <target name="build" depends="package-app">
-        <bbwp code-sign="${code.sign}" />
-    </target>
-
-    <!-- BBWP MACRO -->
-
-    <macrodef name="bbwp">
-        <attribute name="code-sign" default="false" />
-        <attribute name="debug" default="false" />
-        <sequential>
-            <!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
-            <if>
-                <equals arg1="@{debug}" arg2="true" />
-                <then>
-                    <property name="debug.flag" value="-d" />
-                </then>
-                <else>
-                    <property name="debug.flag" value="" />
-                </else>
-            </if>
-            <buildnumber file="${build.num.file}" />
-            <if>
-                <equals arg1="@{code-sign}" arg2="true" />
-                <then>
-                    <exec executable="${bbwp}">
-                        <arg file="${build.dir}/${cod.name}.zip" />
-                        <arg value="-gcsk" />
-                        <arg value="${properties.playbook.sigtool.csk.password}" />
-                        <arg value="-gp12" />
-                        <arg value="${properties.playbook.sigtool.p12.password}" />
-                        <arg value="-o" />
-                        <arg file="${build.dir}" />
-                        <arg line="${debug.flag} -buildId" />
-                        <arg value="${build.number}" />
-                    </exec>
-                </then>
-                <else>
-                    <exec executable="${bbwp}">
-                        <arg file="${build.dir}/${cod.name}.zip" />
-                        <arg value="-o" />
-                        <arg file="${build.dir}" />
-                        <arg line="${debug.flag} -buildId" />
-                        <arg value="${build.number}" />
-                    </exec>
-                </else>
-            </if>
-        </sequential>
-    </macrodef>
-
-    <!-- install debug token" -->
-    <macrodef name="generate-debug-token">
-        <sequential>
-            <exec executable="${blackberry-debugtokenrequest}" dir="." failonerror="true">
-                <arg value="-storepass" />
-                <arg value="${properties.playbook.sigtool.csk.password}" />
-                <arg value="-deviceID" />
-                <arg value="0x${properties.playbook.device.pin}" />
-                <arg file="${properties.playbook.bbwp.dir}/debugtoken.bar" />
-            </exec>
-
-            <exec executable="${blackberry-deploy}" dir="." failonerror="true">
-                <arg value="-installApp" />
-                <arg value="-launchApp" />
-                <arg value="-device" />
-                <arg value="${properties.playbook.device.ip}" />
-                <arg value="-password" />
-                <arg value="${properties.playbook.device.password}" />
-                <arg value="-package" />
-                <arg file="${properties.playbook.bbwp.dir}/debugtoken.bar" />
-            </exec>
-
-            <replaceregexp 
-                file="${properties.playbook.bbwp.dir}/bin/bbwp.properties" 
-                match='&lt;debug_token&gt;.*&lt;\/debug_token&gt;'
-                replace='&lt;debug_token&gt;${properties.playbook.bbwp.dir}/debugtoken.bar&lt;/debug_token&gt;'
-                byline='true'/>
-        </sequential>
-    </macrodef>
-
-    <!-- CLEAN -->
-    
-    <target name="clean">
-        <delete dir="${build.dir}" />
-        <delete dir="${widget.dir}" />
-    </target>
-    
-    <!-- CLEAN DEVICE -->
-    
-    <target name="clean-device" depends="generate-cod-name">
-        <exec executable="${blackberry-deploy}" dir="." failonerror="true">
-            <arg value="-uninstallApp" />
-            <arg value="-device" />
-            <arg value="${properties.playbook.device.ip}" />
-            <arg value="-password" />
-            <arg value="${properties.playbook.device.password}" />
-            <arg value="-package" />
-            <arg file="${build.dir}/${cod.name}.bar" />
-        </exec>
-    </target>
-    
-    <!-- CLEAN SIMULATOR -->
-    
-    <target name="clean-simulator" depends="generate-cod-name">
-        <exec executable="${blackberry-deploy}" dir="." failonerror="true">
-            <arg value="-uninstallApp" />
-            <arg value="-device" />
-            <arg value="${properties.playbook.sim.ip}" />
-            <arg value="-password" />
-            <arg value="${properties.playbook.sim.password}" />
-            <arg value="-package" />
-            <arg file="${build.dir}/${cod.name}.bar" />
-        </exec>
-    </target>
-    
-        <!-- HELPER TASKS -->
-    
-    <target name="generate-cod-name">
-        <xmlproperty file="www/config.xml" prefix="config.xml" />
-        <propertyregex property="cod.name"
-                       input="${config.xml.widget.name}"
-                       regexp="(\W+)"
-                       replace=""
-                       casesensitive="false"
-                       global="true"
-                       defaultValue="${config.xml.widget.name}" />
-        <echo message="Generated name: ${cod.name}.bar" />
-    </target>
-
-    <!-- HELP -->
-
-    <target name="help">
-        <echo>
-NAME
-  ${ant.project.name}
-
-SYNOPSIS
-  ant TARGET COMMAND [-D&lt;argument&gt;=&lt;value&gt;]...
-
-DESCRIPTION
-  You can build and deploy your project to a device or simulator.
-  
-TARGETS
-  blackberry ........ Builds a cod file and deploys to a device or simulator
- 
-  playbook .......... Builds a bar file and deploys to a device or simulator
-
-COMMANDS
-  help .............. Show this help menu.
-                        ant, ant help
-
-  load-device ....... Builds and deploys project to a connected USB device.
-                        ant load-device
-
-  load-simulator .... Builds and deploys project to default simulator.
-                        ant load-simulator
-
-  build ............. Compiles and packages the project for deployment.
-                        ant build
-
-  clean ............. Remove all files from the build/ directory.
-                        ant clean
-
-  clean-device ...... Remove this project from the connected USB device.
-                        ant clean-device
-
-  clean-simulator ... Remove this project from the simulator (takes a while).
-                        ant clean-simulator
-
-GETTING STARTED
-  1. Edit project.properties
-
-  2. &lt;ant &lt;TARGET&gt; load-simulator&gt; to run the project on the simulator
-
-  3. Customize your project by editing www/config.xml
-
-  4. To run the project on a BlackBerry device, you will need to obtain
-     code signing keys from RIM. Once you have the key, a project is
-     installed by connecting a BlackBerry via USB and running
-     &lt;ant &lt;TARGET&gt; load-device&gt;.
-        </echo>
-    </target>
-</project>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/project.properties
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/project.properties b/playbook/bin/templates/project/project.properties
deleted file mode 100644
index 31a28a0..0000000
--- a/playbook/bin/templates/project/project.properties
+++ /dev/null
@@ -1,100 +0,0 @@
-# BlackBerry WebWorks Packager Directory
-#
-#   The BlackBerry WebWorks Packager (bbwp) is required for compiling and packaging
-#   BlackBerry WebWorks applications for deployment to a BlackBerry device
-#   or simulator.  The bbwp utility is installed with the standalone BlackBerry
-#   WebWorks SDK, and as part of the BlackBerry Web Plugin for Eclipse.
-#
-#   Please specify the location of the BlackBerry WebWorks Packager in your
-#   environment.
-#
-#   Typical location of bbwp for standalone BlackBerry WebWorks SDK installation:
-#     C:\Program Files (x86)\Research In Motion\BlackBerry Widget Packager
-#
-#   Typical location of bbwp for BlackBerry Web Plugin for Eclipse installation:
-#     C:\Eclipse-3.5.2\plugins\net.rim.browser.tools.wcpc_1.0.0.201003191451-126\wcpc
-#
-#   The ANT script is brittle and requires you to escape the backslashes.
-#     e.g. C:\some\path must be C:\\some\\path
-#
-#   Please remember to:
-#     - Double escape your backslahses (i.e. \ must be \\)
-#     - Do not add a trailing slash (e.g. C:\some\path)
-#
-blackberry.bbwp.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks Packager
-playbook.bbwp.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks SDK for TabletOS 2.1.0.6\\bbwp
-
-# (Optional) Simulator Directory
-#
-#   If sim.dir is not specified, the build script will use the simulator directory
-#   within the BlackBerry WebWorks Packager.
-#
-blackberry.sim.dir=C:\\Program Files\\Research In Motion\BlackBerry WebWorks Packager\\simpack\\6.0.0.227
-
-# (Optional) Simulator Binary
-#
-#   If sim.bin is not specified, the build script will attempt to use the default
-#   simulator in the simulator directory.
-#
-#blackberry.sim.bin=9700.bat
-
-# (Optional) MDS Directory
-#
-#   If mds.dir is not specified, the build script will attempt to use the MDS that
-#   is installed with the BlackBerry WebWorks Packager.
-#
-blackberry.mds.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks Packager\\mds
-
-# BlackBerry Code Signing Password
-#
-#   If you leave this field blank, then
-#   the signing tool will prompt you each time
-#
-blackberry.sigtool.password=
-
-# Playbook Code Signing Password
-#
-#   If you leave these fields blank, then
-#   signing will fail
-#
-playbook.sigtool.csk.password=
-playbook.sigtool.p12.password=
-
-# BlackBerry Simulator Password
-#
-#   If you leave this field blank, then
-#   you cannot deploy to simulator
-#
-blackberry.sim.password=
-
-# Playbook Simulator IP
-#
-#   If you leave this field blank, then
-#   you cannot deploy to simulator
-#
-playbook.sim.ip=
-
-# Playbook Simulator Password
-#
-#   If you leave this field blank, then
-#   you cannot deploy to simulator
-#
-playbook.sim.password=
-
-# Playbook Device IP
-#
-#   If you leave this field blank, then
-#   you cannot deploy to device
-#
-playbook.device.ip=
-
-# Playbook Device Password
-#
-#   If you leave this field blank, then
-#   you cannot deploy to device
-#
-playbook.device.password=
-# PlayBook Device PIN
-#
-#   Fill this value in to use debug tokens when debuging on the device
-playbook.device.pin=

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/LICENSE
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/LICENSE b/playbook/bin/templates/project/www/LICENSE
deleted file mode 100644
index 9f761f1..0000000
--- a/playbook/bin/templates/project/www/LICENSE
+++ /dev/null
@@ -1,296 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-==============================================================
-This product also include the following software:
-==============================================================
-
---------------------------------------------------------------
-jasmine from GitHub
-
-   https://github.com/pivotal/jasmine
-
-MIT-style license
-
-license available from:
-
-   https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE
-   
------------------------------
-
-Copyright (c) 2008-2011 Pivotal Labs
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
---------------------------------------------------------------
-commonjs tests from the commonjs organization at GitHub
-
-   https://github.com/commonjs/commonjs
-
-MIT-style license
-
-license available from:
-
-   https://github.com/commonjs/commonjs/blob/master/docs/license.html.markdown
-
-contributor list available from:
-
-   https://github.com/commonjs/commonjs/blob/master/docs/contributors.html.markdown
-
------------------------------
-
-Copyright 2009 Kevin Dangoor
-Copyright 2009 Ihab Awad
-Copyright 2009 Ash Berlin
-Copyright 2009 Aristid Breitkreuz
-Copyright 2009 Kevin Dangoor
-Copyright 2009 Daniel Friesen
-Copyright 2009 Wes Garland
-Copyright 2009 Kris Kowal
-Copyright 2009 Dean Landolt
-Copyright 2009 Peter Michaux
-Copyright 2009 George Moschovitis
-Copyright 2009 Michael O'Brien
-Copyright 2009 Tom Robinson
-Copyright 2009 Hannes Wallnoefer
-Copyright 2009 Mike Wilson
-Copyright 2009 Ondrej Zara
-Copyright 2009 Chris Zumbrunn
-Copyright 2009 Kris Zyp
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/NOTICE
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/NOTICE b/playbook/bin/templates/project/www/NOTICE
deleted file mode 100644
index 4e02ca4..0000000
--- a/playbook/bin/templates/project/www/NOTICE
+++ /dev/null
@@ -1,8 +0,0 @@
-Apache Cordova
-Copyright 2012 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org)
-
-This product includes software developed by
-Jasmine (https://github.com/pivotal/jasmine)

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/README.md
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/README.md b/playbook/bin/templates/project/www/README.md
deleted file mode 100644
index 61256fe..0000000
--- a/playbook/bin/templates/project/www/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# Apache Cordova Hello World Application
-
-> Simple Hello World application and test suite.
-
-## Run Application
-
-    /www/index.html
-
-## Run Tests
-
-    /www/spec.html
-
-## Versions and Tags
-
-The Hello World's version is directly tied to an Apache Cordova release.
-
-For example, Hello World `2.0.0` is compatible with Apache Cordova `2.0.0`.
-
-## How to Update
-
-Update to Apache Cordova x.x.x by:
-
-1. `www/index.html`
-    - Update `<script type="text/javascript" src="cordova-x.x.x.js"></script>`
-2. `VERSION`
-    - Update the version
-3. Commit and Tag
-    - `git commit -am "[app] Version x.x.x"`
-    - `git tag x.x.x`
-

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/VERSION
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/VERSION b/playbook/bin/templates/project/www/VERSION
deleted file mode 100644
index 38f8e88..0000000
--- a/playbook/bin/templates/project/www/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-dev

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/config.xml
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/config.xml b/playbook/bin/templates/project/www/config.xml
deleted file mode 100644
index 0dc6aaa..0000000
--- a/playbook/bin/templates/project/www/config.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
--->
-<!--
-  Widget Configuration Reference:
-    http://docs.blackberry.com/en/developers/deliverables/15274/
--->
-
-<widget xmlns="http://www.w3.org/ns/widgets"
-        xmlns:rim="http://www.blackberry.com/ns/widgets"
-	version="1.0.0.0">
-
-  <name>__NAME__</name>
-
-  <author>Your Name Here</author>
-
-  <description>
-       A sample Apache Cordova application that responds to the deviceready event.
-  </description>
-
-  <license href="http://opensource.org/licenses/alphabetical">
-  </license>
-
-  <!-- Cordova API -->
-  <feature id="blackberry.system" required="true" version="1.0.0.0" />
-  <feature id="org.apache.cordova" required="true" version="1.0.0" />
-  <feature id="blackberry.find" required="true" version="1.0.0.0" />
-  <feature id="blackberry.identity" required="true" version="1.0.0.0" />
-  <feature id="blackberry.identity.phone" required="true" version="1.0.0.0" />
-  <feature id="blackberry.pim.Address" required="true" version="1.0.0.0" />
-  <feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" />
-  <feature id="blackberry.io.file" required="true" version="1.0.0.0" />
-  <feature id="blackberry.utils" required="true" version="1.0.0.0" />
-  <feature id="blackberry.io.dir" required="true" version="1.0.0.0" />
-  <feature id="blackberry.app" required="true" version="1.0.0.0" />
-  <feature id="blackberry.app.event" required="true" version="1.0.0.0" />
-  <feature id="blackberry.system.event" required="true" version="1.0.0.0"/>
-  <feature id="blackberry.widgetcache" required="true" version="1.0.0.0"/>
-  <feature id="blackberry.media.camera" />
-  <feature id="blackberry.ui.dialog" />
-  <feature id="blackberry.connection" />
-  <feature id="blackberry.bbm.platform" />
-  <feature id="blackberry.invoke.card" />
-  <feature id="blackberry.pim.contacts" />
-  <feature id="blackberry.ui.contextmenu" />
-  <feature id="blackberry.io.filetransfer" />
-  <feature id="blackberry.io" />
-  <feature id="blackberry.invoke" />
-  <feature id="blackberry.invoked" />
-  <feature id="blackberry.push" />
-  <feature id="blackberry.media.microphone" required="true" version="1.0.0.0"/>
-
-  <!-- Cordova API -->
-  <access subdomains="true" uri="file:///store/home" />
-  <access subdomains="true" uri="file:///SDCard" />
-
-  <!-- Expose access to all URIs, including the file and http protocols -->
-  <access subdomains="true" uri="*" />
-
-  <icon rim:hover="false" src="res/icon/blackberry/icon-80.png" />
-  <icon rim:hover="true" src="res/icon/blackberry/icon-80.png" />
-
-  <rim:loadingScreen backgroundColor="#CFCFCF"
-                     foregroundImage="res/screen/blackberry/screen-225.png"
-		     onFirstLaunch="true">
-    <rim:transitionEffect type="fadeOut" />
-  </rim:loadingScreen>
-
-  <content src="index.html" />
-
-  <rim:permissions>
-    <rim:permit>use_camera</rim:permit>
-    <rim:permit>read_device_identifying_information</rim:permit>
-    <rim:permit>access_shared</rim:permit>
-    <rim:permit>read_geolocation</rim:permit>
-    <rim:permit>record_audio</rim:permit>
-    <rim:permit>access_pimdomain_contacts</rim:permit>
-  </rim:permissions>
-
-</widget>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/css/index.css
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/css/index.css b/playbook/bin/templates/project/www/css/index.css
deleted file mode 100644
index 51daa79..0000000
--- a/playbook/bin/templates/project/www/css/index.css
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-* {
-    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
-}
-
-body {
-    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
-    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
-    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
-    background-color:#E4E4E4;
-    background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
-    background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
-    background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
-    background-image:-webkit-gradient(
-        linear,
-        left top,
-        left bottom,
-        color-stop(0, #A7A7A7),
-        color-stop(0.51, #E4E4E4)
-    );
-    background-attachment:fixed;
-    font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
-    font-size:12px;
-    height:100%;
-    margin:0px;
-    padding:0px;
-    text-transform:uppercase;
-    width:100%;
-}
-
-/* Portrait layout (default) */
-.app {
-    background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
-    position:absolute;             /* position in the center of the screen */
-    left:50%;
-    top:50%;
-    height:50px;                   /* text area height */
-    width:225px;                   /* text area width */
-    text-align:center;
-    padding:180px 0px 0px 0px;     /* image height is 200px (bottom 20px are overlapped with text) */
-    margin:-115px 0px 0px -112px;  /* offset vertical: half of image height and text area height */
-                                   /* offset horizontal: half of text area width */
-}
-
-/* Landscape layout (with min-width) */
-@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
-    .app {
-        background-position:left center;
-        padding:75px 0px 75px 170px;  /* padding-top + padding-bottom + text area = image height */
-        margin:-90px 0px 0px -198px;  /* offset vertical: half of image height */
-                                      /* offset horizontal: half of image width and text area width */
-    }
-}
-
-h1 {
-    font-size:24px;
-    font-weight:normal;
-    margin:0px;
-    overflow:visible;
-    padding:0px;
-    text-align:center;
-}
-
-.event {
-    border-radius:4px;
-    -webkit-border-radius:4px;
-    color:#FFFFFF;
-    font-size:12px;
-    margin:0px 30px;
-    padding:2px 0px;
-}
-
-.event.listening {
-    background-color:#333333;
-    display:block;
-}
-
-.event.received {
-    background-color:#4B946A;
-    display:none;
-}
-
-@keyframes fade {
-    from { opacity: 1.0; }
-    50% { opacity: 0.4; }
-    to { opacity: 1.0; }
-}
- 
-@-webkit-keyframes fade {
-    from { opacity: 1.0; }
-    50% { opacity: 0.4; }
-    to { opacity: 1.0; }
-}
- 
-.blink {
-    animation:fade 3000ms infinite;
-    -webkit-animation:fade 3000ms infinite;
-}

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/img/logo.png
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/img/logo.png b/playbook/bin/templates/project/www/img/logo.png
deleted file mode 100644
index 9519e7d..0000000
Binary files a/playbook/bin/templates/project/www/img/logo.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/index.html
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/index.html b/playbook/bin/templates/project/www/index.html
deleted file mode 100644
index e84fbd7..0000000
--- a/playbook/bin/templates/project/www/index.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-     KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
--->
-<html>
-    <head>
-        <meta charset="utf-8" />
-        <meta name="format-detection" content="telephone=no" />
-        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
-        <link rel="stylesheet" type="text/css" href="css/index.css" />
-        <title>Hello World</title>
-    </head>
-    <body>
-        <div class="app">
-            <h1>Apache Cordova</h1>
-            <div id="deviceready" class="blink">
-                <p class="event listening">Connecting to Device</p>
-                <p class="event received">Device is Ready</p>
-            </div>
-        </div>
-        <script type="text/javascript" src="cordova.js"></script>
-        <script type="text/javascript" src="js/index.js"></script>
-        <script type="text/javascript">
-            app.initialize();
-        </script>
-    </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/js/index.js
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/js/index.js b/playbook/bin/templates/project/www/js/index.js
deleted file mode 100644
index 31d9064..0000000
--- a/playbook/bin/templates/project/www/js/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-var app = {
-    // Application Constructor
-    initialize: function() {
-        this.bindEvents();
-    },
-    // Bind Event Listeners
-    //
-    // Bind any events that are required on startup. Common events are:
-    // 'load', 'deviceready', 'offline', and 'online'.
-    bindEvents: function() {
-        document.addEventListener('deviceready', this.onDeviceReady, false);
-    },
-    // deviceready Event Handler
-    //
-    // The scope of 'this' is the event. In order to call the 'receivedEvent'
-    // function, we must explicity call 'app.receivedEvent(...);'
-    onDeviceReady: function() {
-        app.receivedEvent('deviceready');
-    },
-    // Update DOM on a Received Event
-    receivedEvent: function(id) {
-        var parentElement = document.getElementById(id);
-        var listeningElement = parentElement.querySelector('.listening');
-        var receivedElement = parentElement.querySelector('.received');
-
-        listeningElement.setAttribute('style', 'display:none;');
-        receivedElement.setAttribute('style', 'display:block;');
-
-        console.log('Received Event: ' + id);
-    }
-};

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/json2.js
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/json2.js b/playbook/bin/templates/project/www/json2.js
deleted file mode 100644
index c52b92a..0000000
--- a/playbook/bin/templates/project/www/json2.js
+++ /dev/null
@@ -1,482 +0,0 @@
-/*
-    http://www.JSON.org/json2.js
-    2010-03-20
-
-    Public Domain.
-
-    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-
-    See http://www.JSON.org/js.html
-
-
-    This code should be minified before deployment.
-    See http://javascript.crockford.com/jsmin.html
-
-    USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
-    NOT CONTROL.
-
-
-    This file creates a global JSON object containing two methods: stringify
-    and parse.
-
-        JSON.stringify(value, replacer, space)
-            value       any JavaScript value, usually an object or array.
-
-            replacer    an optional parameter that determines how object
-                        values are stringified for objects. It can be a
-                        function or an array of strings.
-
-            space       an optional parameter that specifies the indentation
-                        of nested structures. If it is omitted, the text will
-                        be packed without extra whitespace. If it is a number,
-                        it will specify the number of spaces to indent at each
-                        level. If it is a string (such as '\t' or '&nbsp;'),
-                        it contains the characters used to indent at each level.
-
-            This method produces a JSON text from a JavaScript value.
-
-            When an object value is found, if the object contains a toJSON
-            method, its toJSON method will be called and the result will be
-            stringified. A toJSON method does not serialize: it returns the
-            value represented by the name/value pair that should be serialized,
-            or undefined if nothing should be serialized. The toJSON method
-            will be passed the key associated with the value, and this will be
-            bound to the value
-
-            For example, this would serialize Dates as ISO strings.
-
-                Date.prototype.toJSON = function (key) {
-                    function f(n) {
-                        // Format integers to have at least two digits.
-                        return n < 10 ? '0' + n : n;
-                    }
-
-                    return this.getUTCFullYear()   + '-' +
-                         f(this.getUTCMonth() + 1) + '-' +
-                         f(this.getUTCDate())      + 'T' +
-                         f(this.getUTCHours())     + ':' +
-                         f(this.getUTCMinutes())   + ':' +
-                         f(this.getUTCSeconds())   + 'Z';
-                };
-
-            You can provide an optional replacer method. It will be passed the
-            key and value of each member, with this bound to the containing
-            object. The value that is returned from your method will be
-            serialized. If your method returns undefined, then the member will
-            be excluded from the serialization.
-
-            If the replacer parameter is an array of strings, then it will be
-            used to select the members to be serialized. It filters the results
-            such that only members with keys listed in the replacer array are
-            stringified.
-
-            Values that do not have JSON representations, such as undefined or
-            functions, will not be serialized. Such values in objects will be
-            dropped; in arrays they will be replaced with null. You can use
-            a replacer function to replace those with JSON values.
-            JSON.stringify(undefined) returns undefined.
-
-            The optional space parameter produces a stringification of the
-            value that is filled with line breaks and indentation to make it
-            easier to read.
-
-            If the space parameter is a non-empty string, then that string will
-            be used for indentation. If the space parameter is a number, then
-            the indentation will be that many spaces.
-
-            Example:
-
-            text = JSON.stringify(['e', {pluribus: 'unum'}]);
-            // text is '["e",{"pluribus":"unum"}]'
-
-
-            text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
-            // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
-
-            text = JSON.stringify([new Date()], function (key, value) {
-                return this[key] instanceof Date ?
-                    'Date(' + this[key] + ')' : value;
-            });
-            // text is '["Date(---current time---)"]'
-
-
-        JSON.parse(text, reviver)
-            This method parses a JSON text to produce an object or array.
-            It can throw a SyntaxError exception.
-
-            The optional reviver parameter is a function that can filter and
-            transform the results. It receives each of the keys and values,
-            and its return value is used instead of the original value.
-            If it returns what it received, then the structure is not modified.
-            If it returns undefined then the member is deleted.
-
-            Example:
-
-            // Parse the text. Values that look like ISO date strings will
-            // be converted to Date objects.
-
-            myData = JSON.parse(text, function (key, value) {
-                var a;
-                if (typeof value === 'string') {
-                    a =
-/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
-                    if (a) {
-                        return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
-                            +a[5], +a[6]));
-                    }
-                }
-                return value;
-            });
-
-            myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
-                var d;
-                if (typeof value === 'string' &&
-                        value.slice(0, 5) === 'Date(' &&
-                        value.slice(-1) === ')') {
-                    d = new Date(value.slice(5, -1));
-                    if (d) {
-                        return d;
-                    }
-                }
-                return value;
-            });
-
-
-    This is a reference implementation. You are free to copy, modify, or
-    redistribute.
-*/
-
-/*jslint evil: true, strict: false */
-
-/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
-    call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
-    getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
-    lastIndex, length, parse, prototype, push, replace, slice, stringify,
-    test, toJSON, toString, valueOf
-*/
-
-
-// Create a JSON object only if one does not already exist. We create the
-// methods in a closure to avoid creating global variables.
-
-if (!this.JSON) {
-    this.JSON = {};
-}
-
-(function () {
-
-    function f(n) {
-        // Format integers to have at least two digits.
-        return n < 10 ? '0' + n : n;
-    }
-
-    if (typeof Date.prototype.toJSON !== 'function') {
-
-        Date.prototype.toJSON = function (key) {
-
-            return isFinite(this.valueOf()) ?
-                   this.getUTCFullYear()   + '-' +
-                 f(this.getUTCMonth() + 1) + '-' +
-                 f(this.getUTCDate())      + 'T' +
-                 f(this.getUTCHours())     + ':' +
-                 f(this.getUTCMinutes())   + ':' +
-                 f(this.getUTCSeconds())   + 'Z' : null;
-        };
-
-        String.prototype.toJSON =
-        Number.prototype.toJSON =
-        Boolean.prototype.toJSON = function (key) {
-            return this.valueOf();
-        };
-    }
-
-    var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
-        escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
-        gap,
-        indent,
-        meta = {    // table of character substitutions
-            '\b': '\\b',
-            '\t': '\\t',
-            '\n': '\\n',
-            '\f': '\\f',
-            '\r': '\\r',
-            '"' : '\\"',
-            '\\': '\\\\'
-        },
-        rep;
-
-
-    function quote(string) {
-
-// If the string contains no control characters, no quote characters, and no
-// backslash characters, then we can safely slap some quotes around it.
-// Otherwise we must also replace the offending characters with safe escape
-// sequences.
-
-        escapable.lastIndex = 0;
-        return escapable.test(string) ?
-            '"' + string.replace(escapable, function (a) {
-                var c = meta[a];
-                return typeof c === 'string' ? c :
-                    '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
-            }) + '"' :
-            '"' + string + '"';
-    }
-
-
-    function str(key, holder) {
-
-// Produce a string from holder[key].
-
-        var i,          // The loop counter.
-            k,          // The member key.
-            v,          // The member value.
-            length,
-            mind = gap,
-            partial,
-            value = holder[key];
-
-// If the value has a toJSON method, call it to obtain a replacement value.
-
-        if (value && typeof value === 'object' &&
-                typeof value.toJSON === 'function') {
-            value = value.toJSON(key);
-        }
-
-// If we were called with a replacer function, then call the replacer to
-// obtain a replacement value.
-
-        if (typeof rep === 'function') {
-            value = rep.call(holder, key, value);
-        }
-
-// What happens next depends on the value's type.
-
-        switch (typeof value) {
-        case 'string':
-            return quote(value);
-
-        case 'number':
-
-// JSON numbers must be finite. Encode non-finite numbers as null.
-
-            return isFinite(value) ? String(value) : 'null';
-
-        case 'boolean':
-        case 'null':
-
-// If the value is a boolean or null, convert it to a string. Note:
-// typeof null does not produce 'null'. The case is included here in
-// the remote chance that this gets fixed someday.
-
-            return String(value);
-
-// If the type is 'object', we might be dealing with an object or an array or
-// null.
-
-        case 'object':
-
-// Due to a specification blunder in ECMAScript, typeof null is 'object',
-// so watch out for that case.
-
-            if (!value) {
-                return 'null';
-            }
-
-// Make an array to hold the partial results of stringifying this object value.
-
-            gap += indent;
-            partial = [];
-
-// Is the value an array?
-
-            if (Object.prototype.toString.apply(value) === '[object Array]') {
-
-// The value is an array. Stringify every element. Use null as a placeholder
-// for non-JSON values.
-
-                length = value.length;
-                for (i = 0; i < length; i += 1) {
-                    partial[i] = str(i, value) || 'null';
-                }
-
-// Join all of the elements together, separated with commas, and wrap them in
-// brackets.
-
-                v = partial.length === 0 ? '[]' :
-                    gap ? '[\n' + gap +
-                            partial.join(',\n' + gap) + '\n' +
-                                mind + ']' :
-                          '[' + partial.join(',') + ']';
-                gap = mind;
-                return v;
-            }
-
-// If the replacer is an array, use it to select the members to be stringified.
-
-            if (rep && typeof rep === 'object') {
-                length = rep.length;
-                for (i = 0; i < length; i += 1) {
-                    k = rep[i];
-                    if (typeof k === 'string') {
-                        v = str(k, value);
-                        if (v) {
-                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
-                        }
-                    }
-                }
-            } else {
-
-// Otherwise, iterate through all of the keys in the object.
-
-                for (k in value) {
-                    if (Object.hasOwnProperty.call(value, k)) {
-                        v = str(k, value);
-                        if (v) {
-                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
-                        }
-                    }
-                }
-            }
-
-// Join all of the member texts together, separated with commas,
-// and wrap them in braces.
-
-            v = partial.length === 0 ? '{}' :
-                gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
-                        mind + '}' : '{' + partial.join(',') + '}';
-            gap = mind;
-            return v;
-        }
-    }
-
-// If the JSON object does not yet have a stringify method, give it one.
-
-    if (typeof JSON.stringify !== 'function') {
-        JSON.stringify = function (value, replacer, space) {
-
-// The stringify method takes a value and an optional replacer, and an optional
-// space parameter, and returns a JSON text. The replacer can be a function
-// that can replace values, or an array of strings that will select the keys.
-// A default replacer method can be provided. Use of the space parameter can
-// produce text that is more easily readable.
-
-            var i;
-            gap = '';
-            indent = '';
-
-// If the space parameter is a number, make an indent string containing that
-// many spaces.
-
-            if (typeof space === 'number') {
-                for (i = 0; i < space; i += 1) {
-                    indent += ' ';
-                }
-
-// If the space parameter is a string, it will be used as the indent string.
-
-            } else if (typeof space === 'string') {
-                indent = space;
-            }
-
-// If there is a replacer, it must be a function or an array.
-// Otherwise, throw an error.
-
-            rep = replacer;
-            if (replacer && typeof replacer !== 'function' &&
-                    (typeof replacer !== 'object' ||
-                     typeof replacer.length !== 'number')) {
-                throw new Error('JSON.stringify');
-            }
-
-// Make a fake root object containing our value under the key of ''.
-// Return the result of stringifying the value.
-
-            return str('', {'': value});
-        };
-    }
-
-
-// If the JSON object does not yet have a parse method, give it one.
-
-    if (typeof JSON.parse !== 'function') {
-        JSON.parse = function (text, reviver) {
-
-// The parse method takes a text and an optional reviver function, and returns
-// a JavaScript value if the text is a valid JSON text.
-
-            var j;
-
-            function walk(holder, key) {
-
-// The walk method is used to recursively walk the resulting structure so
-// that modifications can be made.
-
-                var k, v, value = holder[key];
-                if (value && typeof value === 'object') {
-                    for (k in value) {
-                        if (Object.hasOwnProperty.call(value, k)) {
-                            v = walk(value, k);
-                            if (v !== undefined) {
-                                value[k] = v;
-                            } else {
-                                delete value[k];
-                            }
-                        }
-                    }
-                }
-                return reviver.call(holder, key, value);
-            }
-
-
-// Parsing happens in four stages. In the first stage, we replace certain
-// Unicode characters with escape sequences. JavaScript handles many characters
-// incorrectly, either silently deleting them, or treating them as line endings.
-
-            text = String(text);
-            cx.lastIndex = 0;
-            if (cx.test(text)) {
-                text = text.replace(cx, function (a) {
-                    return '\\u' +
-                        ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
-                });
-            }
-
-// In the second stage, we run the text against regular expressions that look
-// for non-JSON patterns. We are especially concerned with '()' and 'new'
-// because they can cause invocation, and '=' because it can cause mutation.
-// But just to be safe, we want to reject all unexpected forms.
-
-// We split the second stage into 4 regexp operations in order to work around
-// crippling inefficiencies in IE's and Safari's regexp engines. First we
-// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
-// replace all simple value tokens with ']' characters. Third, we delete all
-// open brackets that follow a colon or comma or that begin the text. Finally,
-// we look to see that the remaining characters are only whitespace or ']' or
-// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
-
-            if (/^[\],:{}\s]*$/.
-test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').
-replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').
-replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
-
-// In the third stage we use the eval function to compile the text into a
-// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
-// in JavaScript: it can begin a block or an object literal. We wrap the text
-// in parens to eliminate the ambiguity.
-
-                j = eval('(' + text + ')');
-
-// In the optional fourth stage, we recursively walk the new structure, passing
-// each name/value pair to a reviver function for possible transformation.
-
-                return typeof reviver === 'function' ?
-                    walk({'': j}, '') : j;
-            }
-
-// If the text is not JSON parseable, then a SyntaxError is thrown.
-
-            throw new SyntaxError('JSON.parse');
-        };
-    }
-}());
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/plugins.xml
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/plugins.xml b/playbook/bin/templates/project/www/plugins.xml
deleted file mode 100644
index 3d41236..0000000
--- a/playbook/bin/templates/project/www/plugins.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- 
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
--->
-<plugins>
-  <plugin name="App"            value="org.apache.cordova.app.App"/>
-  <plugin name="Device"         value="org.apache.cordova.device.Device"/>
-  <plugin name="Camera"         value="org.apache.cordova.camera.Camera"/>
-  <plugin name="NetworkStatus"  value="org.apache.cordova.network.Network"/>
-  <plugin name="Notification"   value="org.apache.cordova.notification.Notification"/>
-  <plugin name="Accelerometer"  value="org.apache.cordova.accelerometer.Accelerometer"/>
-  <plugin name="Geolocation"    value="org.apache.cordova.geolocation.Geolocation"/>
-  <plugin name="File"           value="org.apache.cordova.file.FileManager"/>
-  <plugin name="FileTransfer"   value="org.apache.cordova.http.FileTransfer"/>
-  <plugin name="Contacts"       value="org.apache.cordova.pim.Contact"/>
-  <plugin name="Capture"        value="org.apache.cordova.capture.MediaCapture"/>
-  <plugin name="Battery"        value="org.apache.cordova.battery.Battery"/>
-  <plugin name="Media"          value="org.apache.cordova.media.Media"/>
-  <plugin name="Globalization"  value="org.apache.cordova.globalization.Globalization"/>
-</plugins>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/icon/blackberry/icon-80.png
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/icon/blackberry/icon-80.png b/playbook/bin/templates/project/www/res/icon/blackberry/icon-80.png
deleted file mode 100644
index f86a27a..0000000
Binary files a/playbook/bin/templates/project/www/res/icon/blackberry/icon-80.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar.js.gz
deleted file mode 100644
index 3c1fecd..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz
deleted file mode 100644
index 677a6ad..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_AE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz
deleted file mode 100644
index 602c22c..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_BH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz
deleted file mode 100644
index 485b9a2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_DZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz
deleted file mode 100644
index dfc2045..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_EG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz
deleted file mode 100644
index 9e7c5ae..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_IQ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz
deleted file mode 100644
index 72d26ca..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_JO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz
deleted file mode 100644
index 1dde592..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_KW.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz
deleted file mode 100644
index 640e8be..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_LB.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz
deleted file mode 100644
index b7beb36..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_LY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz
deleted file mode 100644
index 3eb49f9..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_MA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz
deleted file mode 100644
index b68cf81..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_OM.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz
deleted file mode 100644
index d2583d4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_QA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz
deleted file mode 100644
index aa15f88..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_SA.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz
deleted file mode 100644
index 116f0e2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_SD.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz
deleted file mode 100644
index 65aaeb0..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_SY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz
deleted file mode 100644
index 853cc9e..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_TN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz
deleted file mode 100644
index 841ee63..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ar_YE.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/be.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/be.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/be.js.gz
deleted file mode 100644
index a0a64b8..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/be.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/be_BY.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/be_BY.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/be_BY.js.gz
deleted file mode 100644
index fec5f32..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/be_BY.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/bg.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/bg.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/bg.js.gz
deleted file mode 100644
index 4f816d8..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/bg.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz
deleted file mode 100644
index 9cc5ec3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/bg_BG.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz
deleted file mode 100644
index 3f40ba4..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/bn_IN.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ca.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ca.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ca.js.gz
deleted file mode 100644
index 32e04c5..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ca.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz
deleted file mode 100644
index 93d8ec3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ca_ES.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz
deleted file mode 100644
index 69be9b1..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/ca_ES_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/cs.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/cs.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/cs.js.gz
deleted file mode 100644
index 28dd3ee..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/cs.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz
deleted file mode 100644
index 95d0e32..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz
deleted file mode 100644
index 9d821d6..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz
deleted file mode 100644
index 681c4b3..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/cs_CZ_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/da.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/da.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/da.js.gz
deleted file mode 100644
index ba270ad..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/da.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/da_DK.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/da_DK.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/da_DK.js.gz
deleted file mode 100644
index 0b9dbe2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/da_DK.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz
deleted file mode 100644
index 8d52b6a..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/da_DK_EURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de.js.gz
deleted file mode 100644
index a65adda..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de_AT.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de_AT.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de_AT.js.gz
deleted file mode 100644
index fb693c2..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de_AT.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz
deleted file mode 100644
index e61b9d9..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de_AT_PREEURO.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de_CH.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de_CH.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de_CH.js.gz
deleted file mode 100644
index 1b906e7..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de_CH.js.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/res/resourceBundles/de_DE.js.gz
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/res/resourceBundles/de_DE.js.gz b/playbook/bin/templates/project/www/res/resourceBundles/de_DE.js.gz
deleted file mode 100644
index dc73b68..0000000
Binary files a/playbook/bin/templates/project/www/res/resourceBundles/de_DE.js.gz and /dev/null differ


[26/50] [abbrv] webworks commit: [BlackBerry10] Fixing a bug with debugtoken generation without prompt

Posted by je...@apache.org.
[BlackBerry10] Fixing a bug with debugtoken generation without prompt

  Reviewed By: James Keshavarzi <jk...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/16ef0a05
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/16ef0a05
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/16ef0a05

Branch: refs/heads/3.1.x
Commit: 16ef0a057cb5c3689a33e47007f58e7e68e03cc2
Parents: 011f842
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Fri Aug 30 11:06:38 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Fri Aug 30 11:09:08 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/16ef0a05/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index 1375859..a2d1b45 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -255,7 +255,7 @@ function handleDebugToken(deployTarget, allDone) {
                             done(err, result);
                         });
                     } else {
-                        done(program.keystorepass);
+                        done(null, program.keystorepass);
                     }
                 },
                 debugTokenHelper.createToken.bind(this, properties, "all")


[37/50] [abbrv] webworks commit: [CB-4762] Added a fix to the run script to error out when the IP is not found

Posted by je...@apache.org.
[CB-4762] Added a fix to the run script to error out when the IP is not found

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Daniel Audino <da...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/fbe4de9c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/fbe4de9c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/fbe4de9c

Branch: refs/heads/3.1.x
Commit: fbe4de9c1f4f91fe95106177696bc73decbc8ade
Parents: 5334f10
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Mon Sep 9 11:16:37 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Sep 16 15:28:59 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/run | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/fbe4de9c/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index 3aa386d..e07965c 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -109,7 +109,7 @@ function getTargetName (done) {
             {
                 ip: function (done) {
                     ipFinder(function (ip) {
-                        done(null, ip);
+                        done(ip ? null : "No connected BlackBerry 10 " + targetType + " found", ip);
                     });
                 },
                 devicePass: function (done) {
@@ -127,8 +127,6 @@ function getTargetName (done) {
             function (err, results) {
                 if (err) {
                     done(err);
-                } else if (!results.ip) {
-                    done("No connected BlackBerry 10 " + targetType + " found");
                 } else {
                     program.devicepass = results.devicePass;
                     checkDeviceInfo(results.ip, targetType, results.devicePass, done);


[09/50] [abbrv] webworks commit: [CB-4076] Added support for the origin attribute in config.xml

Posted by je...@apache.org.
[CB-4076] Added support for the origin attribute in config.xml

Reviewed by Jeffrey Heifetz <jh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/19267e2e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/19267e2e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/19267e2e

Branch: refs/heads/3.1.x
Commit: 19267e2ea12be1265d2268cc29a6e9e9bc1165f4
Parents: 3a53fb7
Author: Kristoffer Flores <kf...@blackberry.com>
Authored: Thu Jul 11 11:19:48 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Aug 6 11:09:35 2013 -0400

----------------------------------------------------------------------
 .../project/cordova/lib/config-parser.js        | 36 ++++++++++---
 .../templates/project/cordova/lib/localize.js   |  5 +-
 blackberry10/bin/test/cordova/unit/config.xml   |  2 +-
 .../bin/test/cordova/unit/configUri.xml         | 53 ++++++++++++++++++
 .../bin/test/cordova/unit/configUriOrigin.xml   | 57 ++++++++++++++++++++
 .../test/cordova/unit/spec/lib/config-parser.js | 45 ++++++++++++----
 .../cordova/unit/spec/lib/test-utilities.js     | 30 ++++++-----
 7 files changed, 195 insertions(+), 33 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19267e2e/blackberry10/bin/templates/project/cordova/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/config-parser.js b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
index 0e3d9e9..0cb06e5 100644
--- a/blackberry10/bin/templates/project/cordova/lib/config-parser.js
+++ b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
@@ -97,9 +97,9 @@ function processFeatures(featuresArray, widgetConfig, processPredefinedFeatures)
     return features;
 }
 
-function createAccessListObj(uri, allowSubDomain) {
+function createAccessListObj(uriOrOrigin, allowSubDomain) {
     return {
-        uri: uri,
+        uri: uriOrOrigin,
         allowSubDomain: allowSubDomain
     };
 }
@@ -124,7 +124,11 @@ function processBuildID(widgetConfig, session) {
 }
 
 function processWidgetData(data, widgetConfig, session) {
-    var attribs, featureArray, header;
+    var attribs,
+        featureArray,
+        uriExist,
+        originExist,
+        header;
 
     if (data["@"]) {
         widgetConfig.version = data["@"].version;
@@ -169,19 +173,37 @@ function processWidgetData(data, widgetConfig, session) {
             data.access = [data.access];
         }
 
+        //check if uri and origin attributes are used
+        data.access.forEach(function (accessElement, accessIndex) {
+            attribs = accessElement["@"];
+
+            if (attribs) {
+                if (attribs.uri) {
+                    uriExist = true;
+                }
+                if (attribs.origin) {
+                    originExist = true;
+                }
+            }
+        });
+        if (uriExist === true && originExist === true) {
+            logger.warn(localize.translate("WARNING_URI_AND_ORIGIN_FOUND_IN_CONFIG"));
+        }
+
         data.access.forEach(function (accessElement) {
             attribs = accessElement["@"];
 
             if (attribs) {
-                if (attribs.uri === "*") {
+                if (attribs.uri === "*" || attribs.origin === "*") {
                     if (accessElement.feature) {
-                        throw localize.translate("EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI");
+                        throw localize.translate("EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI_OR_ORIGIN");
                     }
-
                     widgetConfig.hasMultiAccess = true;
                 } else {
                     attribs.subdomains = packagerUtils.toBoolean(attribs.subdomains);
-                    widgetConfig.accessList.push(createAccessListObj(attribs.uri, attribs.subdomains));
+                    if (attribs.uri || attribs.origin) {
+                        widgetConfig.accessList.push(createAccessListObj(attribs.uri || attribs.origin, attribs.subdomains));
+                    }
                 }
             }
         });

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19267e2e/blackberry10/bin/templates/project/cordova/lib/localize.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/localize.js b/blackberry10/bin/templates/project/cordova/lib/localize.js
index 57316c2..d51629a 100755
--- a/blackberry10/bin/templates/project/cordova/lib/localize.js
+++ b/blackberry10/bin/templates/project/cordova/lib/localize.js
@@ -82,12 +82,15 @@ var Localize = require("localize"),
         "EXCEPTION_BUFFER_ERROR": {
             "en": "ERROR in bufferToString(): Buffer length must be even"
         },
-        "EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI": {
+        "EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI_OR_ORIGIN": {
             "en": "Invalid config.xml - no <feature> tags are allowed for this <access> element"
         },
         "EXCEPTION_INVALID_ACCESS_URI_NO_PROTOCOL": {
             "en": "Invalid URI attribute in the access element - protocol required($[1])"
         },
+        "WARNING_URI_AND_ORIGIN_FOUND_IN_CONFIG": {
+            "en": "Invalid config.xml - <access> tags should have one of 'uri' or 'origin' attributes. 'origin' attribute will be ignored"
+        },
         "EXCEPTION_INVALID_ACCESS_URI_NO_URN": {
             "en": "Failed to parse the URI attribute in the access element($[1])"
         },

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19267e2e/blackberry10/bin/test/cordova/unit/config.xml
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/config.xml b/blackberry10/bin/test/cordova/unit/config.xml
index 8650a90..9f42675 100644
--- a/blackberry10/bin/test/cordova/unit/config.xml
+++ b/blackberry10/bin/test/cordova/unit/config.xml
@@ -28,7 +28,7 @@
         <param name="popupBlocker" value="enable" />
     </feature>
     <feature id="blackberry.system" required="true" version="1.0.0.3"/>
-    <access uri="http://www.somedomain1.com" subdomains="true">
+    <access origin="http://www.somedomain1.com" subdomains="true">
         <feature id="blackberry.app" required="true" version="1.0.0.0"/>
         <feature id="blackberry.app.event" required="false" version="2.0.0.0"/>
     </access>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19267e2e/blackberry10/bin/test/cordova/unit/configUri.xml
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/configUri.xml b/blackberry10/bin/test/cordova/unit/configUri.xml
new file mode 100644
index 0000000..8650a90
--- /dev/null
+++ b/blackberry10/bin/test/cordova/unit/configUri.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<widget xmlns=" http://www.w3.org/ns/widgets"
+        xmlns:rim="http://www.blackberry.com/ns/widgets"
+        version="1.0.0"
+        id="My WidgetId"
+        rim:header="RIM-Widget:rim/widget"
+        rim:userAgent="A Test-User-Agent/(Blackberry-Agent)">
+    <name>Demo</name>
+    <content src="local:///startPage.html"/>
+    <author rim:copyright="No Copyright"
+            href="http://www.rim.com/"
+            email = "author@rim.com">Research In Motion Ltd.</author>
+    <description>This app does everything.</description>
+    <license href="http://www.apache.org/licenses/LICENSE-2.0">My License</license>
+    <icon src="test.png" />
+    <rim:permissions>
+        <rim:permit>access_shared</rim:permit>
+        <rim:permit>read_geolocation</rim:permit>
+        <rim:permit>use_camera</rim:permit>
+    </rim:permissions>
+    <feature id="blackberry.app.orientation">
+        <param name="mode" value="portrait" />
+        <param name="other" value="portrait" />
+      </feature>
+    <feature id="blackberry.app" required="true" version="1.0.0.0">
+        <param name="childBrowser" value="disable" />
+        <param name="websecurity" value="disable" />
+        <param name="popupBlocker" value="enable" />
+    </feature>
+    <feature id="blackberry.system" required="true" version="1.0.0.3"/>
+    <access uri="http://www.somedomain1.com" subdomains="true">
+        <feature id="blackberry.app" required="true" version="1.0.0.0"/>
+        <feature id="blackberry.app.event" required="false" version="2.0.0.0"/>
+    </access>
+    <rim:invoke-target id="com.domain.subdomain.appname.app1">
+	<type>APPLICATION</type>
+        <require-source-permissions>invoke_accross_perimeters,access_shared</require-source-permissions>
+        <filter>
+            <action>bb.action.OPEN</action>
+            <action>bb.action.SET</action>
+            <action>bb.action.VIEW</action>
+            <mime-type>image/*</mime-type>
+            <mime-type>text/*</mime-type>
+            <property var="uris" value="ftp://" />
+            <property var="uris" value="http://" />
+            <property var="uris" value="https://" />
+            <property var="exts" value="jpg" />
+            <property var="exts" value="png" />
+            <property var="exts" value="txt" />
+            <property var="exts" value="doc" />
+        </filter>
+    </rim:invoke-target>
+</widget>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19267e2e/blackberry10/bin/test/cordova/unit/configUriOrigin.xml
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/configUriOrigin.xml b/blackberry10/bin/test/cordova/unit/configUriOrigin.xml
new file mode 100644
index 0000000..5267c40
--- /dev/null
+++ b/blackberry10/bin/test/cordova/unit/configUriOrigin.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<widget xmlns=" http://www.w3.org/ns/widgets"
+        xmlns:rim="http://www.blackberry.com/ns/widgets"
+        version="1.0.0"
+        id="My WidgetId"
+        rim:header="RIM-Widget:rim/widget"
+        rim:userAgent="A Test-User-Agent/(Blackberry-Agent)">
+    <name>Demo</name>
+    <content src="local:///startPage.html"/>
+    <author rim:copyright="No Copyright"
+            href="http://www.rim.com/"
+            email = "author@rim.com">Research In Motion Ltd.</author>
+    <description>This app does everything.</description>
+    <license href="http://www.apache.org/licenses/LICENSE-2.0">My License</license>
+    <icon src="test.png" />
+    <rim:permissions>
+        <rim:permit>access_shared</rim:permit>
+        <rim:permit>read_geolocation</rim:permit>
+        <rim:permit>use_camera</rim:permit>
+    </rim:permissions>
+    <feature id="blackberry.app.orientation">
+        <param name="mode" value="portrait" />
+        <param name="other" value="portrait" />
+      </feature>
+    <feature id="blackberry.app" required="true" version="1.0.0.0">
+        <param name="childBrowser" value="disable" />
+        <param name="websecurity" value="disable" />
+        <param name="popupBlocker" value="enable" />
+    </feature>
+    <feature id="blackberry.system" required="true" version="1.0.0.3"/>
+    <access uri="http://www.somedomain1.com" subdomains="true">
+        <feature id="blackberry.app" required="true" version="1.0.0.0"/>
+        <feature id="blackberry.app.event" required="false" version="2.0.0.0"/>
+    </access>
+    <access origin="http://www.somedomain1.com" subdomains="true">
+        <feature id="blackberry.app" required="true" version="1.0.0.0"/>
+        <feature id="blackberry.app.event" required="false" version="2.0.0.0"/>
+    </access>
+    <rim:invoke-target id="com.domain.subdomain.appname.app1">
+	<type>APPLICATION</type>
+        <require-source-permissions>invoke_accross_perimeters,access_shared</require-source-permissions>
+        <filter>
+            <action>bb.action.OPEN</action>
+            <action>bb.action.SET</action>
+            <action>bb.action.VIEW</action>
+            <mime-type>image/*</mime-type>
+            <mime-type>text/*</mime-type>
+            <property var="uris" value="ftp://" />
+            <property var="uris" value="http://" />
+            <property var="uris" value="https://" />
+            <property var="exts" value="jpg" />
+            <property var="exts" value="png" />
+            <property var="exts" value="txt" />
+            <property var="exts" value="doc" />
+        </filter>
+    </rim:invoke-target>
+</widget>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19267e2e/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
index 41775f4..32cacf0 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
@@ -12,6 +12,8 @@ var testData = require("./test-data"),
     fs = require("fs"),
     session = testData.session,
     configPath = path.resolve("bin/test/cordova/unit/config.xml"),
+    configPathUri = path.resolve("bin/test/cordova/unit/configUri.xml"),
+    configPathUriOrigin = path.resolve("bin/test/cordova/unit/configUriOrigin.xml"),
     configBadPath = path.resolve("test2/config.xml"),
     configBareMinimumPath = path.resolve("bin/test/cordova/unit/config-bare-minimum.xml"),
     mockParsing = testUtilities.mockParsing;
@@ -56,12 +58,11 @@ describe("config parser", function () {
         var localAccessList,
             accessListFeature;
 
-        configParser.parse(configPath, session, function (configObj) {
+        configParser.parse(configPathUri, session, function (configObj) {
             //validate WIDGET_LOCAL accessList
-            localAccessList = testUtilities.getAccessListForUri(configObj.accessList, "WIDGET_LOCAL");
+            localAccessList = testUtilities.getAccessList(configObj.accessList, "WIDGET_LOCAL");
             expect(localAccessList).toBeDefined();
             expect(localAccessList.uri).toEqual("WIDGET_LOCAL");
-            expect(localAccessList.allowSubDomain).toEqual(true);
         });
     });
 
@@ -69,9 +70,9 @@ describe("config parser", function () {
         var customAccessList,
             accessListFeature;
 
-        configParser.parse(configPath, session, function (configObj) {
+        configParser.parse(configPathUri, session, function (configObj) {
             //validate http://www.somedomain1.com accessList
-            customAccessList = testUtilities.getAccessListForUri(configObj.accessList, "http://www.somedomain1.com");
+            customAccessList = testUtilities.getAccessList(configObj.accessList, "http://www.somedomain1.com");
             expect(customAccessList).toBeDefined();
             expect(customAccessList.uri).toEqual("http://www.somedomain1.com");
             expect(customAccessList.allowSubDomain).toEqual(true);
@@ -101,7 +102,6 @@ describe("config parser", function () {
         data["@"].id = undefined;
 
         mockParsing(data);
-
         //Should throw an EXCEPTION_INVALID_ID error
         expect(function () {
             configParser.parse(configPath, session, {});
@@ -134,7 +134,7 @@ describe("config parser", function () {
     it("Fails when no name was provided - multiple elements", function () {
         var data = testUtilities.cloneObj(testData.xml2jsConfig);
         data.name = ["",
-            { '#': 'API Smoke Test-FR', '@': { 'xml:lang': 'fr' } },
+            { '#': 'API Smoke Test-FR', '@': { 'xml:lang': 'fr' } }
         ];
 
         mockParsing(data);
@@ -147,7 +147,7 @@ describe("config parser", function () {
     it("Fails when localized name was provided but empty", function () {
         var data = testUtilities.cloneObj(testData.xml2jsConfig);
         data.name = ["API Smoke Test",
-            { '#': '', '@': { 'xml:lang': 'fr' } },
+            { '#': '', '@': { 'xml:lang': 'fr' } }
         ];
 
         mockParsing(data);
@@ -207,7 +207,7 @@ describe("config parser", function () {
     it("Fails when localized name was provided but empty", function () {
         var data = testUtilities.cloneObj(testData.xml2jsConfig);
         data.name = ['API Smoke Test',
-            { '#': '', '@': { 'xml:lang': 'fr' } },
+            { '#': '', '@': { 'xml:lang': 'fr' } }
         ];
 
         mockParsing(data);
@@ -454,6 +454,11 @@ describe("config parser", function () {
         }).not.toThrow();
     });
 
+    it("throws a warning when both uri and origin attributes exist", function () {
+        configParser.parse(configPathUriOrigin, session, function (configObj) {});
+        expect(logger.warn).toHaveBeenCalled();
+    });
+
     it("multi access should be false if no access", function () {
         var data = testUtilities.cloneObj(testData.xml2jsConfig);
 
@@ -487,6 +492,24 @@ describe("config parser", function () {
         });
     });
 
+    it("multi access should be false if no origin is equal to *", function () {
+        var data = testUtilities.cloneObj(testData.xml2jsConfig);
+        data['access'] = {"@" : {"origin" : "http://www.somedomain1.com"}};
+
+        mockParsing(data);
+
+        configParser.parse(configPath, session, function (configObj) {
+            //hasMultiAccess was set to false
+            expect(configObj.hasMultiAccess).toEqual(false);
+            expect(configObj.accessList).toEqual([ {
+                origin : 'WIDGET_LOCAL',
+                allowSubDomain : true
+            }, {
+                "origin" : "http://www.somedomain1.com"
+            } ]);
+        });
+    });
+
     it("multi access should be true with the uri being equal to *", function () {
         var data = testUtilities.cloneObj(testData.xml2jsConfig);
         data['access'] = {"@" : {"uri" : "*"}};
@@ -529,7 +552,7 @@ describe("config parser", function () {
 
         expect(function () {
             configParser.parse(configPath, session, function (configObj) {});
-        }).toThrow(localize.translate("EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI"));
+        }).toThrow(localize.translate("EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI_OR_ORIGIN"));
     });
 
     it("should fail when multi features are defined with the uri being equal to *", function () {
@@ -540,7 +563,7 @@ describe("config parser", function () {
 
         expect(function () {
             configParser.parse(configPath, session, function (configObj) {});
-        }).toThrow(localize.translate("EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI"));
+        }).toThrow(localize.translate("EXCEPTION_FEATURE_DEFINED_WITH_WILDCARD_ACCESS_URI_OR_ORIGIN"));
     });
 
     it("should fail when the access uri attribute does not specify a protocol", function () {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/19267e2e/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js b/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
index 6f0dbf9..80867a7 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/test-utilities.js
@@ -9,16 +9,20 @@ function getObjectByProperty(array, propertyName, propertyValue) {
 }
 
 module.exports = {
-    getAccessListForUri: function (accessListArray, uriValue) {
-        return getObjectByProperty(accessListArray, "uri", uriValue);
+    getAccessList: function (accessListArray, value) {
+        if (accessListArray[0].hasOwnProperty("uri") === true) {
+            return getObjectByProperty(accessListArray, "uri", value);
+        } else {
+            return getObjectByProperty(accessListArray, "origin", value);
+        }
     },
-    
+
     getFeatureByID: function (featureArray, featureID) {
         return getObjectByProperty(featureArray, "id", featureID);
     },
-    
+
     mockResolve: function (path) {
-        //Mock resolve because of a weird issue where resolve would return an 
+        //Mock resolve because of a weird issue where resolve would return an
         //invalid path on Mac if it cannot find the directory (c:/ doesnt exist on mac)
         spyOn(path, "resolve").andCallFake(function (to) {
             if (arguments.length === 2) {
@@ -29,20 +33,20 @@ module.exports = {
             }
         });
     },
-    
+
     cloneObj: function (obj) {
         var newObj = (obj instanceof Array) ? [] : {}, i;
-        
+
         for (i in obj) {
             if (i === 'clone') continue;
-            
+
             if (obj[i] && typeof obj[i] === "object") {
                 newObj[i] = this.cloneObj(obj[i]);
             } else {
                 newObj[i] = obj[i];
             }
         }
-    
+
         return newObj;
     },
 
@@ -58,12 +62,12 @@ module.exports = {
 
 describe("test-utilities", function () {
     var testUtilities = require("./test-utilities");
-    
+
     it("can clone objects using cloneObj", function () {
         var obj = {
                 A: "A",
                 B: "B",
-                C: { 
+                C: {
                     CA: "CA",
                     CB: "CB",
                     CC: {
@@ -72,10 +76,10 @@ describe("test-utilities", function () {
                 }
             },
             clonedObj = testUtilities.cloneObj(obj);
-        
+
         //not the same object
         expect(clonedObj).not.toBe(obj);
-        
+
         //has the same data
         expect(clonedObj).toEqual(obj);
     });


[34/50] [abbrv] webworks commit: [CB-4732] Re-writing build script to use async

Posted by je...@apache.org.
[CB-4732] Re-writing build script to use async

Added --query flag to request keystorepass

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/42ed4bf8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/42ed4bf8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/42ed4bf8

Branch: refs/heads/3.1.x
Commit: 42ed4bf892b306131417dc8e425b37a8cc9ef8ca
Parents: 4baa515
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Mon Sep 9 16:11:03 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Sep 13 08:56:00 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/build     | 151 +++++++++----------
 1 file changed, 74 insertions(+), 77 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/42ed4bf8/blackberry10/bin/templates/project/cordova/lib/build
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/build b/blackberry10/bin/templates/project/cordova/lib/build
index 8b54709..d1d4af5 100755
--- a/blackberry10/bin/templates/project/cordova/lib/build
+++ b/blackberry10/bin/templates/project/cordova/lib/build
@@ -27,8 +27,9 @@ var path = require("path"),
         "-o",
         path.resolve(path.join(__dirname, "..", "..", "build"))
     ],
-    jWorkflow = require("jWorkflow"),
+    async = require("async"),
     childProcess = require("child_process"),
+    logger = require("./logger"),
     pkgrUtils = require("./packager-utils"),
     commandStr;
 
@@ -39,79 +40,11 @@ function copyArgIfExists(arg) {
     }
 }
 
-function doReleaseBuild() {
-    //Note: Packager refers to signing password as "password" not "keystorepass"
-    if (command["keystorepass"]) {
-        bbwpArgv.push("--password");
-        bbwpArgv.push(command["keystorepass"]);
-    } else if (bbProperties.keystorepass) {
-        bbwpArgv.push("--password");
-        bbwpArgv.push(bbProperties.keystorepass);
-    } else {
-        console.log("No signing password provided. Please enter a value for 'keystorepass' in %HOME%/.cordova/blackberry10.json or use --keystorepass via command-line directly from the project cordova scripts (WILL NOT WORK FROM CLI).");
-        console.log(command.helpInformation());
-        process.exit(2);
-    }
-
-    copyArgIfExists("buildId");
-
-    build();
-}
-
-function build() {
-    //enable webinspector in debug mode or if --webinspector was provided
-    if (!command.release || command.webInspector) {
-        bbwpArgv.push("-d");
-    }
-
-    copyArgIfExists("params");
-    copyArgIfExists("loglevel");
-
-    //Overwrite process.argv, before calling packager
-    process.argv = bbwpArgv;
-
-    //Delete cached commander object. It will conflict with the packagers commander
-    delete require.cache[require.resolve("commander")];
-    delete require.cache[require.resolve("commander/lib/commander")];
-
-    require("./packager").start(function() {});
-}
-
-function postClean() {
-    if (command.release) {
-        doReleaseBuild();
-    } else {
-        build();
-    }
-}
-
-function clean(previous, baton) {
-    var cleanScript,
-        execName = "./clean";
-
-    if (pkgrUtils.isWindows()) {
-        execName = "clean";
-    }
-
-    baton.take();
-
-    cleanScript = childProcess.exec(execName, {
-        "cwd": path.normalize(__dirname + "/.."),
-        "env": process.env
-    });
-
-    cleanScript.stdout.on("data", pkgrUtils.handleProcessOutput);
-    cleanScript.stderr.on("data", pkgrUtils.handleProcessOutput);
-
-    cleanScript.on("exit", function (code) {
-        baton.pass();
-    });
-}
-
 command
-    .usage('[--debug] [--release] [-k | --keystorepass] [-b | --buildId <number>] [-p | --params <json>] [-ll | --loglevel <level>]')
+    .usage('[--debug] [--release] [--query] [-k | --keystorepass] [-b | --buildId <number>] [-p | --params <json>] [-ll | --loglevel <level>]')
     .option('--debug', 'build in debug mode.')
     .option('--release', 'build in release mode. This will sign the resulting bar.')
+    .option('--query', 'query on the commandline when a password is needed')
     .option('-k, --keystorepass <password>', 'signing key password')
     .option('-b, --buildId <num>', 'specifies the build number for signing (typically incremented from previous signing).')
     .option('-d, --web-inspector', 'enables webinspector. Enabled by default in debug mode.).')
@@ -122,17 +55,81 @@ try {
     command.parse(process.argv);
 
     if (command.debug && command.release) {
-        console.log("Invalid build command: cannot specify both debug and release parameters.");
+        logger.warn("Invalid build command: cannot specify both debug and release parameters.");
         console.log(command.helpInformation());
         process.exit(2);
     }
 
-    // Implicitly call clean first
-    jWorkflow.order(clean)
-             .andThen(postClean)
-             .start();
+    async.series(
+        [
+            function clean (done) {
+                var cmd = utils.isWindows() ? "clean" : "./clean",
+                    args = [],
+                    opts = { "cwd": path.normalize(__dirname + "/..") };
+
+                utils.exec(cmd, args, opts, done);
+            },
+            function releaseBuild (allDone) {
+                var childTasks = [],
+                    err;
+
+                if (command.release) {
+                    copyArgIfExists("buildId");
+                    //Note: Packager refers to signing password as "password" not "keystorepass"
+                    bbwpArgv.push("--password");
+                    if (command.keystorepass) {
+                        bbwpArgv.push(command.keystorepass);
+                    } else if (bbProperties.keystorepass) {
+                        bbwpArgv.push(bbProperties.keystorepass);
+                    } else if (command.query) {
+                        childTasks.push(utils.prompt.bind(this, {description: "Please enter your keystore password: ", hidden: true}));
+                        childTasks.push(function (password, done) {
+                            bbwpArgv.push(password);
+                            done();
+                        });
+                    } else {
+                        err = "No signing password provided. Please enter a value for 'keystorepass' in %HOME%/.cordova/blackberry10.json or use --keystorepass via command-line";
+                    }
+                }
+
+                async.waterfall(childTasks, function (error) { allDone(error || err);});
+            },
+            function build (done) {
+                //enable weybinspector in debug mode or if --webinspector was provided
+                if (!command.release || command.webInspector) {
+                    bbwpArgv.push("-d");
+                }
+
+                copyArgIfExists("params");
+                copyArgIfExists("loglevel");
+
+                //Overwrite process.argv, before calling packager
+                process.argv = bbwpArgv;
+
+                //Delete cached commander object. It will conflict with the packagers commander
+                delete require.cache[require.resolve("commander")];
+                delete require.cache[require.resolve("commander/lib/commander")];
+
+                require("./packager").start(done);
+            }
+        ],
+        function (err, results) {
+            if (err) {
+                if (typeof err === "string") {
+                    logger.error(err);
+                    process.exit(1);
+                } else if (typeof err === "number") {
+                    process.exit(err);
+                } else {
+                    process.exit(2);
+                }
+            } else {
+                process.exit(0);
+            }
+        }
+    );
 } catch (e) {
-    console.log(e);
+    logger.error(e);
     process.exit(2);
 }
 


[29/50] [abbrv] webworks commit: [CB-4730] [BlackBerry10] Updating init calls to work on Win 7 64 with long paths.

Posted by je...@apache.org.
[CB-4730] [BlackBerry10] Updating init calls to work on Win 7 64
    with long paths.

  Reviewed By: James Keshavarzi <jk...@blackberry.com>
  Tested By: Daniel Audino <da...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/d7d78a82
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/d7d78a82
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/d7d78a82

Branch: refs/heads/3.1.x
Commit: d7d78a82f06ef068888018648f8d7f40e6d7d4cd
Parents: e565e65
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Fri Aug 30 16:30:13 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Tue Sep 3 10:58:59 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/check_reqs.bat                        | 2 +-
 blackberry10/bin/target.bat                            | 2 +-
 blackberry10/bin/templates/project/cordova/build.bat   | 2 +-
 blackberry10/bin/templates/project/cordova/clean.bat   | 2 +-
 blackberry10/bin/templates/project/cordova/run.bat     | 2 +-
 blackberry10/bin/templates/project/cordova/version.bat | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d7d78a82/blackberry10/bin/check_reqs.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs.bat b/blackberry10/bin/check_reqs.bat
index 91d3ac0..98127c3 100755
--- a/blackberry10/bin/check_reqs.bat
+++ b/blackberry10/bin/check_reqs.bat
@@ -17,7 +17,7 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-call "%~dp0init"
+call "%~dps0init"
 
 set FOUNDJAVA=
 for %%e in (%PATHEXT%) do (

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d7d78a82/blackberry10/bin/target.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/target.bat b/blackberry10/bin/target.bat
index 9948a28..b30ab3b 100755
--- a/blackberry10/bin/target.bat
+++ b/blackberry10/bin/target.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-call "%~dp0init"
+call "%~dps0init"
 "%CORDOVA_NODE%\node.exe" "%~dps0\lib\target" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d7d78a82/blackberry10/bin/templates/project/cordova/build.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/build.bat b/blackberry10/bin/templates/project/cordova/build.bat
index 9f8773c..5aacc26 100755
--- a/blackberry10/bin/templates/project/cordova/build.bat
+++ b/blackberry10/bin/templates/project/cordova/build.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-call "%~dp0init"
+call "%~dps0init"
 "%CORDOVA_NODE%\node.exe" "%~dps0\lib\build" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d7d78a82/blackberry10/bin/templates/project/cordova/clean.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/clean.bat b/blackberry10/bin/templates/project/cordova/clean.bat
index 091c3ce..e5bf167 100755
--- a/blackberry10/bin/templates/project/cordova/clean.bat
+++ b/blackberry10/bin/templates/project/cordova/clean.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-call "%~dp0init"
+call "%~dps0init"
 "%CORDOVA_NODE%\node.exe" "%~dps0\lib\clean" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d7d78a82/blackberry10/bin/templates/project/cordova/run.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/run.bat b/blackberry10/bin/templates/project/cordova/run.bat
index 401086f..da4215e 100755
--- a/blackberry10/bin/templates/project/cordova/run.bat
+++ b/blackberry10/bin/templates/project/cordova/run.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-call "%~dp0init"
+call "%~dps0init"
 "%CORDOVA_NODE%\node.exe" "%~dps0\lib\run" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d7d78a82/blackberry10/bin/templates/project/cordova/version.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/version.bat b/blackberry10/bin/templates/project/cordova/version.bat
index 253f8da..c0e165a 100755
--- a/blackberry10/bin/templates/project/cordova/version.bat
+++ b/blackberry10/bin/templates/project/cordova/version.bat
@@ -17,5 +17,5 @@ goto comment
        specific language governing permissions and limitations
        under the License.
 :comment
-call "%~dp0init"
+call "%~dps0init"
 "%CORDOVA_NODE%\node.exe" "%~dps0\lib\version" %*


[13/50] [abbrv] webworks commit: [CB-4076] Modified config-parser to default to the uri attribute

Posted by je...@apache.org.
[CB-4076] Modified config-parser to default to the uri attribute

Reviewed by Bryan Higgins <bh...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/0dbdf308
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/0dbdf308
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/0dbdf308

Branch: refs/heads/3.1.x
Commit: 0dbdf308456ac588b099cac1052190ba5dae6974
Parents: cfee530
Author: Kristoffer Flores <kf...@blackberry.com>
Authored: Thu Aug 8 11:43:29 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Aug 9 10:05:10 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/config-parser.js         | 6 +++++-
 blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js   | 4 ++--
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/0dbdf308/blackberry10/bin/templates/project/cordova/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/config-parser.js b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
index 0cb06e5..65b78a1 100644
--- a/blackberry10/bin/templates/project/cordova/lib/config-parser.js
+++ b/blackberry10/bin/templates/project/cordova/lib/config-parser.js
@@ -202,7 +202,11 @@ function processWidgetData(data, widgetConfig, session) {
                 } else {
                     attribs.subdomains = packagerUtils.toBoolean(attribs.subdomains);
                     if (attribs.uri || attribs.origin) {
-                        widgetConfig.accessList.push(createAccessListObj(attribs.uri || attribs.origin, attribs.subdomains));
+                        if (uriExist === true && originExist === true) {
+                            widgetConfig.accessList.push(createAccessListObj(attribs.uri, attribs.subdomains)); //using uri attribute by default
+                        } else {
+                            widgetConfig.accessList.push(createAccessListObj(attribs.uri || attribs.origin, attribs.subdomains));
+                        }
                     }
                 }
             }

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/0dbdf308/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
index 32cacf0..b526b01 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/config-parser.js
@@ -502,10 +502,10 @@ describe("config parser", function () {
             //hasMultiAccess was set to false
             expect(configObj.hasMultiAccess).toEqual(false);
             expect(configObj.accessList).toEqual([ {
-                origin : 'WIDGET_LOCAL',
+                uri : 'WIDGET_LOCAL',
                 allowSubDomain : true
             }, {
-                "origin" : "http://www.somedomain1.com"
+                "uri" : "http://www.somedomain1.com"
             } ]);
         });
     });


[43/50] [abbrv] CB-4876 removal of playbook implementation

Posted by je...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/javascript/cordova.blackberry.js
----------------------------------------------------------------------
diff --git a/playbook/javascript/cordova.blackberry.js b/playbook/javascript/cordova.blackberry.js
deleted file mode 100644
index 04563ea..0000000
--- a/playbook/javascript/cordova.blackberry.js
+++ /dev/null
@@ -1,9928 +0,0 @@
-// Platform: blackberry
-// 2.9.0-0-g83dc4bd
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
- 
-     http://www.apache.org/licenses/LICENSE-2.0
- 
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-;(function() {
-var CORDOVA_JS_BUILD_LABEL = '2.9.0-0-g83dc4bd';
-// file: lib/scripts/require.js
-
-var require,
-    define;
-
-(function () {
-    var modules = {},
-    // Stack of moduleIds currently being built.
-        requireStack = [],
-    // Map of module ID -> index into requireStack of modules currently being built.
-        inProgressModules = {},
-        SEPERATOR = ".";
-
-
-
-    function build(module) {
-        var factory = module.factory,
-            localRequire = function (id) {
-                var resultantId = id;
-                //Its a relative path, so lop off the last portion and add the id (minus "./")
-                if (id.charAt(0) === ".") {
-                    resultantId = module.id.slice(0, module.id.lastIndexOf(SEPERATOR)) + SEPERATOR + id.slice(2);
-                }
-                return require(resultantId);
-            };
-        module.exports = {};
-        delete module.factory;
-        factory(localRequire, module.exports, module);
-        return module.exports;
-    }
-
-    require = function (id) {
-        if (!modules[id]) {
-            throw "module " + id + " not found";
-        } else if (id in inProgressModules) {
-            var cycle = requireStack.slice(inProgressModules[id]).join('->') + '->' + id;
-            throw "Cycle in require graph: " + cycle;
-        }
-        if (modules[id].factory) {
-            try {
-                inProgressModules[id] = requireStack.length;
-                requireStack.push(id);
-                return build(modules[id]);
-            } finally {
-                delete inProgressModules[id];
-                requireStack.pop();
-            }
-        }
-        return modules[id].exports;
-    };
-
-    define = function (id, factory) {
-        if (modules[id]) {
-            throw "module " + id + " already defined";
-        }
-
-        modules[id] = {
-            id: id,
-            factory: factory
-        };
-    };
-
-    define.remove = function (id) {
-        delete modules[id];
-    };
-
-    define.moduleMap = modules;
-})();
-
-//Export for use in node
-if (typeof module === "object" && typeof require === "function") {
-    module.exports.require = require;
-    module.exports.define = define;
-}
-
-// file: lib/cordova.js
-define("cordova", function(require, exports, module) {
-
-
-var channel = require('cordova/channel');
-
-/**
- * Listen for DOMContentLoaded and notify our channel subscribers.
- */
-document.addEventListener('DOMContentLoaded', function() {
-    channel.onDOMContentLoaded.fire();
-}, false);
-if (document.readyState == 'complete' || document.readyState == 'interactive') {
-    channel.onDOMContentLoaded.fire();
-}
-
-/**
- * Intercept calls to addEventListener + removeEventListener and handle deviceready,
- * resume, and pause events.
- */
-var m_document_addEventListener = document.addEventListener;
-var m_document_removeEventListener = document.removeEventListener;
-var m_window_addEventListener = window.addEventListener;
-var m_window_removeEventListener = window.removeEventListener;
-
-/**
- * Houses custom event handlers to intercept on document + window event listeners.
- */
-var documentEventHandlers = {},
-    windowEventHandlers = {};
-
-document.addEventListener = function(evt, handler, capture) {
-    var e = evt.toLowerCase();
-    if (typeof documentEventHandlers[e] != 'undefined') {
-        documentEventHandlers[e].subscribe(handler);
-    } else {
-        m_document_addEventListener.call(document, evt, handler, capture);
-    }
-};
-
-window.addEventListener = function(evt, handler, capture) {
-    var e = evt.toLowerCase();
-    if (typeof windowEventHandlers[e] != 'undefined') {
-        windowEventHandlers[e].subscribe(handler);
-    } else {
-        m_window_addEventListener.call(window, evt, handler, capture);
-    }
-};
-
-document.removeEventListener = function(evt, handler, capture) {
-    var e = evt.toLowerCase();
-    // If unsubscribing from an event that is handled by a plugin
-    if (typeof documentEventHandlers[e] != "undefined") {
-        documentEventHandlers[e].unsubscribe(handler);
-    } else {
-        m_document_removeEventListener.call(document, evt, handler, capture);
-    }
-};
-
-window.removeEventListener = function(evt, handler, capture) {
-    var e = evt.toLowerCase();
-    // If unsubscribing from an event that is handled by a plugin
-    if (typeof windowEventHandlers[e] != "undefined") {
-        windowEventHandlers[e].unsubscribe(handler);
-    } else {
-        m_window_removeEventListener.call(window, evt, handler, capture);
-    }
-};
-
-function createEvent(type, data) {
-    var event = document.createEvent('Events');
-    event.initEvent(type, false, false);
-    if (data) {
-        for (var i in data) {
-            if (data.hasOwnProperty(i)) {
-                event[i] = data[i];
-            }
-        }
-    }
-    return event;
-}
-
-if(typeof window.console === "undefined") {
-    window.console = {
-        log:function(){}
-    };
-}
-
-var cordova = {
-    define:define,
-    require:require,
-    /**
-     * Methods to add/remove your own addEventListener hijacking on document + window.
-     */
-    addWindowEventHandler:function(event) {
-        return (windowEventHandlers[event] = channel.create(event));
-    },
-    addStickyDocumentEventHandler:function(event) {
-        return (documentEventHandlers[event] = channel.createSticky(event));
-    },
-    addDocumentEventHandler:function(event) {
-        return (documentEventHandlers[event] = channel.create(event));
-    },
-    removeWindowEventHandler:function(event) {
-        delete windowEventHandlers[event];
-    },
-    removeDocumentEventHandler:function(event) {
-        delete documentEventHandlers[event];
-    },
-    /**
-     * Retrieve original event handlers that were replaced by Cordova
-     *
-     * @return object
-     */
-    getOriginalHandlers: function() {
-        return {'document': {'addEventListener': m_document_addEventListener, 'removeEventListener': m_document_removeEventListener},
-        'window': {'addEventListener': m_window_addEventListener, 'removeEventListener': m_window_removeEventListener}};
-    },
-    /**
-     * Method to fire event from native code
-     * bNoDetach is required for events which cause an exception which needs to be caught in native code
-     */
-    fireDocumentEvent: function(type, data, bNoDetach) {
-        var evt = createEvent(type, data);
-        if (typeof documentEventHandlers[type] != 'undefined') {
-            if( bNoDetach ) {
-              documentEventHandlers[type].fire(evt);
-            }
-            else {
-              setTimeout(function() {
-                  // Fire deviceready on listeners that were registered before cordova.js was loaded.
-                  if (type == 'deviceready') {
-                      document.dispatchEvent(evt);
-                  }
-                  documentEventHandlers[type].fire(evt);
-              }, 0);
-            }
-        } else {
-            document.dispatchEvent(evt);
-        }
-    },
-    fireWindowEvent: function(type, data) {
-        var evt = createEvent(type,data);
-        if (typeof windowEventHandlers[type] != 'undefined') {
-            setTimeout(function() {
-                windowEventHandlers[type].fire(evt);
-            }, 0);
-        } else {
-            window.dispatchEvent(evt);
-        }
-    },
-
-    /**
-     * Plugin callback mechanism.
-     */
-    // Randomize the starting callbackId to avoid collisions after refreshing or navigating.
-    // This way, it's very unlikely that any new callback would get the same callbackId as an old callback.
-    callbackId: Math.floor(Math.random() * 2000000000),
-    callbacks:  {},
-    callbackStatus: {
-        NO_RESULT: 0,
-        OK: 1,
-        CLASS_NOT_FOUND_EXCEPTION: 2,
-        ILLEGAL_ACCESS_EXCEPTION: 3,
-        INSTANTIATION_EXCEPTION: 4,
-        MALFORMED_URL_EXCEPTION: 5,
-        IO_EXCEPTION: 6,
-        INVALID_ACTION: 7,
-        JSON_EXCEPTION: 8,
-        ERROR: 9
-    },
-
-    /**
-     * Called by native code when returning successful result from an action.
-     */
-    callbackSuccess: function(callbackId, args) {
-        try {
-            cordova.callbackFromNative(callbackId, true, args.status, [args.message], args.keepCallback);
-        } catch (e) {
-            console.log("Error in error callback: " + callbackId + " = "+e);
-        }
-    },
-
-    /**
-     * Called by native code when returning error result from an action.
-     */
-    callbackError: function(callbackId, args) {
-        // TODO: Deprecate callbackSuccess and callbackError in favour of callbackFromNative.
-        // Derive success from status.
-        try {
-            cordova.callbackFromNative(callbackId, false, args.status, [args.message], args.keepCallback);
-        } catch (e) {
-            console.log("Error in error callback: " + callbackId + " = "+e);
-        }
-    },
-
-    /**
-     * Called by native code when returning the result from an action.
-     */
-    callbackFromNative: function(callbackId, success, status, args, keepCallback) {
-        var callback = cordova.callbacks[callbackId];
-        if (callback) {
-            if (success && status == cordova.callbackStatus.OK) {
-                callback.success && callback.success.apply(null, args);
-            } else if (!success) {
-                callback.fail && callback.fail.apply(null, args);
-            }
-
-            // Clear callback if not expecting any more results
-            if (!keepCallback) {
-                delete cordova.callbacks[callbackId];
-            }
-        }
-    },
-    addConstructor: function(func) {
-        channel.onCordovaReady.subscribe(function() {
-            try {
-                func();
-            } catch(e) {
-                console.log("Failed to run constructor: " + e);
-            }
-        });
-    }
-};
-
-// Register pause, resume and deviceready channels as events on document.
-channel.onPause = cordova.addDocumentEventHandler('pause');
-channel.onResume = cordova.addDocumentEventHandler('resume');
-channel.onDeviceReady = cordova.addStickyDocumentEventHandler('deviceready');
-
-module.exports = cordova;
-
-});
-
-// file: lib/common/argscheck.js
-define("cordova/argscheck", function(require, exports, module) {
-
-var exec = require('cordova/exec');
-var utils = require('cordova/utils');
-
-var moduleExports = module.exports;
-
-var typeMap = {
-    'A': 'Array',
-    'D': 'Date',
-    'N': 'Number',
-    'S': 'String',
-    'F': 'Function',
-    'O': 'Object'
-};
-
-function extractParamName(callee, argIndex) {
-  return (/.*?\((.*?)\)/).exec(callee)[1].split(', ')[argIndex];
-}
-
-function checkArgs(spec, functionName, args, opt_callee) {
-    if (!moduleExports.enableChecks) {
-        return;
-    }
-    var errMsg = null;
-    var typeName;
-    for (var i = 0; i < spec.length; ++i) {
-        var c = spec.charAt(i),
-            cUpper = c.toUpperCase(),
-            arg = args[i];
-        // Asterix means allow anything.
-        if (c == '*') {
-            continue;
-        }
-        typeName = utils.typeName(arg);
-        if ((arg === null || arg === undefined) && c == cUpper) {
-            continue;
-        }
-        if (typeName != typeMap[cUpper]) {
-            errMsg = 'Expected ' + typeMap[cUpper];
-            break;
-        }
-    }
-    if (errMsg) {
-        errMsg += ', but got ' + typeName + '.';
-        errMsg = 'Wrong type for parameter "' + extractParamName(opt_callee || args.callee, i) + '" of ' + functionName + ': ' + errMsg;
-        // Don't log when running jake test.
-        if (typeof jasmine == 'undefined') {
-            console.error(errMsg);
-        }
-        throw TypeError(errMsg);
-    }
-}
-
-function getValue(value, defaultValue) {
-    return value === undefined ? defaultValue : value;
-}
-
-moduleExports.checkArgs = checkArgs;
-moduleExports.getValue = getValue;
-moduleExports.enableChecks = true;
-
-
-});
-
-// file: lib/common/builder.js
-define("cordova/builder", function(require, exports, module) {
-
-var utils = require('cordova/utils');
-
-function each(objects, func, context) {
-    for (var prop in objects) {
-        if (objects.hasOwnProperty(prop)) {
-            func.apply(context, [objects[prop], prop]);
-        }
-    }
-}
-
-function clobber(obj, key, value) {
-    exports.replaceHookForTesting(obj, key);
-    obj[key] = value;
-    // Getters can only be overridden by getters.
-    if (obj[key] !== value) {
-        utils.defineGetter(obj, key, function() {
-            return value;
-        });
-    }
-}
-
-function assignOrWrapInDeprecateGetter(obj, key, value, message) {
-    if (message) {
-        utils.defineGetter(obj, key, function() {
-            console.log(message);
-            delete obj[key];
-            clobber(obj, key, value);
-            return value;
-        });
-    } else {
-        clobber(obj, key, value);
-    }
-}
-
-function include(parent, objects, clobber, merge) {
-    each(objects, function (obj, key) {
-        try {
-          var result = obj.path ? require(obj.path) : {};
-
-          if (clobber) {
-              // Clobber if it doesn't exist.
-              if (typeof parent[key] === 'undefined') {
-                  assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
-              } else if (typeof obj.path !== 'undefined') {
-                  // If merging, merge properties onto parent, otherwise, clobber.
-                  if (merge) {
-                      recursiveMerge(parent[key], result);
-                  } else {
-                      assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
-                  }
-              }
-              result = parent[key];
-          } else {
-            // Overwrite if not currently defined.
-            if (typeof parent[key] == 'undefined') {
-              assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated);
-            } else {
-              // Set result to what already exists, so we can build children into it if they exist.
-              result = parent[key];
-            }
-          }
-
-          if (obj.children) {
-            include(result, obj.children, clobber, merge);
-          }
-        } catch(e) {
-          utils.alert('Exception building cordova JS globals: ' + e + ' for key "' + key + '"');
-        }
-    });
-}
-
-/**
- * Merge properties from one object onto another recursively.  Properties from
- * the src object will overwrite existing target property.
- *
- * @param target Object to merge properties into.
- * @param src Object to merge properties from.
- */
-function recursiveMerge(target, src) {
-    for (var prop in src) {
-        if (src.hasOwnProperty(prop)) {
-            if (target.prototype && target.prototype.constructor === target) {
-                // If the target object is a constructor override off prototype.
-                clobber(target.prototype, prop, src[prop]);
-            } else {
-                if (typeof src[prop] === 'object' && typeof target[prop] === 'object') {
-                    recursiveMerge(target[prop], src[prop]);
-                } else {
-                    clobber(target, prop, src[prop]);
-                }
-            }
-        }
-    }
-}
-
-exports.buildIntoButDoNotClobber = function(objects, target) {
-    include(target, objects, false, false);
-};
-exports.buildIntoAndClobber = function(objects, target) {
-    include(target, objects, true, false);
-};
-exports.buildIntoAndMerge = function(objects, target) {
-    include(target, objects, true, true);
-};
-exports.recursiveMerge = recursiveMerge;
-exports.assignOrWrapInDeprecateGetter = assignOrWrapInDeprecateGetter;
-exports.replaceHookForTesting = function() {};
-
-});
-
-// file: lib/common/channel.js
-define("cordova/channel", function(require, exports, module) {
-
-var utils = require('cordova/utils'),
-    nextGuid = 1;
-
-/**
- * Custom pub-sub "channel" that can have functions subscribed to it
- * This object is used to define and control firing of events for
- * cordova initialization, as well as for custom events thereafter.
- *
- * The order of events during page load and Cordova startup is as follows:
- *
- * onDOMContentLoaded*         Internal event that is received when the web page is loaded and parsed.
- * onNativeReady*              Internal event that indicates the Cordova native side is ready.
- * onCordovaReady*             Internal event fired when all Cordova JavaScript objects have been created.
- * onCordovaInfoReady*         Internal event fired when device properties are available.
- * onCordovaConnectionReady*   Internal event fired when the connection property has been set.
- * onDeviceReady*              User event fired to indicate that Cordova is ready
- * onResume                    User event fired to indicate a start/resume lifecycle event
- * onPause                     User event fired to indicate a pause lifecycle event
- * onDestroy*                  Internal event fired when app is being destroyed (User should use window.onunload event, not this one).
- *
- * The events marked with an * are sticky. Once they have fired, they will stay in the fired state.
- * All listeners that subscribe after the event is fired will be executed right away.
- *
- * The only Cordova events that user code should register for are:
- *      deviceready           Cordova native code is initialized and Cordova APIs can be called from JavaScript
- *      pause                 App has moved to background
- *      resume                App has returned to foreground
- *
- * Listeners can be registered as:
- *      document.addEventListener("deviceready", myDeviceReadyListener, false);
- *      document.addEventListener("resume", myResumeListener, false);
- *      document.addEventListener("pause", myPauseListener, false);
- *
- * The DOM lifecycle events should be used for saving and restoring state
- *      window.onload
- *      window.onunload
- *
- */
-
-/**
- * Channel
- * @constructor
- * @param type  String the channel name
- */
-var Channel = function(type, sticky) {
-    this.type = type;
-    // Map of guid -> function.
-    this.handlers = {};
-    // 0 = Non-sticky, 1 = Sticky non-fired, 2 = Sticky fired.
-    this.state = sticky ? 1 : 0;
-    // Used in sticky mode to remember args passed to fire().
-    this.fireArgs = null;
-    // Used by onHasSubscribersChange to know if there are any listeners.
-    this.numHandlers = 0;
-    // Function that is called when the first listener is subscribed, or when
-    // the last listener is unsubscribed.
-    this.onHasSubscribersChange = null;
-},
-    channel = {
-        /**
-         * Calls the provided function only after all of the channels specified
-         * have been fired. All channels must be sticky channels.
-         */
-        join: function(h, c) {
-            var len = c.length,
-                i = len,
-                f = function() {
-                    if (!(--i)) h();
-                };
-            for (var j=0; j<len; j++) {
-                if (c[j].state === 0) {
-                    throw Error('Can only use join with sticky channels.');
-                }
-                c[j].subscribe(f);
-            }
-            if (!len) h();
-        },
-        create: function(type) {
-            return channel[type] = new Channel(type, false);
-        },
-        createSticky: function(type) {
-            return channel[type] = new Channel(type, true);
-        },
-
-        /**
-         * cordova Channels that must fire before "deviceready" is fired.
-         */
-        deviceReadyChannelsArray: [],
-        deviceReadyChannelsMap: {},
-
-        /**
-         * Indicate that a feature needs to be initialized before it is ready to be used.
-         * This holds up Cordova's "deviceready" event until the feature has been initialized
-         * and Cordova.initComplete(feature) is called.
-         *
-         * @param feature {String}     The unique feature name
-         */
-        waitForInitialization: function(feature) {
-            if (feature) {
-                var c = channel[feature] || this.createSticky(feature);
-                this.deviceReadyChannelsMap[feature] = c;
-                this.deviceReadyChannelsArray.push(c);
-            }
-        },
-
-        /**
-         * Indicate that initialization code has completed and the feature is ready to be used.
-         *
-         * @param feature {String}     The unique feature name
-         */
-        initializationComplete: function(feature) {
-            var c = this.deviceReadyChannelsMap[feature];
-            if (c) {
-                c.fire();
-            }
-        }
-    };
-
-function forceFunction(f) {
-    if (typeof f != 'function') throw "Function required as first argument!";
-}
-
-/**
- * Subscribes the given function to the channel. Any time that
- * Channel.fire is called so too will the function.
- * Optionally specify an execution context for the function
- * and a guid that can be used to stop subscribing to the channel.
- * Returns the guid.
- */
-Channel.prototype.subscribe = function(f, c) {
-    // need a function to call
-    forceFunction(f);
-    if (this.state == 2) {
-        f.apply(c || this, this.fireArgs);
-        return;
-    }
-
-    var func = f,
-        guid = f.observer_guid;
-    if (typeof c == "object") { func = utils.close(c, f); }
-
-    if (!guid) {
-        // first time any channel has seen this subscriber
-        guid = '' + nextGuid++;
-    }
-    func.observer_guid = guid;
-    f.observer_guid = guid;
-
-    // Don't add the same handler more than once.
-    if (!this.handlers[guid]) {
-        this.handlers[guid] = func;
-        this.numHandlers++;
-        if (this.numHandlers == 1) {
-            this.onHasSubscribersChange && this.onHasSubscribersChange();
-        }
-    }
-};
-
-/**
- * Unsubscribes the function with the given guid from the channel.
- */
-Channel.prototype.unsubscribe = function(f) {
-    // need a function to unsubscribe
-    forceFunction(f);
-
-    var guid = f.observer_guid,
-        handler = this.handlers[guid];
-    if (handler) {
-        delete this.handlers[guid];
-        this.numHandlers--;
-        if (this.numHandlers === 0) {
-            this.onHasSubscribersChange && this.onHasSubscribersChange();
-        }
-    }
-};
-
-/**
- * Calls all functions subscribed to this channel.
- */
-Channel.prototype.fire = function(e) {
-    var fail = false,
-        fireArgs = Array.prototype.slice.call(arguments);
-    // Apply stickiness.
-    if (this.state == 1) {
-        this.state = 2;
-        this.fireArgs = fireArgs;
-    }
-    if (this.numHandlers) {
-        // Copy the values first so that it is safe to modify it from within
-        // callbacks.
-        var toCall = [];
-        for (var item in this.handlers) {
-            toCall.push(this.handlers[item]);
-        }
-        for (var i = 0; i < toCall.length; ++i) {
-            toCall[i].apply(this, fireArgs);
-        }
-        if (this.state == 2 && this.numHandlers) {
-            this.numHandlers = 0;
-            this.handlers = {};
-            this.onHasSubscribersChange && this.onHasSubscribersChange();
-        }
-    }
-};
-
-
-// defining them here so they are ready super fast!
-// DOM event that is received when the web page is loaded and parsed.
-channel.createSticky('onDOMContentLoaded');
-
-// Event to indicate the Cordova native side is ready.
-channel.createSticky('onNativeReady');
-
-// Event to indicate that all Cordova JavaScript objects have been created
-// and it's time to run plugin constructors.
-channel.createSticky('onCordovaReady');
-
-// Event to indicate that device properties are available
-channel.createSticky('onCordovaInfoReady');
-
-// Event to indicate that the connection property has been set.
-channel.createSticky('onCordovaConnectionReady');
-
-// Event to indicate that all automatically loaded JS plugins are loaded and ready.
-channel.createSticky('onPluginsReady');
-
-// Event to indicate that Cordova is ready
-channel.createSticky('onDeviceReady');
-
-// Event to indicate a resume lifecycle event
-channel.create('onResume');
-
-// Event to indicate a pause lifecycle event
-channel.create('onPause');
-
-// Event to indicate a destroy lifecycle event
-channel.createSticky('onDestroy');
-
-// Channels that must fire before "deviceready" is fired.
-channel.waitForInitialization('onCordovaReady');
-channel.waitForInitialization('onCordovaConnectionReady');
-channel.waitForInitialization('onDOMContentLoaded');
-
-module.exports = channel;
-
-});
-
-// file: lib/common/commandProxy.js
-define("cordova/commandProxy", function(require, exports, module) {
-
-
-// internal map of proxy function
-var CommandProxyMap = {};
-
-module.exports = {
-
-    // example: cordova.commandProxy.add("Accelerometer",{getCurrentAcceleration: function(successCallback, errorCallback, options) {...},...);
-    add:function(id,proxyObj) {
-        console.log("adding proxy for " + id);
-        CommandProxyMap[id] = proxyObj;
-        return proxyObj;
-    },
-
-    // cordova.commandProxy.remove("Accelerometer");
-    remove:function(id) {
-        var proxy = CommandProxyMap[id];
-        delete CommandProxyMap[id];
-        CommandProxyMap[id] = null;
-        return proxy;
-    },
-
-    get:function(service,action) {
-        return ( CommandProxyMap[service] ? CommandProxyMap[service][action] : null );
-    }
-};
-});
-
-// file: lib/blackberry/exec.js
-define("cordova/exec", function(require, exports, module) {
-
-var cordova = require('cordova'),
-    platform = require('cordova/platform'),
-    utils = require('cordova/utils');
-
-/**
- * Execute a cordova command.  It is up to the native side whether this action
- * is synchronous or asynchronous.  The native side can return:
- *      Synchronous: PluginResult object as a JSON string
- *      Asynchronous: Empty string ""
- * If async, the native side will cordova.callbackSuccess or cordova.callbackError,
- * depending upon the result of the action.
- *
- * @param {Function} success    The success callback
- * @param {Function} fail       The fail callback
- * @param {String} service      The name of the service to use
- * @param {String} action       Action to be run in cordova
- * @param {String[]} [args]     Zero or more arguments to pass to the method
- */
-
-module.exports = function(success, fail, service, action, args) {
-    try {
-        var manager = require('cordova/plugin/' + platform.runtime() + '/manager'),
-            v = manager.exec(success, fail, service, action, args);
-
-        // If status is OK, then return value back to caller
-        if (v.status == cordova.callbackStatus.OK) {
-
-            // If there is a success callback, then call it now with returned value
-            if (success) {
-                try {
-                    success(v.message);
-                }
-                catch (e) {
-                    console.log("Error in success callback: "+cordova.callbackId+" = "+e);
-                }
-            }
-            return v.message;
-        } else if (v.status == cordova.callbackStatus.NO_RESULT) {
-
-        } else {
-            // If error, then display error
-            console.log("Error: Status="+v.status+" Message="+v.message);
-
-            // If there is a fail callback, then call it now with returned value
-            if (fail) {
-                try {
-                    fail(v.message);
-                }
-                catch (e) {
-                    console.log("Error in error callback: "+cordova.callbackId+" = "+e);
-                }
-            }
-            return null;
-        }
-    } catch (e) {
-        utils.alert("Error: "+e);
-    }
-};
-
-});
-
-// file: lib/common/modulemapper.js
-define("cordova/modulemapper", function(require, exports, module) {
-
-var builder = require('cordova/builder'),
-    moduleMap = define.moduleMap,
-    symbolList,
-    deprecationMap;
-
-exports.reset = function() {
-    symbolList = [];
-    deprecationMap = {};
-};
-
-function addEntry(strategy, moduleName, symbolPath, opt_deprecationMessage) {
-    if (!(moduleName in moduleMap)) {
-        throw new Error('Module ' + moduleName + ' does not exist.');
-    }
-    symbolList.push(strategy, moduleName, symbolPath);
-    if (opt_deprecationMessage) {
-        deprecationMap[symbolPath] = opt_deprecationMessage;
-    }
-}
-
-// Note: Android 2.3 does have Function.bind().
-exports.clobbers = function(moduleName, symbolPath, opt_deprecationMessage) {
-    addEntry('c', moduleName, symbolPath, opt_deprecationMessage);
-};
-
-exports.merges = function(moduleName, symbolPath, opt_deprecationMessage) {
-    addEntry('m', moduleName, symbolPath, opt_deprecationMessage);
-};
-
-exports.defaults = function(moduleName, symbolPath, opt_deprecationMessage) {
-    addEntry('d', moduleName, symbolPath, opt_deprecationMessage);
-};
-
-function prepareNamespace(symbolPath, context) {
-    if (!symbolPath) {
-        return context;
-    }
-    var parts = symbolPath.split('.');
-    var cur = context;
-    for (var i = 0, part; part = parts[i]; ++i) {
-        cur = cur[part] = cur[part] || {};
-    }
-    return cur;
-}
-
-exports.mapModules = function(context) {
-    var origSymbols = {};
-    context.CDV_origSymbols = origSymbols;
-    for (var i = 0, len = symbolList.length; i < len; i += 3) {
-        var strategy = symbolList[i];
-        var moduleName = symbolList[i + 1];
-        var symbolPath = symbolList[i + 2];
-        var lastDot = symbolPath.lastIndexOf('.');
-        var namespace = symbolPath.substr(0, lastDot);
-        var lastName = symbolPath.substr(lastDot + 1);
-
-        var module = require(moduleName);
-        var deprecationMsg = symbolPath in deprecationMap ? 'Access made to deprecated symbol: ' + symbolPath + '. ' + deprecationMsg : null;
-        var parentObj = prepareNamespace(namespace, context);
-        var target = parentObj[lastName];
-
-        if (strategy == 'm' && target) {
-            builder.recursiveMerge(target, module);
-        } else if ((strategy == 'd' && !target) || (strategy != 'd')) {
-            if (!(symbolPath in origSymbols)) {
-                origSymbols[symbolPath] = target;
-            }
-            builder.assignOrWrapInDeprecateGetter(parentObj, lastName, module, deprecationMsg);
-        }
-    }
-};
-
-exports.getOriginalSymbol = function(context, symbolPath) {
-    var origSymbols = context.CDV_origSymbols;
-    if (origSymbols && (symbolPath in origSymbols)) {
-        return origSymbols[symbolPath];
-    }
-    var parts = symbolPath.split('.');
-    var obj = context;
-    for (var i = 0; i < parts.length; ++i) {
-        obj = obj && obj[parts[i]];
-    }
-    return obj;
-};
-
-exports.loadMatchingModules = function(matchingRegExp) {
-    for (var k in moduleMap) {
-        if (matchingRegExp.exec(k)) {
-            require(k);
-        }
-    }
-};
-
-exports.reset();
-
-
-});
-
-// file: lib/blackberry/platform.js
-define("cordova/platform", function(require, exports, module) {
-
-module.exports = {
-    id: "blackberry",
-    runtime: function () {
-        if (navigator.userAgent.indexOf("PlayBook") > -1) {
-            return 'air';
-        }
-        else if (navigator.userAgent.indexOf("BlackBerry") > -1) {
-            return 'java';
-        }
-        else {
-            console.log("Unknown user agent?!?!? defaulting to java");
-            return 'java';
-        }
-    },
-    initialize: function() {
-        var modulemapper = require('cordova/modulemapper'),
-            platform = require('cordova/plugin/' + this.runtime() + '/platform');
-
-        modulemapper.loadMatchingModules(/cordova.*\/symbols$/);
-        modulemapper.loadMatchingModules(new RegExp('cordova/.*' + this.runtime() + '/.*bbsymbols$'));
-        modulemapper.mapModules(this.contextObj);
-
-        platform.initialize();
-    },
-    contextObj: this // Used for testing.
-};
-
-});
-
-// file: lib/common/plugin/Acceleration.js
-define("cordova/plugin/Acceleration", function(require, exports, module) {
-
-var Acceleration = function(x, y, z, timestamp) {
-    this.x = x;
-    this.y = y;
-    this.z = z;
-    this.timestamp = timestamp || (new Date()).getTime();
-};
-
-module.exports = Acceleration;
-
-});
-
-// file: lib/common/plugin/Camera.js
-define("cordova/plugin/Camera", function(require, exports, module) {
-
-var argscheck = require('cordova/argscheck'),
-    exec = require('cordova/exec'),
-    Camera = require('cordova/plugin/CameraConstants'),
-    CameraPopoverHandle = require('cordova/plugin/CameraPopoverHandle');
-
-var cameraExport = {};
-
-// Tack on the Camera Constants to the base camera plugin.
-for (var key in Camera) {
-    cameraExport[key] = Camera[key];
-}
-
-/**
- * Gets a picture from source defined by "options.sourceType", and returns the
- * image as defined by the "options.destinationType" option.
-
- * The defaults are sourceType=CAMERA and destinationType=FILE_URI.
- *
- * @param {Function} successCallback
- * @param {Function} errorCallback
- * @param {Object} options
- */
-cameraExport.getPicture = function(successCallback, errorCallback, options) {
-    argscheck.checkArgs('fFO', 'Camera.getPicture', arguments);
-    options = options || {};
-    var getValue = argscheck.getValue;
-
-    var quality = getValue(options.quality, 50);
-    var destinationType = getValue(options.destinationType, Camera.DestinationType.FILE_URI);
-    var sourceType = getValue(options.sourceType, Camera.PictureSourceType.CAMERA);
-    var targetWidth = getValue(options.targetWidth, -1);
-    var targetHeight = getValue(options.targetHeight, -1);
-    var encodingType = getValue(options.encodingType, Camera.EncodingType.JPEG);
-    var mediaType = getValue(options.mediaType, Camera.MediaType.PICTURE);
-    var allowEdit = !!options.allowEdit;
-    var correctOrientation = !!options.correctOrientation;
-    var saveToPhotoAlbum = !!options.saveToPhotoAlbum;
-    var popoverOptions = getValue(options.popoverOptions, null);
-    var cameraDirection = getValue(options.cameraDirection, Camera.Direction.BACK);
-
-    var args = [quality, destinationType, sourceType, targetWidth, targetHeight, encodingType,
-                mediaType, allowEdit, correctOrientation, saveToPhotoAlbum, popoverOptions, cameraDirection];
-
-    exec(successCallback, errorCallback, "Camera", "takePicture", args);
-    return new CameraPopoverHandle();
-};
-
-cameraExport.cleanup = function(successCallback, errorCallback) {
-    exec(successCallback, errorCallback, "Camera", "cleanup", []);
-};
-
-module.exports = cameraExport;
-
-});
-
-// file: lib/common/plugin/CameraConstants.js
-define("cordova/plugin/CameraConstants", function(require, exports, module) {
-
-module.exports = {
-  DestinationType:{
-    DATA_URL: 0,         // Return base64 encoded string
-    FILE_URI: 1,         // Return file uri (content://media/external/images/media/2 for Android)
-    NATIVE_URI: 2        // Return native uri (eg. asset-library://... for iOS)
-  },
-  EncodingType:{
-    JPEG: 0,             // Return JPEG encoded image
-    PNG: 1               // Return PNG encoded image
-  },
-  MediaType:{
-    PICTURE: 0,          // allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType
-    VIDEO: 1,            // allow selection of video only, ONLY RETURNS URL
-    ALLMEDIA : 2         // allow selection from all media types
-  },
-  PictureSourceType:{
-    PHOTOLIBRARY : 0,    // Choose image from picture library (same as SAVEDPHOTOALBUM for Android)
-    CAMERA : 1,          // Take picture from camera
-    SAVEDPHOTOALBUM : 2  // Choose image from picture library (same as PHOTOLIBRARY for Android)
-  },
-  PopoverArrowDirection:{
-      ARROW_UP : 1,        // matches iOS UIPopoverArrowDirection constants to specify arrow location on popover
-      ARROW_DOWN : 2,
-      ARROW_LEFT : 4,
-      ARROW_RIGHT : 8,
-      ARROW_ANY : 15
-  },
-  Direction:{
-      BACK: 0,
-      FRONT: 1
-  }
-};
-
-});
-
-// file: lib/common/plugin/CameraPopoverHandle.js
-define("cordova/plugin/CameraPopoverHandle", function(require, exports, module) {
-
-var exec = require('cordova/exec');
-
-/**
- * A handle to an image picker popover.
- */
-var CameraPopoverHandle = function() {
-    this.setPosition = function(popoverOptions) {
-        console.log('CameraPopoverHandle.setPosition is only supported on iOS.');
-    };
-};
-
-module.exports = CameraPopoverHandle;
-
-});
-
-// file: lib/common/plugin/CameraPopoverOptions.js
-define("cordova/plugin/CameraPopoverOptions", function(require, exports, module) {
-
-var Camera = require('cordova/plugin/CameraConstants');
-
-/**
- * Encapsulates options for iOS Popover image picker
- */
-var CameraPopoverOptions = function(x,y,width,height,arrowDir){
-    // information of rectangle that popover should be anchored to
-    this.x = x || 0;
-    this.y = y || 32;
-    this.width = width || 320;
-    this.height = height || 480;
-    // The direction of the popover arrow
-    this.arrowDir = arrowDir || Camera.PopoverArrowDirection.ARROW_ANY;
-};
-
-module.exports = CameraPopoverOptions;
-
-});
-
-// file: lib/common/plugin/CaptureAudioOptions.js
-define("cordova/plugin/CaptureAudioOptions", function(require, exports, module) {
-
-/**
- * Encapsulates all audio capture operation configuration options.
- */
-var CaptureAudioOptions = function(){
-    // Upper limit of sound clips user can record. Value must be equal or greater than 1.
-    this.limit = 1;
-    // Maximum duration of a single sound clip in seconds.
-    this.duration = 0;
-};
-
-module.exports = CaptureAudioOptions;
-
-});
-
-// file: lib/common/plugin/CaptureError.js
-define("cordova/plugin/CaptureError", function(require, exports, module) {
-
-/**
- * The CaptureError interface encapsulates all errors in the Capture API.
- */
-var CaptureError = function(c) {
-   this.code = c || null;
-};
-
-// Camera or microphone failed to capture image or sound.
-CaptureError.CAPTURE_INTERNAL_ERR = 0;
-// Camera application or audio capture application is currently serving other capture request.
-CaptureError.CAPTURE_APPLICATION_BUSY = 1;
-// Invalid use of the API (e.g. limit parameter has value less than one).
-CaptureError.CAPTURE_INVALID_ARGUMENT = 2;
-// User exited camera application or audio capture application before capturing anything.
-CaptureError.CAPTURE_NO_MEDIA_FILES = 3;
-// The requested capture operation is not supported.
-CaptureError.CAPTURE_NOT_SUPPORTED = 20;
-
-module.exports = CaptureError;
-
-});
-
-// file: lib/common/plugin/CaptureImageOptions.js
-define("cordova/plugin/CaptureImageOptions", function(require, exports, module) {
-
-/**
- * Encapsulates all image capture operation configuration options.
- */
-var CaptureImageOptions = function(){
-    // Upper limit of images user can take. Value must be equal or greater than 1.
-    this.limit = 1;
-};
-
-module.exports = CaptureImageOptions;
-
-});
-
-// file: lib/common/plugin/CaptureVideoOptions.js
-define("cordova/plugin/CaptureVideoOptions", function(require, exports, module) {
-
-/**
- * Encapsulates all video capture operation configuration options.
- */
-var CaptureVideoOptions = function(){
-    // Upper limit of videos user can record. Value must be equal or greater than 1.
-    this.limit = 1;
-    // Maximum duration of a single video clip in seconds.
-    this.duration = 0;
-};
-
-module.exports = CaptureVideoOptions;
-
-});
-
-// file: lib/common/plugin/CompassError.js
-define("cordova/plugin/CompassError", function(require, exports, module) {
-
-/**
- *  CompassError.
- *  An error code assigned by an implementation when an error has occurred
- * @constructor
- */
-var CompassError = function(err) {
-    this.code = (err !== undefined ? err : null);
-};
-
-CompassError.COMPASS_INTERNAL_ERR = 0;
-CompassError.COMPASS_NOT_SUPPORTED = 20;
-
-module.exports = CompassError;
-
-});
-
-// file: lib/common/plugin/CompassHeading.js
-define("cordova/plugin/CompassHeading", function(require, exports, module) {
-
-var CompassHeading = function(magneticHeading, trueHeading, headingAccuracy, timestamp) {
-  this.magneticHeading = magneticHeading;
-  this.trueHeading = trueHeading;
-  this.headingAccuracy = headingAccuracy;
-  this.timestamp = timestamp || new Date().getTime();
-};
-
-module.exports = CompassHeading;
-
-});
-
-// file: lib/common/plugin/ConfigurationData.js
-define("cordova/plugin/ConfigurationData", function(require, exports, module) {
-
-/**
- * Encapsulates a set of parameters that the capture device supports.
- */
-function ConfigurationData() {
-    // The ASCII-encoded string in lower case representing the media type.
-    this.type = null;
-    // The height attribute represents height of the image or video in pixels.
-    // In the case of a sound clip this attribute has value 0.
-    this.height = 0;
-    // The width attribute represents width of the image or video in pixels.
-    // In the case of a sound clip this attribute has value 0
-    this.width = 0;
-}
-
-module.exports = ConfigurationData;
-
-});
-
-// file: lib/common/plugin/Connection.js
-define("cordova/plugin/Connection", function(require, exports, module) {
-
-/**
- * Network status
- */
-module.exports = {
-        UNKNOWN: "unknown",
-        ETHERNET: "ethernet",
-        WIFI: "wifi",
-        CELL_2G: "2g",
-        CELL_3G: "3g",
-        CELL_4G: "4g",
-        CELL:"cellular",
-        NONE: "none"
-};
-
-});
-
-// file: lib/common/plugin/Contact.js
-define("cordova/plugin/Contact", function(require, exports, module) {
-
-var argscheck = require('cordova/argscheck'),
-    exec = require('cordova/exec'),
-    ContactError = require('cordova/plugin/ContactError'),
-    utils = require('cordova/utils');
-
-/**
-* Converts primitives into Complex Object
-* Currently only used for Date fields
-*/
-function convertIn(contact) {
-    var value = contact.birthday;
-    try {
-      contact.birthday = new Date(parseFloat(value));
-    } catch (exception){
-      console.log("Cordova Contact convertIn error: exception creating date.");
-    }
-    return contact;
-}
-
-/**
-* Converts Complex objects into primitives
-* Only conversion at present is for Dates.
-**/
-
-function convertOut(contact) {
-    var value = contact.birthday;
-    if (value !== null) {
-        // try to make it a Date object if it is not already
-        if (!utils.isDate(value)){
-            try {
-                value = new Date(value);
-            } catch(exception){
-                value = null;
-            }
-        }
-        if (utils.isDate(value)){
-            value = value.valueOf(); // convert to milliseconds
-        }
-        contact.birthday = value;
-    }
-    return contact;
-}
-
-/**
-* Contains information about a single contact.
-* @constructor
-* @param {DOMString} id unique identifier
-* @param {DOMString} displayName
-* @param {ContactName} name
-* @param {DOMString} nickname
-* @param {Array.<ContactField>} phoneNumbers array of phone numbers
-* @param {Array.<ContactField>} emails array of email addresses
-* @param {Array.<ContactAddress>} addresses array of addresses
-* @param {Array.<ContactField>} ims instant messaging user ids
-* @param {Array.<ContactOrganization>} organizations
-* @param {DOMString} birthday contact's birthday
-* @param {DOMString} note user notes about contact
-* @param {Array.<ContactField>} photos
-* @param {Array.<ContactField>} categories
-* @param {Array.<ContactField>} urls contact's web sites
-*/
-var Contact = function (id, displayName, name, nickname, phoneNumbers, emails, addresses,
-    ims, organizations, birthday, note, photos, categories, urls) {
-    this.id = id || null;
-    this.rawId = null;
-    this.displayName = displayName || null;
-    this.name = name || null; // ContactName
-    this.nickname = nickname || null;
-    this.phoneNumbers = phoneNumbers || null; // ContactField[]
-    this.emails = emails || null; // ContactField[]
-    this.addresses = addresses || null; // ContactAddress[]
-    this.ims = ims || null; // ContactField[]
-    this.organizations = organizations || null; // ContactOrganization[]
-    this.birthday = birthday || null;
-    this.note = note || null;
-    this.photos = photos || null; // ContactField[]
-    this.categories = categories || null; // ContactField[]
-    this.urls = urls || null; // ContactField[]
-};
-
-/**
-* Removes contact from device storage.
-* @param successCB success callback
-* @param errorCB error callback
-*/
-Contact.prototype.remove = function(successCB, errorCB) {
-    argscheck.checkArgs('FF', 'Contact.remove', arguments);
-    var fail = errorCB && function(code) {
-        errorCB(new ContactError(code));
-    };
-    if (this.id === null) {
-        fail(ContactError.UNKNOWN_ERROR);
-    }
-    else {
-        exec(successCB, fail, "Contacts", "remove", [this.id]);
-    }
-};
-
-/**
-* Creates a deep copy of this Contact.
-* With the contact ID set to null.
-* @return copy of this Contact
-*/
-Contact.prototype.clone = function() {
-    var clonedContact = utils.clone(this);
-    clonedContact.id = null;
-    clonedContact.rawId = null;
-
-    function nullIds(arr) {
-        if (arr) {
-            for (var i = 0; i < arr.length; ++i) {
-                arr[i].id = null;
-            }
-        }
-    }
-
-    // Loop through and clear out any id's in phones, emails, etc.
-    nullIds(clonedContact.phoneNumbers);
-    nullIds(clonedContact.emails);
-    nullIds(clonedContact.addresses);
-    nullIds(clonedContact.ims);
-    nullIds(clonedContact.organizations);
-    nullIds(clonedContact.categories);
-    nullIds(clonedContact.photos);
-    nullIds(clonedContact.urls);
-    return clonedContact;
-};
-
-/**
-* Persists contact to device storage.
-* @param successCB success callback
-* @param errorCB error callback
-*/
-Contact.prototype.save = function(successCB, errorCB) {
-    argscheck.checkArgs('FFO', 'Contact.save', arguments);
-    var fail = errorCB && function(code) {
-        errorCB(new ContactError(code));
-    };
-    var success = function(result) {
-        if (result) {
-            if (successCB) {
-                var fullContact = require('cordova/plugin/contacts').create(result);
-                successCB(convertIn(fullContact));
-            }
-        }
-        else {
-            // no Entry object returned
-            fail(ContactError.UNKNOWN_ERROR);
-        }
-    };
-    var dupContact = convertOut(utils.clone(this));
-    exec(success, fail, "Contacts", "save", [dupContact]);
-};
-
-
-module.exports = Contact;
-
-});
-
-// file: lib/common/plugin/ContactAddress.js
-define("cordova/plugin/ContactAddress", function(require, exports, module) {
-
-/**
-* Contact address.
-* @constructor
-* @param {DOMString} id unique identifier, should only be set by native code
-* @param formatted // NOTE: not a W3C standard
-* @param streetAddress
-* @param locality
-* @param region
-* @param postalCode
-* @param country
-*/
-
-var ContactAddress = function(pref, type, formatted, streetAddress, locality, region, postalCode, country) {
-    this.id = null;
-    this.pref = (typeof pref != 'undefined' ? pref : false);
-    this.type = type || null;
-    this.formatted = formatted || null;
-    this.streetAddress = streetAddress || null;
-    this.locality = locality || null;
-    this.region = region || null;
-    this.postalCode = postalCode || null;
-    this.country = country || null;
-};
-
-module.exports = ContactAddress;
-
-});
-
-// file: lib/common/plugin/ContactError.js
-define("cordova/plugin/ContactError", function(require, exports, module) {
-
-/**
- *  ContactError.
- *  An error code assigned by an implementation when an error has occurred
- * @constructor
- */
-var ContactError = function(err) {
-    this.code = (typeof err != 'undefined' ? err : null);
-};
-
-/**
- * Error codes
- */
-ContactError.UNKNOWN_ERROR = 0;
-ContactError.INVALID_ARGUMENT_ERROR = 1;
-ContactError.TIMEOUT_ERROR = 2;
-ContactError.PENDING_OPERATION_ERROR = 3;
-ContactError.IO_ERROR = 4;
-ContactError.NOT_SUPPORTED_ERROR = 5;
-ContactError.PERMISSION_DENIED_ERROR = 20;
-
-module.exports = ContactError;
-
-});
-
-// file: lib/common/plugin/ContactField.js
-define("cordova/plugin/ContactField", function(require, exports, module) {
-
-/**
-* Generic contact field.
-* @constructor
-* @param {DOMString} id unique identifier, should only be set by native code // NOTE: not a W3C standard
-* @param type
-* @param value
-* @param pref
-*/
-var ContactField = function(type, value, pref) {
-    this.id = null;
-    this.type = (type && type.toString()) || null;
-    this.value = (value && value.toString()) || null;
-    this.pref = (typeof pref != 'undefined' ? pref : false);
-};
-
-module.exports = ContactField;
-
-});
-
-// file: lib/common/plugin/ContactFindOptions.js
-define("cordova/plugin/ContactFindOptions", function(require, exports, module) {
-
-/**
- * ContactFindOptions.
- * @constructor
- * @param filter used to match contacts against
- * @param multiple boolean used to determine if more than one contact should be returned
- */
-
-var ContactFindOptions = function(filter, multiple) {
-    this.filter = filter || '';
-    this.multiple = (typeof multiple != 'undefined' ? multiple : false);
-};
-
-module.exports = ContactFindOptions;
-
-});
-
-// file: lib/common/plugin/ContactName.js
-define("cordova/plugin/ContactName", function(require, exports, module) {
-
-/**
-* Contact name.
-* @constructor
-* @param formatted // NOTE: not part of W3C standard
-* @param familyName
-* @param givenName
-* @param middle
-* @param prefix
-* @param suffix
-*/
-var ContactName = function(formatted, familyName, givenName, middle, prefix, suffix) {
-    this.formatted = formatted || null;
-    this.familyName = familyName || null;
-    this.givenName = givenName || null;
-    this.middleName = middle || null;
-    this.honorificPrefix = prefix || null;
-    this.honorificSuffix = suffix || null;
-};
-
-module.exports = ContactName;
-
-});
-
-// file: lib/common/plugin/ContactOrganization.js
-define("cordova/plugin/ContactOrganization", function(require, exports, module) {
-
-/**
-* Contact organization.
-* @constructor
-* @param {DOMString} id unique identifier, should only be set by native code // NOTE: not a W3C standard
-* @param name
-* @param dept
-* @param title
-* @param startDate
-* @param endDate
-* @param location
-* @param desc
-*/
-
-var ContactOrganization = function(pref, type, name, dept, title) {
-    this.id = null;
-    this.pref = (typeof pref != 'undefined' ? pref : false);
-    this.type = type || null;
-    this.name = name || null;
-    this.department = dept || null;
-    this.title = title || null;
-};
-
-module.exports = ContactOrganization;
-
-});
-
-// file: lib/common/plugin/Coordinates.js
-define("cordova/plugin/Coordinates", function(require, exports, module) {
-
-/**
- * This class contains position information.
- * @param {Object} lat
- * @param {Object} lng
- * @param {Object} alt
- * @param {Object} acc
- * @param {Object} head
- * @param {Object} vel
- * @param {Object} altacc
- * @constructor
- */
-var Coordinates = function(lat, lng, alt, acc, head, vel, altacc) {
-    /**
-     * The latitude of the position.
-     */
-    this.latitude = lat;
-    /**
-     * The longitude of the position,
-     */
-    this.longitude = lng;
-    /**
-     * The accuracy of the position.
-     */
-    this.accuracy = acc;
-    /**
-     * The altitude of the position.
-     */
-    this.altitude = (alt !== undefined ? alt : null);
-    /**
-     * The direction the device is moving at the position.
-     */
-    this.heading = (head !== undefined ? head : null);
-    /**
-     * The velocity with which the device is moving at the position.
-     */
-    this.speed = (vel !== undefined ? vel : null);
-
-    if (this.speed === 0 || this.speed === null) {
-        this.heading = NaN;
-    }
-
-    /**
-     * The altitude accuracy of the position.
-     */
-    this.altitudeAccuracy = (altacc !== undefined) ? altacc : null;
-};
-
-module.exports = Coordinates;
-
-});
-
-// file: lib/common/plugin/DirectoryEntry.js
-define("cordova/plugin/DirectoryEntry", function(require, exports, module) {
-
-var argscheck = require('cordova/argscheck'),
-    utils = require('cordova/utils'),
-    exec = require('cordova/exec'),
-    Entry = require('cordova/plugin/Entry'),
-    FileError = require('cordova/plugin/FileError'),
-    DirectoryReader = require('cordova/plugin/DirectoryReader');
-
-/**
- * An interface representing a directory on the file system.
- *
- * {boolean} isFile always false (readonly)
- * {boolean} isDirectory always true (readonly)
- * {DOMString} name of the directory, excluding the path leading to it (readonly)
- * {DOMString} fullPath the absolute full path to the directory (readonly)
- * TODO: implement this!!! {FileSystem} filesystem on which the directory resides (readonly)
- */
-var DirectoryEntry = function(name, fullPath) {
-     DirectoryEntry.__super__.constructor.call(this, false, true, name, fullPath);
-};
-
-utils.extend(DirectoryEntry, Entry);
-
-/**
- * Creates a new DirectoryReader to read entries from this directory
- */
-DirectoryEntry.prototype.createReader = function() {
-    return new DirectoryReader(this.fullPath);
-};
-
-/**
- * Creates or looks up a directory
- *
- * @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a directory
- * @param {Flags} options to create or exclusively create the directory
- * @param {Function} successCallback is called with the new entry
- * @param {Function} errorCallback is called with a FileError
- */
-DirectoryEntry.prototype.getDirectory = function(path, options, successCallback, errorCallback) {
-    argscheck.checkArgs('sOFF', 'DirectoryEntry.getDirectory', arguments);
-    var win = successCallback && function(result) {
-        var entry = new DirectoryEntry(result.name, result.fullPath);
-        successCallback(entry);
-    };
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-    exec(win, fail, "File", "getDirectory", [this.fullPath, path, options]);
-};
-
-/**
- * Deletes a directory and all of it's contents
- *
- * @param {Function} successCallback is called with no parameters
- * @param {Function} errorCallback is called with a FileError
- */
-DirectoryEntry.prototype.removeRecursively = function(successCallback, errorCallback) {
-    argscheck.checkArgs('FF', 'DirectoryEntry.removeRecursively', arguments);
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-    exec(successCallback, fail, "File", "removeRecursively", [this.fullPath]);
-};
-
-/**
- * Creates or looks up a file
- *
- * @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a file
- * @param {Flags} options to create or exclusively create the file
- * @param {Function} successCallback is called with the new entry
- * @param {Function} errorCallback is called with a FileError
- */
-DirectoryEntry.prototype.getFile = function(path, options, successCallback, errorCallback) {
-    argscheck.checkArgs('sOFF', 'DirectoryEntry.getFile', arguments);
-    var win = successCallback && function(result) {
-        var FileEntry = require('cordova/plugin/FileEntry');
-        var entry = new FileEntry(result.name, result.fullPath);
-        successCallback(entry);
-    };
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-    exec(win, fail, "File", "getFile", [this.fullPath, path, options]);
-};
-
-module.exports = DirectoryEntry;
-
-});
-
-// file: lib/common/plugin/DirectoryReader.js
-define("cordova/plugin/DirectoryReader", function(require, exports, module) {
-
-var exec = require('cordova/exec'),
-    FileError = require('cordova/plugin/FileError') ;
-
-/**
- * An interface that lists the files and directories in a directory.
- */
-function DirectoryReader(path) {
-    this.path = path || null;
-}
-
-/**
- * Returns a list of entries from a directory.
- *
- * @param {Function} successCallback is called with a list of entries
- * @param {Function} errorCallback is called with a FileError
- */
-DirectoryReader.prototype.readEntries = function(successCallback, errorCallback) {
-    var win = typeof successCallback !== 'function' ? null : function(result) {
-        var retVal = [];
-        for (var i=0; i<result.length; i++) {
-            var entry = null;
-            if (result[i].isDirectory) {
-                entry = new (require('cordova/plugin/DirectoryEntry'))();
-            }
-            else if (result[i].isFile) {
-                entry = new (require('cordova/plugin/FileEntry'))();
-            }
-            entry.isDirectory = result[i].isDirectory;
-            entry.isFile = result[i].isFile;
-            entry.name = result[i].name;
-            entry.fullPath = result[i].fullPath;
-            retVal.push(entry);
-        }
-        successCallback(retVal);
-    };
-    var fail = typeof errorCallback !== 'function' ? null : function(code) {
-        errorCallback(new FileError(code));
-    };
-    exec(win, fail, "File", "readEntries", [this.path]);
-};
-
-module.exports = DirectoryReader;
-
-});
-
-// file: lib/common/plugin/Entry.js
-define("cordova/plugin/Entry", function(require, exports, module) {
-
-var argscheck = require('cordova/argscheck'),
-    exec = require('cordova/exec'),
-    FileError = require('cordova/plugin/FileError'),
-    Metadata = require('cordova/plugin/Metadata');
-
-/**
- * Represents a file or directory on the local file system.
- *
- * @param isFile
- *            {boolean} true if Entry is a file (readonly)
- * @param isDirectory
- *            {boolean} true if Entry is a directory (readonly)
- * @param name
- *            {DOMString} name of the file or directory, excluding the path
- *            leading to it (readonly)
- * @param fullPath
- *            {DOMString} the absolute full path to the file or directory
- *            (readonly)
- */
-function Entry(isFile, isDirectory, name, fullPath, fileSystem) {
-    this.isFile = !!isFile;
-    this.isDirectory = !!isDirectory;
-    this.name = name || '';
-    this.fullPath = fullPath || '';
-    this.filesystem = fileSystem || null;
-}
-
-/**
- * Look up the metadata of the entry.
- *
- * @param successCallback
- *            {Function} is called with a Metadata object
- * @param errorCallback
- *            {Function} is called with a FileError
- */
-Entry.prototype.getMetadata = function(successCallback, errorCallback) {
-    argscheck.checkArgs('FF', 'Entry.getMetadata', arguments);
-    var success = successCallback && function(lastModified) {
-        var metadata = new Metadata(lastModified);
-        successCallback(metadata);
-    };
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-
-    exec(success, fail, "File", "getMetadata", [this.fullPath]);
-};
-
-/**
- * Set the metadata of the entry.
- *
- * @param successCallback
- *            {Function} is called with a Metadata object
- * @param errorCallback
- *            {Function} is called with a FileError
- * @param metadataObject
- *            {Object} keys and values to set
- */
-Entry.prototype.setMetadata = function(successCallback, errorCallback, metadataObject) {
-    argscheck.checkArgs('FFO', 'Entry.setMetadata', arguments);
-    exec(successCallback, errorCallback, "File", "setMetadata", [this.fullPath, metadataObject]);
-};
-
-/**
- * Move a file or directory to a new location.
- *
- * @param parent
- *            {DirectoryEntry} the directory to which to move this entry
- * @param newName
- *            {DOMString} new name of the entry, defaults to the current name
- * @param successCallback
- *            {Function} called with the new DirectoryEntry object
- * @param errorCallback
- *            {Function} called with a FileError
- */
-Entry.prototype.moveTo = function(parent, newName, successCallback, errorCallback) {
-    argscheck.checkArgs('oSFF', 'Entry.moveTo', arguments);
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-    // source path
-    var srcPath = this.fullPath,
-        // entry name
-        name = newName || this.name,
-        success = function(entry) {
-            if (entry) {
-                if (successCallback) {
-                    // create appropriate Entry object
-                    var result = (entry.isDirectory) ? new (require('cordova/plugin/DirectoryEntry'))(entry.name, entry.fullPath) : new (require('cordova/plugin/FileEntry'))(entry.name, entry.fullPath);
-                    successCallback(result);
-                }
-            }
-            else {
-                // no Entry object returned
-                fail && fail(FileError.NOT_FOUND_ERR);
-            }
-        };
-
-    // copy
-    exec(success, fail, "File", "moveTo", [srcPath, parent.fullPath, name]);
-};
-
-/**
- * Copy a directory to a different location.
- *
- * @param parent
- *            {DirectoryEntry} the directory to which to copy the entry
- * @param newName
- *            {DOMString} new name of the entry, defaults to the current name
- * @param successCallback
- *            {Function} called with the new Entry object
- * @param errorCallback
- *            {Function} called with a FileError
- */
-Entry.prototype.copyTo = function(parent, newName, successCallback, errorCallback) {
-    argscheck.checkArgs('oSFF', 'Entry.copyTo', arguments);
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-
-        // source path
-    var srcPath = this.fullPath,
-        // entry name
-        name = newName || this.name,
-        // success callback
-        success = function(entry) {
-            if (entry) {
-                if (successCallback) {
-                    // create appropriate Entry object
-                    var result = (entry.isDirectory) ? new (require('cordova/plugin/DirectoryEntry'))(entry.name, entry.fullPath) : new (require('cordova/plugin/FileEntry'))(entry.name, entry.fullPath);
-                    successCallback(result);
-                }
-            }
-            else {
-                // no Entry object returned
-                fail && fail(FileError.NOT_FOUND_ERR);
-            }
-        };
-
-    // copy
-    exec(success, fail, "File", "copyTo", [srcPath, parent.fullPath, name]);
-};
-
-/**
- * Return a URL that can be used to identify this entry.
- */
-Entry.prototype.toURL = function() {
-    // fullPath attribute contains the full URL
-    return this.fullPath;
-};
-
-/**
- * Returns a URI that can be used to identify this entry.
- *
- * @param {DOMString} mimeType for a FileEntry, the mime type to be used to interpret the file, when loaded through this URI.
- * @return uri
- */
-Entry.prototype.toURI = function(mimeType) {
-    console.log("DEPRECATED: Update your code to use 'toURL'");
-    // fullPath attribute contains the full URI
-    return this.toURL();
-};
-
-/**
- * Remove a file or directory. It is an error to attempt to delete a
- * directory that is not empty. It is an error to attempt to delete a
- * root directory of a file system.
- *
- * @param successCallback {Function} called with no parameters
- * @param errorCallback {Function} called with a FileError
- */
-Entry.prototype.remove = function(successCallback, errorCallback) {
-    argscheck.checkArgs('FF', 'Entry.remove', arguments);
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-    exec(successCallback, fail, "File", "remove", [this.fullPath]);
-};
-
-/**
- * Look up the parent DirectoryEntry of this entry.
- *
- * @param successCallback {Function} called with the parent DirectoryEntry object
- * @param errorCallback {Function} called with a FileError
- */
-Entry.prototype.getParent = function(successCallback, errorCallback) {
-    argscheck.checkArgs('FF', 'Entry.getParent', arguments);
-    var win = successCallback && function(result) {
-        var DirectoryEntry = require('cordova/plugin/DirectoryEntry');
-        var entry = new DirectoryEntry(result.name, result.fullPath);
-        successCallback(entry);
-    };
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-    exec(win, fail, "File", "getParent", [this.fullPath]);
-};
-
-module.exports = Entry;
-
-});
-
-// file: lib/common/plugin/File.js
-define("cordova/plugin/File", function(require, exports, module) {
-
-/**
- * Constructor.
- * name {DOMString} name of the file, without path information
- * fullPath {DOMString} the full path of the file, including the name
- * type {DOMString} mime type
- * lastModifiedDate {Date} last modified date
- * size {Number} size of the file in bytes
- */
-
-var File = function(name, fullPath, type, lastModifiedDate, size){
-    this.name = name || '';
-    this.fullPath = fullPath || null;
-    this.type = type || null;
-    this.lastModifiedDate = lastModifiedDate || null;
-    this.size = size || 0;
-
-    // These store the absolute start and end for slicing the file.
-    this.start = 0;
-    this.end = this.size;
-};
-
-/**
- * Returns a "slice" of the file. Since Cordova Files don't contain the actual
- * content, this really returns a File with adjusted start and end.
- * Slices of slices are supported.
- * start {Number} The index at which to start the slice (inclusive).
- * end {Number} The index at which to end the slice (exclusive).
- */
-File.prototype.slice = function(start, end) {
-    var size = this.end - this.start;
-    var newStart = 0;
-    var newEnd = size;
-    if (arguments.length) {
-        if (start < 0) {
-            newStart = Math.max(size + start, 0);
-        } else {
-            newStart = Math.min(size, start);
-        }
-    }
-
-    if (arguments.length >= 2) {
-        if (end < 0) {
-            newEnd = Math.max(size + end, 0);
-        } else {
-            newEnd = Math.min(end, size);
-        }
-    }
-
-    var newFile = new File(this.name, this.fullPath, this.type, this.lastModifiedData, this.size);
-    newFile.start = this.start + newStart;
-    newFile.end = this.start + newEnd;
-    return newFile;
-};
-
-
-module.exports = File;
-
-});
-
-// file: lib/common/plugin/FileEntry.js
-define("cordova/plugin/FileEntry", function(require, exports, module) {
-
-var utils = require('cordova/utils'),
-    exec = require('cordova/exec'),
-    Entry = require('cordova/plugin/Entry'),
-    FileWriter = require('cordova/plugin/FileWriter'),
-    File = require('cordova/plugin/File'),
-    FileError = require('cordova/plugin/FileError');
-
-/**
- * An interface representing a file on the file system.
- *
- * {boolean} isFile always true (readonly)
- * {boolean} isDirectory always false (readonly)
- * {DOMString} name of the file, excluding the path leading to it (readonly)
- * {DOMString} fullPath the absolute full path to the file (readonly)
- * {FileSystem} filesystem on which the file resides (readonly)
- */
-var FileEntry = function(name, fullPath) {
-     FileEntry.__super__.constructor.apply(this, [true, false, name, fullPath]);
-};
-
-utils.extend(FileEntry, Entry);
-
-/**
- * Creates a new FileWriter associated with the file that this FileEntry represents.
- *
- * @param {Function} successCallback is called with the new FileWriter
- * @param {Function} errorCallback is called with a FileError
- */
-FileEntry.prototype.createWriter = function(successCallback, errorCallback) {
-    this.file(function(filePointer) {
-        var writer = new FileWriter(filePointer);
-
-        if (writer.fileName === null || writer.fileName === "") {
-            errorCallback && errorCallback(new FileError(FileError.INVALID_STATE_ERR));
-        } else {
-            successCallback && successCallback(writer);
-        }
-    }, errorCallback);
-};
-
-/**
- * Returns a File that represents the current state of the file that this FileEntry represents.
- *
- * @param {Function} successCallback is called with the new File object
- * @param {Function} errorCallback is called with a FileError
- */
-FileEntry.prototype.file = function(successCallback, errorCallback) {
-    var win = successCallback && function(f) {
-        var file = new File(f.name, f.fullPath, f.type, f.lastModifiedDate, f.size);
-        successCallback(file);
-    };
-    var fail = errorCallback && function(code) {
-        errorCallback(new FileError(code));
-    };
-    exec(win, fail, "File", "getFileMetadata", [this.fullPath]);
-};
-
-
-module.exports = FileEntry;
-
-});
-
-// file: lib/common/plugin/FileError.js
-define("cordova/plugin/FileError", function(require, exports, module) {
-
-/**
- * FileError
- */
-function FileError(error) {
-  this.code = error || null;
-}
-
-// File error codes
-// Found in DOMException
-FileError.NOT_FOUND_ERR = 1;
-FileError.SECURITY_ERR = 2;
-FileError.ABORT_ERR = 3;
-
-// Added by File API specification
-FileError.NOT_READABLE_ERR = 4;
-FileError.ENCODING_ERR = 5;
-FileError.NO_MODIFICATION_ALLOWED_ERR = 6;
-FileError.INVALID_STATE_ERR = 7;
-FileError.SYNTAX_ERR = 8;
-FileError.INVALID_MODIFICATION_ERR = 9;
-FileError.QUOTA_EXCEEDED_ERR = 10;
-FileError.TYPE_MISMATCH_ERR = 11;
-FileError.PATH_EXISTS_ERR = 12;
-
-module.exports = FileError;
-
-});
-
-// file: lib/common/plugin/FileReader.js
-define("cordova/plugin/FileReader", function(require, exports, module) {
-
-var exec = require('cordova/exec'),
-    modulemapper = require('cordova/modulemapper'),
-    utils = require('cordova/utils'),
-    File = require('cordova/plugin/File'),
-    FileError = require('cordova/plugin/FileError'),
-    ProgressEvent = require('cordova/plugin/ProgressEvent'),
-    origFileReader = modulemapper.getOriginalSymbol(this, 'FileReader');
-
-/**
- * This class reads the mobile device file system.
- *
- * For Android:
- *      The root directory is the root of the file system.
- *      To read from the SD card, the file name is "sdcard/my_file.txt"
- * @constructor
- */
-var FileReader = function() {
-    this._readyState = 0;
-    this._error = null;
-    this._result = null;
-    this._fileName = '';
-    this._realReader = origFileReader ? new origFileReader() : {};
-};
-
-// States
-FileReader.EMPTY = 0;
-FileReader.LOADING = 1;
-FileReader.DONE = 2;
-
-utils.defineGetter(FileReader.prototype, 'readyState', function() {
-    return this._fileName ? this._readyState : this._realReader.readyState;
-});
-
-utils.defineGetter(FileReader.prototype, 'error', function() {
-    return this._fileName ? this._error: this._realReader.error;
-});
-
-utils.defineGetter(FileReader.prototype, 'result', function() {
-    return this._fileName ? this._result: this._realReader.result;
-});
-
-function defineEvent(eventName) {
-    utils.defineGetterSetter(FileReader.prototype, eventName, function() {
-        return this._realReader[eventName] || null;
-    }, function(value) {
-        this._realReader[eventName] = value;
-    });
-}
-defineEvent('onloadstart');    // When the read starts.
-defineEvent('onprogress');     // While reading (and decoding) file or fileBlob data, and reporting partial file data (progress.loaded/progress.total)
-defineEvent('onload');         // When the read has successfully completed.
-defineEvent('onerror');        // When the read has failed (see errors).
-defineEvent('onloadend');      // When the request has completed (either in success or failure).
-defineEvent('onabort');        // When the read has been aborted. For instance, by invoking the abort() method.
-
-function initRead(reader, file) {
-    // Already loading something
-    if (reader.readyState == FileReader.LOADING) {
-      throw new FileError(FileError.INVALID_STATE_ERR);
-    }
-
-    reader._result = null;
-    reader._error = null;
-    reader._readyState = FileReader.LOADING;
-
-    if (typeof file.fullPath == 'string') {
-        reader._fileName = file.fullPath;
-    } else {
-        reader._fileName = '';
-        return true;
-    }
-
-    reader.onloadstart && reader.onloadstart(new ProgressEvent("loadstart", {target:reader}));
-}
-
-/**
- * Abort reading file.
- */
-FileReader.prototype.abort = function() {
-    if (origFileReader && !this._fileName) {
-        return this._realReader.abort();
-    }
-    this._result = null;
-
-    if (this._readyState == FileReader.DONE || this._readyState == FileReader.EMPTY) {
-      return;
-    }
-
-    this._readyState = FileReader.DONE;
-
-    // If abort callback
-    if (typeof this.onabort === 'function') {
-        this.onabort(new ProgressEvent('abort', {target:this}));
-    }
-    // If load end callback
-    if (typeof this.onloadend === 'function') {
-        this.onloadend(new ProgressEvent('loadend', {target:this}));
-    }
-};
-
-/**
- * Read text file.
- *
- * @param file          {File} File object containing file properties
- * @param encoding      [Optional] (see http://www.iana.org/assignments/character-sets)
- */
-FileReader.prototype.readAsText = function(file, encoding) {
-    if (initRead(this, file)) {
-        return this._realReader.readAsText(file, encoding);
-    }
-
-    // Default encoding is UTF-8
-    var enc = encoding ? encoding : "UTF-8";
-    var me = this;
-    var execArgs = [this._fileName, enc, file.start, file.end];
-
-    // Read file
-    exec(
-        // Success callback
-        function(r) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // Save result
-            me._result = r;
-
-            // If onload callback
-            if (typeof me.onload === "function") {
-                me.onload(new ProgressEvent("load", {target:me}));
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        },
-        // Error callback
-        function(e) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            // null result
-            me._result = null;
-
-            // Save error
-            me._error = new FileError(e);
-
-            // If onerror callback
-            if (typeof me.onerror === "function") {
-                me.onerror(new ProgressEvent("error", {target:me}));
-            }
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        }, "File", "readAsText", execArgs);
-};
-
-
-/**
- * Read file and return data as a base64 encoded data url.
- * A data url is of the form:
- *      data:[<mediatype>][;base64],<data>
- *
- * @param file          {File} File object containing file properties
- */
-FileReader.prototype.readAsDataURL = function(file) {
-    if (initRead(this, file)) {
-        return this._realReader.readAsDataURL(file);
-    }
-
-    var me = this;
-    var execArgs = [this._fileName, file.start, file.end];
-
-    // Read file
-    exec(
-        // Success callback
-        function(r) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            // Save result
-            me._result = r;
-
-            // If onload callback
-            if (typeof me.onload === "function") {
-                me.onload(new ProgressEvent("load", {target:me}));
-            }
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        },
-        // Error callback
-        function(e) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            me._result = null;
-
-            // Save error
-            me._error = new FileError(e);
-
-            // If onerror callback
-            if (typeof me.onerror === "function") {
-                me.onerror(new ProgressEvent("error", {target:me}));
-            }
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        }, "File", "readAsDataURL", execArgs);
-};
-
-/**
- * Read file and return data as a binary data.
- *
- * @param file          {File} File object containing file properties
- */
-FileReader.prototype.readAsBinaryString = function(file) {
-    if (initRead(this, file)) {
-        return this._realReader.readAsBinaryString(file);
-    }
-
-    var me = this;
-    var execArgs = [this._fileName, file.start, file.end];
-
-    // Read file
-    exec(
-        // Success callback
-        function(r) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            me._result = r;
-
-            // If onload callback
-            if (typeof me.onload === "function") {
-                me.onload(new ProgressEvent("load", {target:me}));
-            }
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        },
-        // Error callback
-        function(e) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            me._result = null;
-
-            // Save error
-            me._error = new FileError(e);
-
-            // If onerror callback
-            if (typeof me.onerror === "function") {
-                me.onerror(new ProgressEvent("error", {target:me}));
-            }
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        }, "File", "readAsBinaryString", execArgs);
-};
-
-/**
- * Read file and return data as a binary data.
- *
- * @param file          {File} File object containing file properties
- */
-FileReader.prototype.readAsArrayBuffer = function(file) {
-    if (initRead(this, file)) {
-        return this._realReader.readAsArrayBuffer(file);
-    }
-
-    var me = this;
-    var execArgs = [this._fileName, file.start, file.end];
-
-    // Read file
-    exec(
-        // Success callback
-        function(r) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            me._result = r;
-
-            // If onload callback
-            if (typeof me.onload === "function") {
-                me.onload(new ProgressEvent("load", {target:me}));
-            }
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        },
-        // Error callback
-        function(e) {
-            // If DONE (cancelled), then don't do anything
-            if (me._readyState === FileReader.DONE) {
-                return;
-            }
-
-            // DONE state
-            me._readyState = FileReader.DONE;
-
-            me._result = null;
-
-            // Save error
-            me._error = new FileError(e);
-
-            // If onerror callback
-            if (typeof me.onerror === "function") {
-                me.onerror(new ProgressEvent("error", {target:me}));
-            }
-
-            // If onloadend callback
-            if (typeof me.onloadend === "function") {
-                me.onloadend(new ProgressEvent("loadend", {target:me}));
-            }
-        }, "File", "readAsArrayBuffer", execArgs);
-};
-
-module.exports = FileReader;
-
-});
-
-// file: lib/common/plugin/FileSystem.js
-define("cordova/plugin/FileSystem", function(require, exports, module) {
-
-var DirectoryEntry = require('cordova/plugin/DirectoryEntry');
-
-/**
- * An interface representing a file system
- *
- * @constructor
- * {DOMString} name the unique name of the file system (readonly)
- * {DirectoryEntry} root directory of the file system (readonly)
- */
-var FileSystem = function(name, root) {
-    this.name = name || null;
-    if (root) {
-        this.root = new DirectoryEntry(root.name, root.fullPath);
-    }
-};
-
-module.exports = FileSystem;
-
-});
-
-// file: lib/common/plugin/FileTransfer.js
-define("cordova/plugin/FileTransfer", function(require, exports, module) {
-
-var argscheck = require('cordova/argscheck'),
-    exec = require('cordova/exec'),
-    FileTransferError = require('cordova/plugin/FileTransferError'),
-    ProgressEvent = require('cordova/plugin/ProgressEvent');
-
-function newProgressEvent(result) {
-    var pe = new ProgressEvent();
-    pe.lengthComputable = result.lengthComputable;
-    pe.loaded = result.loaded;
-    pe.total = result.total;
-    return pe;
-}
-
-function getBasicAuthHeader(urlString) {
-    var header =  null;
-
-    if (window.btoa) {
-        // parse the url using the Location object
-        var url = document.createElement('a');
-        url.href = urlString;
-
-        var credentials = null;
-        var protocol = url.protocol + "//";
-        var origin = protocol + url.host;
-
-        // check whether there are the username:password credentials in the url
-        if (url.href.indexOf(origin) !== 0) { // credentials found
-            var atIndex = url.href.indexOf("@");
-            credentials = url.href.substring(protocol.length, atIndex);
-        }
-
-        if (credentials) {
-            var authHeader = "Authorization";
-            var authHeaderValue = "Basic " + window.btoa(credentials);
-
-            header = {
-                name : authHeader,
-                value : authHeaderValue
-            };
-        }
-    }
-
-    return header;
-}
-
-var idCounter = 0;
-
-/**
- * FileTransfer uploads a file to a remote server.
- * @constructor
- */
-var FileTransfer = function() {
-    this._id = ++idCounter;
-    this.onprogress = null; // optional callback
-};
-
-/**
-* Given an absolute file path, uploads a file on the device to a remote server
-* using a multipart HTTP request.
-* @param filePath {String}           Full path of the file on the device
-* @param server {String}             URL of the server to receive the file
-* @param successCallback (Function}  Callback to be invoked when upload has completed
-* @param errorCallback {Function}    Callback to be invoked upon error
-* @param options {FileUploadOptions} Optional parameters such as file name and mimetype
-* @param trustAllHosts {Boolean} Optional trust all hosts (e.g. for self-signed certs), defaults to false
-*/
-FileTransfer.prototype.upload = function(filePath, server, successCallback, errorCallback, options, trustAllHosts) {
-    argscheck.checkArgs('ssFFO*', 'FileTransfer.upload', arguments);
-    // check for options
-    var fileKey = null;
-    var fileName = null;
-    var mimeType = null;
-    var params = null;
-    var chunkedMode = true;
-    var headers = null;
-    var httpMethod = null;
-    var basicAuthHeader = getBasicAuthHeader(server);
-    if (basicAuthHeader) {
-        options = options || {};
-        options.headers = options.headers || {};
-        options.headers[basicAuthHeader.name] = basicAuthHeader.value;
-    }
-
-    if (options) {
-        fileKey = options.fileKey;
-        fileName = options.fileName;
-        mimeType = options.mimeType;
-        headers = options.headers;
-        httpMethod = options.httpMethod || "POST";
-        if (httpMethod.toUpperCase() == "PUT"){
-            httpMethod = "PUT";
-        } else {
-            httpMethod = "POST";
-        }
-        if (options.chunkedMode !== null || typeof options.chunkedMode != "undefined") {
-            chunkedMode = options.chunkedMode;
-        }
-        if (options.params) {
-            params = options.params;
-        }
-        else {
-            params = {};
-        }
-    }
-
-    var fail = errorCallback && function(e) {
-        var error = new FileTransferError(e.code, e.source, e.target, e.http_status, e.body);
-        errorCallback(error);
-    };
-
-    var self = this;
-    var win = function(result) {
-        if (typeof result.lengthComputable != "undefined") {
-            if (self.onprogress) {
-                self.onprogress(newProgressEvent(result));
-            }
-        } else {
-            successCallback && successCallback(result);
-        }
-    };
-    exec(win, fail, 'FileTransfer', 'upload', [filePath, server, fileKey, fileName, mimeType, params, trustAllHosts, chunkedMode, headers, this._id, httpMethod]);
-};
-
-/**
- * Downloads a file form a given URL and saves it to the specified directory.
- * @param source {String}          URL of the server to receive the file
- * @param target {String}         Full path of the file on the device
- * @param successCallback (Function}  Callback to be invoked when upload has completed
- * @param errorCallback {Function}    Callback to be invoked upon error
- * @param trustAllHosts {Boolean} Optional trust all hosts (e.g. for self-signed certs), defaults to false
- * @param options {FileDownloadOptions} Optional parameters such as headers
- */
-FileTransfer.prototype.download = function(source, target, successCallback, errorCallback, trustAllHosts, options) {
-    argscheck.checkArgs('ssFF*', 'FileTransfer.download', arguments);
-    var self = this;
-
-    var basicAuthHeader = getBasicAuthHeader(source);
-    if (basicAuthHeader) {
-        options = options || {};
-        options.headers = options.headers || {};
-        options.headers[basicAuthHeader.name] = basicAuthHeader.value;
-    }
-
-    var headers = null;
-    if (options) {
-        headers = options.headers || null;
-    }
-
-    var win = function(result) {
-        if (typeof result.lengthComputable != "undefined") {
-            if (self.onprogress) {
-                return self.onprogress(newProgressEvent(result));
-            }
-        } else if (successCallback) {
-            var entry = null;
-            if (result.isDirectory) {
-                entry = new (require('cordova/plugin/DirectoryEntry'))();
-            }
-            else if (result.isFile) {
-                entry = new (require('cordova/plugin/FileEntry'))();
-            }
-            entry.isDirectory = result.isDirectory;
-            entry.isFile = result.isFile;
-            entry.name = result.name;
-            entry.fullPath = result.fullPath;
-            successCallback(entry);
-        }
-    };
-
-    var fail = errorCallback && function(e) {
-        var error = new FileTr

<TRUNCATED>

[25/50] [abbrv] webworks commit: [CB-4544] Adds a --query flag to query the user for their password when we need it - Rewrite the run script for maintenance

Posted by je...@apache.org.
[CB-4544] Adds a --query flag to query the user for their password when we need it
 - Rewrite the run script for maintenance

  Reviewed By: Bryan Higgins <bh...@blackberry.com>
  Tested By: Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/011f8421
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/011f8421
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/011f8421

Branch: refs/heads/3.1.x
Commit: 011f8421082ecbe14cb4226610d3cd0a652d8199
Parents: f81a762
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Thu Aug 15 10:24:05 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Thu Aug 29 09:41:15 2013 -0400

----------------------------------------------------------------------
 blackberry10/.gitignore                         |   1 +
 blackberry10/bin/lib/utils.js                   |  34 +-
 .../templates/project/cordova/lib/localize.js   |   3 +
 .../bin/templates/project/cordova/lib/run       | 439 ++++++++++---------
 .../project/cordova/lib/target-utils.js         |  40 +-
 blackberry10/package.json                       |   4 +-
 6 files changed, 291 insertions(+), 230 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/011f8421/blackberry10/.gitignore
----------------------------------------------------------------------
diff --git a/blackberry10/.gitignore b/blackberry10/.gitignore
index a87ff43..bd46f91 100644
--- a/blackberry10/.gitignore
+++ b/blackberry10/.gitignore
@@ -18,6 +18,7 @@ build/
 dist/
 bin/node_modules
 bin/templates/project/lib
+bin/templates/project/cordova/lib/utils.js
 example/
 node_modules/
 .tmp

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/011f8421/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index 627cbdd..9831223 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -20,6 +20,7 @@ var fs = require('fs'),
     wrench = require('wrench'),
     localize = require("./localize"),
     os = require('os'),
+    prompt = require("prompt"),
     DEFAULT_BAR_NAME = "bb10app",
     PROPERTY_FILE_NAME = 'blackberry10.json',
     CORDOVA_DIR = '.cordova',
@@ -234,7 +235,7 @@ _self = {
             i;
 
         for (i = 0; i < args.length; i++) {
-            if (args[i].indexOf(" ") !== -1) {
+            if (args[i] && args[i].indexOf(" ") !== -1) {
                 if (!_self.isWindows()) {
                     //remove any escaped spaces on non-Windows platforms and simply use quotes
                     args[i] = args[i].replace(/\\ /g, " ");
@@ -247,6 +248,8 @@ _self = {
 
         //delete _customOptions from options object before sending to exec
         delete options._customOptions;
+        //Use the process env by default
+        options.env = options.env || process.env;
 
         proc = childProcess.exec(args.join(" "), options, callback);
 
@@ -301,6 +304,35 @@ _self = {
 
     genBarName: function () {
         return DEFAULT_BAR_NAME;
+    },
+
+    clone: function (original) {
+        var clone = {};
+        if (typeof original !== "object") {
+            clone = original;
+        } else if (Array.isArray(original)) {
+            clone =original.slice();
+        } else {
+            for (var prop in original) {
+                clone[prop] = original[prop];
+            }
+        }
+
+        return clone;
+    },
+    prompt: function (options, done) {
+        var promptSchema = {
+                properties: {
+                    "property": options
+                }
+            };
+        prompt.start();
+        prompt.colors = false;
+        prompt.message = "";
+        prompt.delimiter = "";
+        prompt.get(promptSchema, function (err, results) {
+            done(err, results.property);
+        });
     }
 
 };

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/011f8421/blackberry10/bin/templates/project/cordova/lib/localize.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/localize.js b/blackberry10/bin/templates/project/cordova/lib/localize.js
index d51629a..df260f8 100755
--- a/blackberry10/bin/templates/project/cordova/lib/localize.js
+++ b/blackberry10/bin/templates/project/cordova/lib/localize.js
@@ -198,6 +198,9 @@ var Localize = require("localize"),
         },
         "PROGRESS_GENERATING_DEBUG_TOKEN": {
             "en": "Generating debug token"
+        },
+        "WARN_RUN_DEVICE_OVERIDES_EMULATOR": {
+            "en": "Skipping emulator detection and detecting device. Please provide only 1 of --target, --device, and --emulator"
         }
 
     }, "", ""); // TODO maybe a bug in localize, must set default locale to "" in order get it to work

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/011f8421/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index 63b7d24..1375859 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -27,30 +27,26 @@ var childProcess = require("child_process"),
     localize = require("./localize"),
     pkgrUtils = require("./packager-utils"),
     debugTokenHelper = require("./debugtoken-helper"),
-    targets = utils.getProperties(),
     program = require('commander'),
     xml2js = require('xml2js'),
-    jWorkflow = require("jWorkflow"),
     logger = require("./logger"),
-    pin,
-    needCreateDebugToken = false,
-    needDeployDebugToken = false,
-    commandStr,
-    target,
-    ip,
-    password,
+    async = require("async"),
+    properties = utils.getProperties(),
     workingdir = path.normalize(__dirname + "/..");
 
-function generateOptions(uninstall) {
+function generateOptions(deployTarget, uninstall) {
     var options = [],
-        barPath = pkgrUtils.escapeStringForShell(path.normalize(__dirname + "/../../build/" + targets.targets[target].type + "/" + utils.genBarName() + ".bar"));
+        barPath = pkgrUtils.escapeStringForShell(
+            path.normalize(__dirname + "/../../build/" +
+                           (deployTarget.type === "device" ? "device" : "simulator") +
+                           "/" + utils.genBarName() + ".bar"));
 
     options.push("-device");
-    options.push(ip);
+    options.push(deployTarget.ip);
 
-    if (password) {
+    if (deployTarget.password) {
         options.push("-password");
-        options.push(password);
+        options.push(deployTarget.password);
     }
 
     options.push("-package");
@@ -80,12 +76,12 @@ function execNativeDeploy(options, callback) {
     }, callback);
 }
 
-function checkDeviceInfo(ip, deviceType, callback) {
+function checkDeviceInfo(ip, deviceType, devicePass, done) {
     var props = utils.getProperties(),
         targetName;
 
-    targetUtils.getDeviceInfo(ip, program["devicepass"], function (device) {
-        if (device.name) {
+    targetUtils.getDeviceInfo(ip, devicePass, function (err, device) {
+        if (!err) {
             targetName = device.name + "-" + device.pin;
             props.targets[targetName] = {
                 ip: ip,
@@ -93,239 +89,262 @@ function checkDeviceInfo(ip, deviceType, callback) {
                 type: deviceType
             };
             utils.writeToPropertiesFile(props);
-            target = targetName;
-            callback();
-        } else {
-            if (deviceType === "device") {
-                console.error("Unable to authenticate with device at " + ip);
-            } else {
-                console.error("Unable to authenticate with simulator at " + ip);
-            }
-
-            if (!program["devicepass"]) {
-                console.error("Please provide device password using --devicepass");
-            }
-
-            process.exit(1);
         }
+        done(err, targetName);
     });
 }
 
-function setTarget(callback) {
-    target = program.args[0] ? program.args[0] : targets.defaultTarget;
-    if (program["device"]) {
-        targetUtils.findConnectedDevice(function (ip) {
-            if (!ip) {
-                console.error("No connected device found");
-                process.exit(1);
-            } else {
-                checkDeviceInfo(ip, "device", callback);
-            }
-        });
-    } else if (program["emulator"]) {
-        targetUtils.findConnectedSimulator(function (ip) {
-            if (!ip) {
-                console.error("No connected BlackBerry 10 simulator found");
-                process.exit(1);
-            } else {
-                checkDeviceInfo(ip, "simulator", callback);
+function getTargetName (done) {
+    var ipFinder = program.device ? targetUtils.findConnectedDevice : targetUtils.findConnectedSimulator,
+        targetType = program.device ? "device" : "emulator";
+
+    if (program.target) {
+        done(null, program.target);
+    } else if (program.device || program.emulator) {
+        if (program.device && program.emulator) {
+            localize.translate("WARN_RUN_DEVICE_OVERIDES_EMULATOR");
+        }
+
+        async.series(
+            {
+                ip: function (done) {
+                    ipFinder(function (ip) {
+                        done(null, ip);
+                    });
+                },
+                devicePass: function (done) {
+                    if (!program.devicepass && program.devicepass !== "") {
+                        if (program.query) {
+                            utils.prompt({description: "Please enter your " + targetType +  " password: ", hidden: true}, done);
+                        } else {
+                            done("Please provide device password using --devicepass");
+                        }
+                    } else {
+                        done(null, program.devicepass);
+                    }
+                }
+            },
+            function (err, results) {
+                if (err) {
+                    done(err);
+                } else if (!results.ip) {
+                    done("No connected BlackBerry 10 " + targetType + " found");
+                } else {
+                    program.devicepass = results.devicePass;
+                    checkDeviceInfo(results.ip, targetType, results.devicePass, done);
+                }
             }
-        });
+        );
     } else {
-        callback();
+        done(null, properties.defaultTarget);
     }
 }
 
-function checkTarget() {
-    if (!target) {
-        console.log("No target exists, to add that target please run target add <name> <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]");
-        console.log(program.helpInformation());
-        return false;
-    }
-    if (!targets.targets[target]) {
-        console.log("The target \"" + target + "\" does not exist, to add that target please run target add " + target + " <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]");
-        console.log(program.helpInformation());
-        return false;
-    }
-    if (targets.targets[target].ip) {
-        ip = targets.targets[target].ip;
-    } else {
-        console.log("IP is not defined in target \"" + target + "\"");
-        console.log(program.helpInformation());
-        return false;
-    }
-    if (targets.targets[target].password) {
-        password = targets.targets[target].password;
+
+function validateTarget(targetName, allDone) {
+    var deployTarget,
+        err,
+        runTasks = [];
+
+    if (!targetName) {
+        err = "No target exists, to add that target please run target add <name> <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]";
+    } else if (!properties.targets[targetName]) {
+        err = "The target \"" + targetName + "\" does not exist, to add that target please run target add " + targetName + " <ip> [-t | --type <device | simulator>] [-p <password>] [--pin <devicepin>]";
     } else {
-        password = program["devicepass"];
+        deployTarget = utils.clone(properties.targets[targetName]);
+        deployTarget.name = targetName;
+
+        if (!deployTarget.ip) {
+            if (program.query) {
+                runTasks.push(function (done) {
+                    utils.prompt({description: "Please enter the IP address for target " + deployTarget.name + ": "}, function (e, ip) {
+                        deployTarget.ip = ip;
+                        done(e);
+                    });
+                });
+            } else {
+                err = "IP is not defined in target \"" + target + "\"";
+            }
+        }
+
+        if (!deployTarget.password && deployTarget.password !== "") {
+            if (program.devicepass || program.devicepass === "") {
+                deployTarget.password = program.devicepass;
+            } else {
+                if (program.query) {
+                    runTasks.push(function (done) {
+                        utils.prompt({description: "Please enter your " + deployTarget.type +  " password: ", hidden: true}, function (e, devicePass) {
+                            deployTarget.password = devicePass;
+                            done(e);
+                        });
+                    });
+                } else {
+                    err = "Please provide device password using --devicepass or add one to the target " + deployTarget.name + " defined at " + utils.getPropertiesFilePath();
+                }
+            }
+        }
     }
-    return true;
-}
 
-function deploy() {
-    var options = generateOptions(false);
-    execNativeDeploy(options, function (code) {
-        if (code) {
-            process.exit(2);
-        } else {
-            process.exit(0);
+    async.series(runTasks, function (e) {
+        var finalErr = err || e;
+        if (!finalErr && deployTarget) {
+            logger.info("Target " + deployTarget.name + " selected");
         }
+        allDone(err || e, deployTarget);
     });
 }
 
-function uninstall() {
+function uninstall(deployTarget, allDone) {
     var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy"),
         args = [
             "-listInstalledApps",
             "-device",
-            ip,
-            "-password",
-            password
-        ];
+            deployTarget.ip
+        ],
+        projectRootDir = path.normalize(path.join(__dirname, "..")),
+        installedAppsOutput,
+        runTasks = [];
 
-    utils.exec(script, args, {
-        "cwd": workingdir,
-        "env": process.env,
-        _customOptions: { silent: true}
-    }, function (error, stdout, stderr) {
-        var parser = new xml2js.Parser();
-        fs.readFile(path.join(__dirname + "/../../www/", "config.xml"), function (err, data) {
-            parser.parseString(data, function (err, result) {
-                if (stdout.indexOf(result['@'].id) !== -1) {
-                    var options = generateOptions(true);
-                    execNativeDeploy(options, function () {
-                        deploy();
-                    });
+    if (program.uninstall) {
+        if (deployTarget.password) {
+            args.push("-password", deployTarget.password);
+        }
+        runTasks = [
+            utils.exec.bind(this, script, args, { "cwd": projectRootDir, _customOptions: {silent: true}}),
+            function listInstalledAppsOutput (stdout, stderr, done) {
+                installedAppsOutput = stdout;
+                fs.readFile(path.join(__dirname + "/../../www/", "config.xml"), done);
+            },
+            function configXMLOutput (result, done) {
+                var parser = new xml2js.Parser();
+                parser.parseString(result, done);
+            },
+            function parsedConfigXMLOutput (result, done) {
+                if (installedAppsOutput.indexOf(result['@'].id) !== -1) {
+                    var options = generateOptions(deployTarget, true);
+                    execNativeDeploy(options, done);
                 } else {
-                    deploy();
+                    done();
                 }
-            });
-        });
-    });
+            }
+
+        ]
+    }
+
+    async.waterfall(runTasks,
+        function (err, results) {
+            //Absorb error for uninstallation
+            allDone(null, deployTarget);
+        }
+    );
 }
 
-function checkDebugtoken(previous, baton) {
-    baton.take();
+function handleDebugToken(deployTarget, allDone) {
+    program.keystorepass = program.keystorepass || properties.keystorepass;
 
     // if target has no pin, skip the debug token feature
-    if (targets.targets[target].pin) {
-        debugTokenHelper.checkDebugToken(targets.targets[target].pin, function (valid) {
-            // If the debug token is not valid, we need create new debug token
-            if (valid) {
-                // No need to create the debug token
+    if (deployTarget.pin) {
+        async.waterfall(
+            [
+                debugTokenHelper.checkDebugToken.bind(this, deployTarget.pin),
+                function (done) {
+                    //If no keystorepass is provided debugTokenHelper will throw an error.
+                    if (!program.keystorepass && program.query) {
+                        utils.prompt({description: "Please enter your keystore password: ", hidden: true}, function (err, result) {
+                            program.keystorepass = result;
+                            done(err, result);
+                        });
+                    } else {
+                        done(program.keystorepass);
+                    }
+                },
+                debugTokenHelper.createToken.bind(this, properties, "all")
+
+        ],
+        function (err, results) {
+            // If the error is true, then the debug token is valid and creation was skipped.
+            if (err === true) {
                 logger.info(localize.translate("PROGRESS_DEBUG_TOKEN_IS_VALID"));
-                needDeployDebugToken = true;
-            } else {
-                needCreateDebugToken = true;
+                //Clear the error so it is still deployed
+                err = null;
             }
-            baton.pass();
-        });
-    } else {
-        baton.pass();
-    }
-}
 
-function createDebugToken(previous, baton) {
-    var keystorepass = program["keystorepass"] ? program["keystorepass"] : targets.keystorepass;
-
-    baton.take();
-
-    if (needCreateDebugToken) {
-        debugTokenHelper.createToken(targets, "all", keystorepass, function (error, stdout, stderr) {
-            if (!error) {
-                // Deploy the debug token if created
-                needDeployDebugToken = true;
+            if (!err) {
+                debugTokenHelper.deployToken(deployTarget.name, deployTarget.ip, deployTarget.password, function (code) {
+                    allDone(code, deployTarget);
+                });
+            } else {
+                allDone(err);
             }
-
-            baton.pass();
-        });
+        }
+        );
     } else {
-        baton.pass();
+        allDone(null, deployTarget);
     }
 }
 
-function deployDebugToken(previous, baton) {
-    baton.take();
-
-    // If in debug build and debug token was created, deploy the debug token and wait until the deployment is finished
-    if (needDeployDebugToken) {
-        debugTokenHelper.deployToken(target, ip, password, function () {
-            baton.pass();
-        });
-    } else {
-        baton.pass();
-    }
+function install(deployTarget, done) {
+    var buildCmd = utils.isWindows() ? "build" : "./build",
+        buildArgs = program.keystorepass ? ["-k", program.keystorepass] : [],
+        projectRootDir = path.normalize(path.join(__dirname, ".."));
+
+    async.series(
+        [
+            utils.exec.bind(this, buildCmd, buildArgs, {"cwd": projectRootDir}),
+            uninstall.bind(this, deployTarget),
+            execNativeDeploy.bind(this, generateOptions(deployTarget))
+        ],
+        done
+    );
 }
 
-function handleBuildOutput(data) {
-    var msg = data.toString().replace(/[\n\r]/g, '');
-    console.log(msg);
-}
 
-function build(previous, baton) {
-    var execName = utils.isWindows() ? "build" : "./build",
-        callback = function (code) {
-            // If error happened during building the bar, exit
-            if (code === 2) {
-                process.exit(2);
-            }
-
-            baton.pass();
-        };
-
-    baton.take();
-
-    utils.exec(execName, [], {
-        "cwd": path.normalize(__dirname + "/.."),
-        "env": process.env
-    }, callback);
-}
-
-function postBuild() {
-    if (program.uninstall) {
-        uninstall();
-    } else {
-        deploy();
-    }
-}
+program
+    .usage('[--device] [--emulator] [--target=<id>]    [--query] [-k | --keystorepass] [-devicepass]    [--no-launch] [--no-uninstall] [--no-build]')
+    .option('-k, --keystorepass <password>', 'the password of signing key; needed for creating debug token')
+    .option('--device', 'run on connected device')
+    .option('--emulator', 'run on BB10 simulator')
+    .option('--devicepass <password>', 'device password')
+    .option('--target <id>', 'specifies the target to run the application')
+    .option('--query', 'query on the commandline when a password is needed')
+    .option('--no-uninstall', 'does not uninstall application from device')
+    .option('--no-launch', 'do not launch the application on device')
+    .option('--no-build', 'deploy the pre-built bar file and skip building')
+    .on('--help', function() {
+        console.log('  Examples:');
+        console.log('');
+        console.log("  Deploying to a predefined target");
+        console.log('    $ run --target=Z10');
+        console.log("  Deploying to a connected device");
+        console.log('    $ run --device --devicepass devicePassword --keystorepass keystorePassword');
+        console.log('');
+    });
 
-function exec() {
-    program
-        .usage('[--device] [--emulator] [--devicepass] [--target=<id>] [-k | --keystorepass] [--no-launch] [--no-uninstall] [--no-build]')
-        .option('-k, --keystorepass <password>', 'the password of signing key; needed for creating debug token')
-        .option('--device', 'run on connected device')
-        .option('--emulator', 'run on BB10 simulator')
-        .option('--devicepass <password>', 'device password')
-        .option('--target', 'specifies the target to run the application')
-        .option('--no-uninstall', 'does not uninstall application from device')
-        .option('--no-launch', 'do not launch the application on device')
-        .option('--no-build', 'deploy the pre-built bar file and skip building');
-
-    commandStr = typeof process.argv[2] === "string" ? process.argv[2] : undefined;
-    if (commandStr && commandStr.indexOf("--target=") === 0) {
-        // Convert "--target=<id>" into "--target id"
-        process.argv[2] = "--target";
-        process.argv.splice(3, 0, commandStr.substring("--target=".length));
+process.argv.forEach(function (argument, index, args) {
+    if (argument.match(/^--target=/)) {
+        args.splice(index, 1, "--target", argument.substr("--target=".length));
     }
-
-    program.parse(process.argv);
-
-    setTarget(function () {
-        if (checkTarget()) {
-            if (program.build) {
-                jWorkflow.order(checkDebugtoken)
-                    .andThen(createDebugToken)
-                    .andThen(deployDebugToken)
-                    .andThen(build)
-                    .andThen(postBuild)
-                    .start();
-            } else {
-                postBuild();
+});
+
+program.parse(process.argv);
+
+async.waterfall(
+    [
+        getTargetName,
+        validateTarget,
+        handleDebugToken,
+        install
+    ],
+    function (err) {
+        if (err) {
+            if (typeof err === "string") {
+                logger.error(err);
+                process.exit(1);
+            } else if (typeof err === "number") {
+                process.exit(err);
             }
         } else {
-            process.exit(1);
+            process.exit(0);
         }
-    });
-}
-
-exec();
+    }
+);

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/011f8421/blackberry10/bin/templates/project/cordova/lib/target-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/target-utils.js b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
index af95296..3e83200 100644
--- a/blackberry10/bin/templates/project/cordova/lib/target-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
@@ -80,7 +80,8 @@ _self = {
         }
 
         bb10_utils.exec(cmd, args, options, function (error, stdout, stderr) {
-            var result = {},
+            var err = error,
+                result = {},
                 name = /modelname::(.*?)(\r?)\n/.exec(stdout),
                 pin = /devicepin::0x(.*?)(\r?)\n/.exec(stdout);
             if (name && name.length > 0) {
@@ -90,30 +91,33 @@ _self = {
                 result.pin = pin[1];
             }
 
-            callback(result);
+            if (!result.name) {
+                if (stdout.indexOf("Error:") !== -1) {
+                    err = stdout.slice(stdout.indexOf("Error:") + 6);
+                } else if (stdout === "" && stderr.indexOf("Error:") === 0) {
+                    err = stderr.slice(7);
+                } else {
+                    err = "Unable to authenticate with BlackBerry 10 device/emulator at " + ip + ".";
+                }
+            }
+
+            callback(err, result);
         });
     },
 
     findConnectedDevice: function (callback) {
         var defaultIp = '169.254.0.1';
         _self.discoverUsb(function (result) {
-            if (result) {
-                _self.checkConnection(result, 'device', function (connection) {
-                    if (connection)  {
-                        callback(result);
-                    } else {
-                        callback();
-                    }
-                });
-            } else {
-                _self.checkConnection(defaultIp, 'device', function (connection) {
-                    if (connection) {
-                        callback(defaultIp);
-                    } else {
-                        callback();
-                    }
-                });
+            if (!result) {
+                result = defaultIp;
             }
+            _self.checkConnection(result, 'device', function (connection) {
+                if (connection)  {
+                    callback(result);
+                } else {
+                    callback();
+                }
+            });
         });
     },
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/011f8421/blackberry10/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/package.json b/blackberry10/package.json
index 166c66a..2185b89 100644
--- a/blackberry10/package.json
+++ b/blackberry10/package.json
@@ -26,7 +26,9 @@
     "validator": "0.4.1",
     "wrench": "1.3.9",
     "shelljs":"0.1.3",
-    "elementtree": "0.1.5"
+    "elementtree": "0.1.5",
+    "prompt": "0.2.11",
+    "async": "0.2.9"
   },
   "devDependencies": {
     "jake":"*",


[18/50] [abbrv] webworks commit: [CB-3798] Refactored all exec calls to use newly created utility exec function to avoid path with spaces errors

Posted by je...@apache.org.
[CB-3798] Refactored all exec calls to use newly created utility exec function to avoid path with spaces errors


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/b6dfddf1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/b6dfddf1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/b6dfddf1

Branch: refs/heads/3.1.x
Commit: b6dfddf1969e0a3b882714df0ec6a56bc818b50f
Parents: ed53b6c
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Wed Aug 14 13:15:33 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Aug 16 10:16:22 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/lib/utils.js                   |  54 ++++-
 .../project/cordova/lib/bar-builder.js          |   8 +-
 .../project/cordova/lib/debugtoken-helper.js    |  39 +---
 .../bin/templates/project/cordova/lib/run       |  81 +++----
 .../project/cordova/lib/signing-helper.js       |  18 +-
 .../project/cordova/lib/target-utils.js         |  29 ++-
 .../bin/templates/project/cordova/lib/utils.js  | 218 -------------------
 .../cordova/unit/spec/lib/signing-helper.js     |  31 ++-
 8 files changed, 138 insertions(+), 340 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index 04fd6f3..627cbdd 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -16,6 +16,7 @@
 
 var fs = require('fs'),
     path = require('path'),
+    childProcess = require('child_process'),
     wrench = require('wrench'),
     localize = require("./localize"),
     os = require('os'),
@@ -201,7 +202,58 @@ _self = {
     },
 
     inQuotes : function (property) {
-        return "\"" + property + "\"";
+        //wrap in quotes if it's not already wrapped
+        if (property.indexOf("\"") === -1) {
+            return "\"" + property + "\"";
+        } else {
+            return property;
+        }
+    },
+
+    exec : function (command, args, options, callback) {
+        //Optional params handling [args, options]
+        if (typeof args === "Object" && !Array.isArray(args)) {
+            callback = options;
+            options = args;
+            args = [];
+        } else if (typeof args === "function"){
+            callback = args;
+            options = {};
+            args = [];
+        } else if (typeof options === "function"){
+            callback = options;
+            options = {};
+        }
+
+        //insert executable portion at begining of arg array
+        args.splice(0, 0, command);
+
+        var pkgrUtils = require("./packager-utils"),
+            customOptions = options._customOptions,
+            proc,
+            i;
+
+        for (i = 0; i < args.length; i++) {
+            if (args[i].indexOf(" ") !== -1) {
+                if (!_self.isWindows()) {
+                    //remove any escaped spaces on non-Windows platforms and simply use quotes
+                    args[i] = args[i].replace(/\\ /g, " ");
+                }
+
+                //put any args with spaces in quotes
+                args[i] = _self.inQuotes(args[i]);
+            }
+        };
+
+        //delete _customOptions from options object before sending to exec
+        delete options._customOptions;
+
+        proc = childProcess.exec(args.join(" "), options, callback);
+
+        if (!customOptions || !customOptions.silent) {
+            proc.stdout.on("data", pkgrUtils.handleProcessOutput);
+            proc.stderr.on("data", pkgrUtils.handleProcessOutput);
+        }
     },
 
     loadModule: function (path) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/bar-builder.js b/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
index 0a955f9..992804c 100644
--- a/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
+++ b/blackberry10/bin/templates/project/cordova/lib/bar-builder.js
@@ -53,8 +53,12 @@ function buildTarget(previous, baton) {
             baton.pass(code);
         } else {
             if (target === "device" && session.isSigningRequired(config)) {
-                signingHelper.execSigner(session, target, function (code) {
-                    baton.pass(code);
+                signingHelper.execSigner(session, target, function (error, stdout, stderr) {
+                    if (error && error.code) {
+                        baton.pass(error.code);
+                    } else {
+                        baton.pass();
+                    }
                 });
             } else {
                 baton.pass(code);

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
index af42fce..0421b6e 100755
--- a/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/debugtoken-helper.js
@@ -100,27 +100,12 @@ function generateDeployTokenOptions(targetIp, targetPassword) {
 }
 
 function execNativeScript(script, options, callback) {
-    var cp,
-        script = path.join(process.env.CORDOVA_BBTOOLS, script);
+    var script = path.join(process.env.CORDOVA_BBTOOLS, script);
 
-    if (pkgrUtils.isWindows()) {
-        script += ".bat";
-    }
-
-    cp = childProcess.spawn(script, options, {
+    utils.exec(script, options, {
         "cwd" : workingDir,
         "env" : process.env
-    });
-
-    cp.stdout.on("data", pkgrUtils.handleProcessOutput);
-
-    cp.stderr.on("data", pkgrUtils.handleProcessOutput);
-
-    cp.on("exit", function (code) {
-        if (callback && typeof callback === "function") {
-            callback(code);
-        }
-    });
+    }, callback);
 }
 
 self.createToken = function (projectProperties, target, keystorepass, callback) {
@@ -176,8 +161,11 @@ self.deployToken = function (target, targetIp, targetPassword, callback) {
 };
 
 self.checkDebugToken = function (pin, callback) {
-    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-nativepackager")),
-        nativePackager;
+    var script = path.normalize(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-nativepackager")),
+        args = [
+            "-listManifest",
+            path.normalize(debugTokenDir)
+        ];
 
     if (!callback || typeof callback !== "function") {
         return;
@@ -188,18 +176,13 @@ self.checkDebugToken = function (pin, callback) {
         return;
     }
 
-    if (pkgrUtils.isWindows()) {
-        script += ".bat";
-    }
-
-    nativePackager = childProcess.exec(path.normalize(script + " -listManifest " + debugTokenDir), {
+    utils.exec(script, args, {
         "cwd": workingDir,
-        "env": process.env
+        "env": process.env,
+        _customOptions: { silent: true}
     }, function (error, stdout, stderr) {
         callback(isDebugTokenValid(pin, stdout));
     });
-
-    return;
 };
 
 module.exports = self;

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index 3ec1b45..63b7d24 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -71,29 +71,13 @@ function generateOptions(uninstall) {
     }
 }
 
-function execNativeDeploy(optionsArray, callback) {
-    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy")),
-        nativeDeploy,
-        options = optionsArray.join(" ");
+function execNativeDeploy(options, callback) {
+    var script = path.normalize(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy"));
 
-    if (pkgrUtils.isWindows()) {
-        script += ".bat";
-    }
-
-    nativeDeploy = childProcess.exec(path.normalize(script + " " + options), {
+    utils.exec(script, options, {
         "cwd": workingdir,
         "env": process.env
-    });
-
-    nativeDeploy.stdout.on("data", pkgrUtils.handleProcessOutput);
-
-    nativeDeploy.stderr.on("data", pkgrUtils.handleProcessOutput);
-
-    nativeDeploy.on("exit", function (code) {
-        if (callback && typeof callback === "function") {
-            callback(code);
-        }
-    });
+    }, callback);
 }
 
 function checkDeviceInfo(ip, deviceType, callback) {
@@ -190,16 +174,19 @@ function deploy() {
 }
 
 function uninstall() {
-    var script = utils.inQuotes(path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy")),
-        nativeDeploy;
-
-    if (pkgrUtils.isWindows()) {
-        script += ".bat";
-    }
-
-    nativeDeploy = childProcess.exec(script + " -listInstalledApps -device " + ip + " -password " + password, {
+    var script = path.join(process.env.CORDOVA_BBTOOLS, "blackberry-deploy"),
+        args = [
+            "-listInstalledApps",
+            "-device",
+            ip,
+            "-password",
+            password
+        ];
+
+    utils.exec(script, args, {
         "cwd": workingdir,
-        "env": process.env
+        "env": process.env,
+        _customOptions: { silent: true}
     }, function (error, stdout, stderr) {
         var parser = new xml2js.Parser();
         fs.readFile(path.join(__dirname + "/../../www/", "config.xml"), function (err, data) {
@@ -244,8 +231,8 @@ function createDebugToken(previous, baton) {
     baton.take();
 
     if (needCreateDebugToken) {
-        debugTokenHelper.createToken(targets, "all", keystorepass, function (code) {
-            if (code === 0) {
+        debugTokenHelper.createToken(targets, "all", keystorepass, function (error, stdout, stderr) {
+            if (!error) {
                 // Deploy the debug token if created
                 needDeployDebugToken = true;
             }
@@ -276,32 +263,22 @@ function handleBuildOutput(data) {
 }
 
 function build(previous, baton) {
-    var nativeDeploy,
-        execName = "./build";
+    var execName = utils.isWindows() ? "build" : "./build",
+        callback = function (code) {
+            // If error happened during building the bar, exit
+            if (code === 2) {
+                process.exit(2);
+            }
 
-    baton.take();
+            baton.pass();
+        };
 
-    if (pkgrUtils.isWindows()) {
-        execName = "build";
-    }
+    baton.take();
 
-    nativeDeploy = childProcess.exec(execName, {
+    utils.exec(execName, [], {
         "cwd": path.normalize(__dirname + "/.."),
         "env": process.env
-    });
-
-    nativeDeploy.stdout.on("data", handleBuildOutput);
-
-    nativeDeploy.stderr.on("data", handleBuildOutput);
-
-    nativeDeploy.on("exit", function (code) {
-        // If error happened during building the bar, exit
-        if (code === 2) {
-            process.exit(2);
-        }
-
-        baton.pass();
-    });
+    }, callback);
 }
 
 function postBuild() {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
index 2fce263..cb7d60d 100644
--- a/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
+++ b/blackberry10/bin/templates/project/cordova/lib/signing-helper.js
@@ -67,10 +67,6 @@ function execSigner(session, target, callback) {
         params = session.getParams("blackberry-signer"),
         args = [];
 
-    if (pkgrUtils.isWindows()) {
-        script += ".bat";
-    }
-
     args.push("-keystore");
     args.push(session.keystore);
     args.push("-storepass");
@@ -88,19 +84,9 @@ function execSigner(session, target, callback) {
 
     args.push(path.resolve(util.format(session.barPath, target)));
 
-    signer = childProcess.spawn(script, args, {
+    utils.exec(script, args, {
         "env": process.env
-    });
-
-    signer.stdout.on("data", pkgrUtils.handleProcessOutput);
-
-    signer.stderr.on("data", pkgrUtils.handleProcessOutput);
-
-    signer.on("exit", function (code) {
-        if (callback && typeof callback === "function") {
-            callback(code);
-        }
-    });
+    }, callback);
 }
 
 _self = {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/templates/project/cordova/lib/target-utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/target-utils.js b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
index cd6829f..af95296 100644
--- a/blackberry10/bin/templates/project/cordova/lib/target-utils.js
+++ b/blackberry10/bin/templates/project/cordova/lib/target-utils.js
@@ -17,7 +17,6 @@
 var _self,
     os = require("os"),
     fs = require('fs'),
-    exec = require('child_process').exec,
     path = require('path'),
     bb10_utils = require('./utils'),
     blackberryProperties = bb10_utils.getProperties();
@@ -66,11 +65,21 @@ _self = {
     },
 
     getDeviceInfo: function (ip, password, callback) {
-        var cmd = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy') + ' -listDeviceInfo ' + ip;
+        var cmd = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy'),
+            args = [
+                '-listDeviceInfo',
+                ip
+            ],
+            options = {
+                _customOptions: { silent: true }
+            };
+
         if (password) {
-            cmd += ' -password ' + password;
+            args.push('-password');
+            args.push(password);
         }
-        exec(cmd, function (error, stdout, stderr) {
+
+        bb10_utils.exec(cmd, args, options, function (error, stdout, stderr) {
             var result = {},
                 name = /modelname::(.*?)(\r?)\n/.exec(stdout),
                 pin = /devicepin::0x(.*?)(\r?)\n/.exec(stdout);
@@ -205,8 +214,16 @@ _self = {
     },
 
     checkConnection: function (ip, type, callback) {
-        var script = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy');
-        exec(script + ' -test ' + ip, function (error, stdout, stderr) {
+        var script = path.join(process.env.CORDOVA_BBTOOLS, 'blackberry-deploy'),
+            args = [
+                '-test',
+                ip
+            ],
+            options = {
+                _customOptions: { silent: true }
+            };
+
+        bb10_utils.exec(script, args, options, function (error, stdout, stderr) {
             // error code 3 corresponds to a connected device, null or "Error: null" in stderr corresponds to connected simulator
             callback((type === 'simulator' && (error === null || stderr.length === 0 || stderr.indexOf('Error: null') >= 0 || stderr.indexOf('Error: Authentication failed') >= 0)) || (type === 'device' && error.code === 3));
         });

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/templates/project/cordova/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/utils.js b/blackberry10/bin/templates/project/cordova/lib/utils.js
deleted file mode 100644
index 8a05ddc..0000000
--- a/blackberry10/bin/templates/project/cordova/lib/utils.js
+++ /dev/null
@@ -1,218 +0,0 @@
-/*
- *  Copyright 2012 Research In Motion Limited.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-var fs = require('fs'),
-    path = require('path'),
-    wrench = require('wrench'),
-    localize = require("./localize"),
-    os = require('os'),
-    DEFAULT_BAR_NAME = "bb10app",
-    PROPERTY_FILE_NAME = 'blackberry10.json',
-    CORDOVA_DIR = '.cordova',
-    DEFAULT_PROPERTY_FILE = {
-        targets: {
-        }
-    },
-    _self;
-
-function swapBytes(buffer) {
-    var l = buffer.length,
-        i,
-        a;
-
-    if (l % 2 === 0x01) {
-        throw localize.translate("EXCEPTION_BUFFER_ERROR");
-    }
-
-    for (i = 0; i < l; i += 2) {
-        a = buffer[i];
-        buffer[i] = buffer[i + 1];
-        buffer[i + 1] = a;
-    }
-
-    return buffer;
-}
-
-_self = {
-    writeFile: function (fileLocation, fileName, fileData) {
-        //If directory does not exist, create it.
-        if (!fs.existsSync(fileLocation)) {
-            wrench.mkdirSyncRecursive(fileLocation, "0755");
-        }
-
-        fs.writeFile(path.join(fileLocation, fileName), fileData, function (err) {
-            if (err) throw err;
-        });
-    },
-
-    copyFile: function (srcFile, destDir, baseDir) {
-        var filename = path.basename(srcFile),
-            fileBuffer = fs.readFileSync(srcFile),
-            fileLocation;
-
-        //if a base directory was provided, determine
-        //folder structure from the relative path of the base folder
-        if (baseDir && srcFile.indexOf(baseDir) === 0) {
-            fileLocation = srcFile.replace(baseDir, destDir);
-            wrench.mkdirSyncRecursive(path.dirname(fileLocation), "0755");
-            fs.writeFileSync(fileLocation, fileBuffer);
-        } else {
-            if (!fs.existsSync(destDir)) {
-                wrench.mkdirSyncRecursive(destDir, "0755");
-            }
-
-            fs.writeFileSync(path.join(destDir, filename), fileBuffer);
-        }
-    },
-
-    listFiles: function (directory, filter) {
-        var files = wrench.readdirSyncRecursive(directory),
-            filteredFiles = [];
-
-        files.forEach(function (file) {
-            //On mac wrench.readdirSyncRecursive does not return absolute paths, so resolve one.
-            file = path.resolve(directory, file);
-
-            if (filter(file)) {
-                filteredFiles.push(file);
-            }
-        });
-
-        return filteredFiles;
-    },
-
-    isWindows: function () {
-        return os.type().toLowerCase().indexOf("windows") >= 0;
-    },
-
-    isArray: function (obj) {
-        return obj.constructor.toString().indexOf("Array") !== -1;
-    },
-
-    isEmpty : function (obj) {
-        for (var prop in obj) {
-            if (obj.hasOwnProperty(prop))
-                return false;
-        }
-        return true;
-    },
-
-    toBoolean: function (myString, defaultVal) {
-        // if defaultVal is not passed, default value is undefined
-        return myString === "true" ? true : myString === "false" ? false : defaultVal;
-    },
-
-    parseUri : function (str) {
-        var i, uri = {},
-            key = [ "source", "scheme", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor" ],
-            matcher = /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(str);
-
-        for (i = key.length - 1; i >= 0; i--) {
-            uri[key[i]] = matcher[i] || "";
-        }
-
-        return uri;
-    },
-
-    // uri - output from parseUri
-    isAbsoluteURI : function (uri) {
-        if (uri && uri.source) {
-            return uri.relative !== uri.source;
-        }
-
-        return false;
-    },
-
-    isLocalURI : function (uri) {
-        return uri && uri.scheme && uri.scheme.toLowerCase() === "local";
-    },
-
-    // Convert node.js Buffer data (encoded) to String
-    bufferToString : function (data) {
-        var s = "";
-        if (Buffer.isBuffer(data)) {
-            if (data.length >= 2 && data[0] === 0xFF && data[1] === 0xFE) {
-                s = data.toString("ucs2", 2);
-            } else if (data.length >= 2 && data[0] === 0xFE && data[1] === 0xFF) {
-                swapBytes(data);
-                s = data.toString("ucs2", 2);
-            } else if (data.length >= 3 && data[0] === 0xEF && data[1] === 0xBB && data[2] === 0xBF) {
-                s = data.toString("utf8", 3);
-            } else {
-                s = data.toString("ascii");
-            }
-        }
-
-        return s;
-    },
-
-    // Wrap object property in an Array if the property is defined and it is not an Array
-    wrapPropertyInArray : function (obj, property) {
-        if (obj && obj[property] && !(obj[property] instanceof Array)) {
-            obj[property] = [ obj[property] ];
-        }
-    },
-
-    loadModule: function (path) {
-        return require(path);
-    },
-
-    findHomePath : function () {
-        return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
-    },
-
-    getCordovaDir: function () {
-        var cordovaPath = path.join(_self.findHomePath(), CORDOVA_DIR);
-
-        if (!fs.existsSync(cordovaPath)) {
-            fs.mkdirSync(cordovaPath);
-        }
-
-        return cordovaPath;
-    },
-
-    getPropertiesFilePath: function () {
-        var propertiesFile = path.join(_self.getCordovaDir(), PROPERTY_FILE_NAME);
-
-        if (!fs.existsSync(propertiesFile)) {
-            _self.writeToPropertiesFile(DEFAULT_PROPERTY_FILE);
-        }
-
-        return propertiesFile;
-    },
-
-    getPropertiesFileName: function () {
-        return PROPERTY_FILE_NAME;
-    },
-
-    getProperties: function () {
-        return require(_self.getPropertiesFilePath());
-    },
-
-    writeToPropertiesFile: function (data) {
-        var contents = JSON.stringify(data, null, 4) + "\n",
-            propertiesFile = path.join(_self.getCordovaDir(), PROPERTY_FILE_NAME);
-
-        fs.writeFileSync(propertiesFile, contents, 'utf-8');
-    },
-
-    genBarName: function() {
-        return DEFAULT_BAR_NAME;
-    }
-
-};
-
-module.exports = _self;

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b6dfddf1/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js b/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
index 8aa37fd..d2a4ab3 100644
--- a/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
+++ b/blackberry10/bin/test/cordova/unit/spec/lib/signing-helper.js
@@ -357,7 +357,7 @@ describe("signing-helper", function () {
             session.storepass = "123";
             session.barPath = path.normalize("c:/%s/" + "Demo.bar");
 
-            spyOn(childProcess, "spawn").andReturn({
+            spyOn(childProcess, "exec").andReturn({
                 stdout: {
                     on: stdoutOn
                 },
@@ -374,39 +374,36 @@ describe("signing-helper", function () {
 
         it("exec blackberry-signer without extra params", function () {
             var callback = jasmine.createSpy("callback"),
-                cmd = "blackberry-signer" + (pkgrUtils.isWindows() ? ".bat" : "");
+                cmd = "blackberry-signer";
 
             session.getParams = jasmine.createSpy("session getParams").andReturn(null);
             signingHelper.execSigner(session, "device", callback);
-            expect(childProcess.spawn).toHaveBeenCalledWith(cmd, ["-keystore", session.keystore, "-storepass", session.storepass, path.resolve("c:/device/Demo.bar")], jasmine.any(Object));
+            expect(childProcess.exec).toHaveBeenCalledWith([cmd, "-keystore", session.keystore, "-storepass", session.storepass, path.resolve("c:/device/Demo.bar")].join(" "), jasmine.any(Object), callback);
             expect(stdoutOn).toHaveBeenCalledWith("data", pkgrUtils.handleProcessOutput);
             expect(stderrOn).toHaveBeenCalledWith("data", pkgrUtils.handleProcessOutput);
-            expect(callback).toHaveBeenCalledWith(0);
         });
 
         it("exec blackberry-signer with extra params", function () {
             var callback = jasmine.createSpy("callback"),
-                cmd = "blackberry-signer" + (pkgrUtils.isWindows() ? ".bat" : "");
+                cmd = "blackberry-signer";
 
             session.getParams = jasmine.createSpy("session getParams").andReturn({
                 "-proxyhost": "abc.com",
                 "-proxyport": "80"
             });
             signingHelper.execSigner(session, "device", callback);
-            expect(childProcess.spawn.mostRecentCall.args[0]).toBe(cmd);
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain("-keystore");
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain(session.keystore);
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain("-storepass");
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain(session.storepass);
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain("-proxyport");
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain("80");
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain("-proxyhost");
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain("abc.com");
-            expect(childProcess.spawn.mostRecentCall.args[1]).toContain(path.resolve("c:/device/Demo.bar"));
-            expect(childProcess.spawn.mostRecentCall.args[1].length).toBe(9);
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain(cmd);
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain("-keystore");
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain(session.keystore);
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain("-storepass");
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain(session.storepass);
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain("-proxyport");
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain("80");
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain("-proxyhost");
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain("abc.com");
+            expect(childProcess.exec.mostRecentCall.args[0]).toContain(path.resolve("c:/device/Demo.bar"));
             expect(stdoutOn).toHaveBeenCalledWith("data", pkgrUtils.handleProcessOutput);
             expect(stderrOn).toHaveBeenCalledWith("data", pkgrUtils.handleProcessOutput);
-            expect(callback).toHaveBeenCalledWith(0);
         });
     });
 });


[32/50] [abbrv] webworks commit: [CB-4785] Fixing --no-build flag for run command

Posted by je...@apache.org.
[CB-4785] Fixing --no-build flag for run command

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/60013029
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/60013029
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/60013029

Branch: refs/heads/3.1.x
Commit: 600130290eda5c3ab0933df1cf30f007e2ec7df7
Parents: 48a6475
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Tue Sep 10 17:03:54 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Sep 12 09:39:35 2013 -0400

----------------------------------------------------------------------
 .../bin/templates/project/cordova/lib/run        | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/60013029/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index a2d1b45..3aa386d 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -286,16 +286,17 @@ function handleDebugToken(deployTarget, allDone) {
 function install(deployTarget, done) {
     var buildCmd = utils.isWindows() ? "build" : "./build",
         buildArgs = program.keystorepass ? ["-k", program.keystorepass] : [],
-        projectRootDir = path.normalize(path.join(__dirname, ".."));
+        projectRootDir = path.normalize(path.join(__dirname, "..")),
+        installTasks = [];
 
-    async.series(
-        [
-            utils.exec.bind(this, buildCmd, buildArgs, {"cwd": projectRootDir}),
-            uninstall.bind(this, deployTarget),
-            execNativeDeploy.bind(this, generateOptions(deployTarget))
-        ],
-        done
-    );
+    if (program.build) {
+        installTasks.push(utils.exec.bind(this, buildCmd, buildArgs, {"cwd": projectRootDir}));
+    }
+
+    installTasks.push(uninstall.bind(this, deployTarget),
+                      execNativeDeploy.bind(this, generateOptions(deployTarget)));
+
+    async.series(installTasks, done);
 }
 
 


[44/50] [abbrv] CB-4876 removal of playbook implementation

Posted by je...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.js
----------------------------------------------------------------------
diff --git a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.js b/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.js
deleted file mode 100644
index 03bf89a..0000000
--- a/playbook/bin/templates/project/www/spec/lib/jasmine-1.2.0/jasmine.js
+++ /dev/null
@@ -1,2529 +0,0 @@
-var isCommonJS = typeof window == "undefined";
-
-/**
- * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
- *
- * @namespace
- */
-var jasmine = {};
-if (isCommonJS) exports.jasmine = jasmine;
-/**
- * @private
- */
-jasmine.unimplementedMethod_ = function() {
-  throw new Error("unimplemented method");
-};
-
-/**
- * Use <code>jasmine.undefined</code> instead of <code>undefined</code>, since <code>undefined</code> is just
- * a plain old variable and may be redefined by somebody else.
- *
- * @private
- */
-jasmine.undefined = jasmine.___undefined___;
-
-/**
- * Show diagnostic messages in the console if set to true
- *
- */
-jasmine.VERBOSE = false;
-
-/**
- * Default interval in milliseconds for event loop yields (e.g. to allow network activity or to refresh the screen with the HTML-based runner). Small values here may result in slow test running. Zero means no updates until all tests have completed.
- *
- */
-jasmine.DEFAULT_UPDATE_INTERVAL = 250;
-
-/**
- * Default timeout interval in milliseconds for waitsFor() blocks.
- */
-jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
-
-jasmine.getGlobal = function() {
-  function getGlobal() {
-    return this;
-  }
-
-  return getGlobal();
-};
-
-/**
- * Allows for bound functions to be compared.  Internal use only.
- *
- * @ignore
- * @private
- * @param base {Object} bound 'this' for the function
- * @param name {Function} function to find
- */
-jasmine.bindOriginal_ = function(base, name) {
-  var original = base[name];
-  if (original.apply) {
-    return function() {
-      return original.apply(base, arguments);
-    };
-  } else {
-    // IE support
-    return jasmine.getGlobal()[name];
-  }
-};
-
-jasmine.setTimeout = jasmine.bindOriginal_(jasmine.getGlobal(), 'setTimeout');
-jasmine.clearTimeout = jasmine.bindOriginal_(jasmine.getGlobal(), 'clearTimeout');
-jasmine.setInterval = jasmine.bindOriginal_(jasmine.getGlobal(), 'setInterval');
-jasmine.clearInterval = jasmine.bindOriginal_(jasmine.getGlobal(), 'clearInterval');
-
-jasmine.MessageResult = function(values) {
-  this.type = 'log';
-  this.values = values;
-  this.trace = new Error(); // todo: test better
-};
-
-jasmine.MessageResult.prototype.toString = function() {
-  var text = "";
-  for (var i = 0; i < this.values.length; i++) {
-    if (i > 0) text += " ";
-    if (jasmine.isString_(this.values[i])) {
-      text += this.values[i];
-    } else {
-      text += jasmine.pp(this.values[i]);
-    }
-  }
-  return text;
-};
-
-jasmine.ExpectationResult = function(params) {
-  this.type = 'expect';
-  this.matcherName = params.matcherName;
-  this.passed_ = params.passed;
-  this.expected = params.expected;
-  this.actual = params.actual;
-  this.message = this.passed_ ? 'Passed.' : params.message;
-
-  var trace = (params.trace || new Error(this.message));
-  this.trace = this.passed_ ? '' : trace;
-};
-
-jasmine.ExpectationResult.prototype.toString = function () {
-  return this.message;
-};
-
-jasmine.ExpectationResult.prototype.passed = function () {
-  return this.passed_;
-};
-
-/**
- * Getter for the Jasmine environment. Ensures one gets created
- */
-jasmine.getEnv = function() {
-  var env = jasmine.currentEnv_ = jasmine.currentEnv_ || new jasmine.Env();
-  return env;
-};
-
-/**
- * @ignore
- * @private
- * @param value
- * @returns {Boolean}
- */
-jasmine.isArray_ = function(value) {
-  return jasmine.isA_("Array", value);
-};
-
-/**
- * @ignore
- * @private
- * @param value
- * @returns {Boolean}
- */
-jasmine.isString_ = function(value) {
-  return jasmine.isA_("String", value);
-};
-
-/**
- * @ignore
- * @private
- * @param value
- * @returns {Boolean}
- */
-jasmine.isNumber_ = function(value) {
-  return jasmine.isA_("Number", value);
-};
-
-/**
- * @ignore
- * @private
- * @param {String} typeName
- * @param value
- * @returns {Boolean}
- */
-jasmine.isA_ = function(typeName, value) {
-  return Object.prototype.toString.apply(value) === '[object ' + typeName + ']';
-};
-
-/**
- * Pretty printer for expecations.  Takes any object and turns it into a human-readable string.
- *
- * @param value {Object} an object to be outputted
- * @returns {String}
- */
-jasmine.pp = function(value) {
-  var stringPrettyPrinter = new jasmine.StringPrettyPrinter();
-  stringPrettyPrinter.format(value);
-  return stringPrettyPrinter.string;
-};
-
-/**
- * Returns true if the object is a DOM Node.
- *
- * @param {Object} obj object to check
- * @returns {Boolean}
- */
-jasmine.isDomNode = function(obj) {
-  return obj.nodeType > 0;
-};
-
-/**
- * Returns a matchable 'generic' object of the class type.  For use in expecations of type when values don't matter.
- *
- * @example
- * // don't care about which function is passed in, as long as it's a function
- * expect(mySpy).toHaveBeenCalledWith(jasmine.any(Function));
- *
- * @param {Class} clazz
- * @returns matchable object of the type clazz
- */
-jasmine.any = function(clazz) {
-  return new jasmine.Matchers.Any(clazz);
-};
-
-/**
- * Returns a matchable subset of a JSON object. For use in expectations when you don't care about all of the
- * attributes on the object.
- *
- * @example
- * // don't care about any other attributes than foo.
- * expect(mySpy).toHaveBeenCalledWith(jasmine.objectContaining({foo: "bar"});
- *
- * @param sample {Object} sample
- * @returns matchable object for the sample
- */
-jasmine.objectContaining = function (sample) {
-    return new jasmine.Matchers.ObjectContaining(sample);
-};
-
-/**
- * Jasmine Spies are test doubles that can act as stubs, spies, fakes or when used in an expecation, mocks.
- *
- * Spies should be created in test setup, before expectations.  They can then be checked, using the standard Jasmine
- * expectation syntax. Spies can be checked if they were called or not and what the calling params were.
- *
- * A Spy has the following fields: wasCalled, callCount, mostRecentCall, and argsForCall (see docs).
- *
- * Spies are torn down at the end of every spec.
- *
- * Note: Do <b>not</b> call new jasmine.Spy() directly - a spy must be created using spyOn, jasmine.createSpy or jasmine.createSpyObj.
- *
- * @example
- * // a stub
- * var myStub = jasmine.createSpy('myStub');  // can be used anywhere
- *
- * // spy example
- * var foo = {
- *   not: function(bool) { return !bool; }
- * }
- *
- * // actual foo.not will not be called, execution stops
- * spyOn(foo, 'not');
-
- // foo.not spied upon, execution will continue to implementation
- * spyOn(foo, 'not').andCallThrough();
- *
- * // fake example
- * var foo = {
- *   not: function(bool) { return !bool; }
- * }
- *
- * // foo.not(val) will return val
- * spyOn(foo, 'not').andCallFake(function(value) {return value;});
- *
- * // mock example
- * foo.not(7 == 7);
- * expect(foo.not).toHaveBeenCalled();
- * expect(foo.not).toHaveBeenCalledWith(true);
- *
- * @constructor
- * @see spyOn, jasmine.createSpy, jasmine.createSpyObj
- * @param {String} name
- */
-jasmine.Spy = function(name) {
-  /**
-   * The name of the spy, if provided.
-   */
-  this.identity = name || 'unknown';
-  /**
-   *  Is this Object a spy?
-   */
-  this.isSpy = true;
-  /**
-   * The actual function this spy stubs.
-   */
-  this.plan = function() {
-  };
-  /**
-   * Tracking of the most recent call to the spy.
-   * @example
-   * var mySpy = jasmine.createSpy('foo');
-   * mySpy(1, 2);
-   * mySpy.mostRecentCall.args = [1, 2];
-   */
-  this.mostRecentCall = {};
-
-  /**
-   * Holds arguments for each call to the spy, indexed by call count
-   * @example
-   * var mySpy = jasmine.createSpy('foo');
-   * mySpy(1, 2);
-   * mySpy(7, 8);
-   * mySpy.mostRecentCall.args = [7, 8];
-   * mySpy.argsForCall[0] = [1, 2];
-   * mySpy.argsForCall[1] = [7, 8];
-   */
-  this.argsForCall = [];
-  this.calls = [];
-};
-
-/**
- * Tells a spy to call through to the actual implemenatation.
- *
- * @example
- * var foo = {
- *   bar: function() { // do some stuff }
- * }
- *
- * // defining a spy on an existing property: foo.bar
- * spyOn(foo, 'bar').andCallThrough();
- */
-jasmine.Spy.prototype.andCallThrough = function() {
-  this.plan = this.originalValue;
-  return this;
-};
-
-/**
- * For setting the return value of a spy.
- *
- * @example
- * // defining a spy from scratch: foo() returns 'baz'
- * var foo = jasmine.createSpy('spy on foo').andReturn('baz');
- *
- * // defining a spy on an existing property: foo.bar() returns 'baz'
- * spyOn(foo, 'bar').andReturn('baz');
- *
- * @param {Object} value
- */
-jasmine.Spy.prototype.andReturn = function(value) {
-  this.plan = function() {
-    return value;
-  };
-  return this;
-};
-
-/**
- * For throwing an exception when a spy is called.
- *
- * @example
- * // defining a spy from scratch: foo() throws an exception w/ message 'ouch'
- * var foo = jasmine.createSpy('spy on foo').andThrow('baz');
- *
- * // defining a spy on an existing property: foo.bar() throws an exception w/ message 'ouch'
- * spyOn(foo, 'bar').andThrow('baz');
- *
- * @param {String} exceptionMsg
- */
-jasmine.Spy.prototype.andThrow = function(exceptionMsg) {
-  this.plan = function() {
-    throw exceptionMsg;
-  };
-  return this;
-};
-
-/**
- * Calls an alternate implementation when a spy is called.
- *
- * @example
- * var baz = function() {
- *   // do some stuff, return something
- * }
- * // defining a spy from scratch: foo() calls the function baz
- * var foo = jasmine.createSpy('spy on foo').andCall(baz);
- *
- * // defining a spy on an existing property: foo.bar() calls an anonymnous function
- * spyOn(foo, 'bar').andCall(function() { return 'baz';} );
- *
- * @param {Function} fakeFunc
- */
-jasmine.Spy.prototype.andCallFake = function(fakeFunc) {
-  this.plan = fakeFunc;
-  return this;
-};
-
-/**
- * Resets all of a spy's the tracking variables so that it can be used again.
- *
- * @example
- * spyOn(foo, 'bar');
- *
- * foo.bar();
- *
- * expect(foo.bar.callCount).toEqual(1);
- *
- * foo.bar.reset();
- *
- * expect(foo.bar.callCount).toEqual(0);
- */
-jasmine.Spy.prototype.reset = function() {
-  this.wasCalled = false;
-  this.callCount = 0;
-  this.argsForCall = [];
-  this.calls = [];
-  this.mostRecentCall = {};
-};
-
-jasmine.createSpy = function(name) {
-
-  var spyObj = function() {
-    spyObj.wasCalled = true;
-    spyObj.callCount++;
-    var args = jasmine.util.argsToArray(arguments);
-    spyObj.mostRecentCall.object = this;
-    spyObj.mostRecentCall.args = args;
-    spyObj.argsForCall.push(args);
-    spyObj.calls.push({object: this, args: args});
-    return spyObj.plan.apply(this, arguments);
-  };
-
-  var spy = new jasmine.Spy(name);
-
-  for (var prop in spy) {
-    spyObj[prop] = spy[prop];
-  }
-
-  spyObj.reset();
-
-  return spyObj;
-};
-
-/**
- * Determines whether an object is a spy.
- *
- * @param {jasmine.Spy|Object} putativeSpy
- * @returns {Boolean}
- */
-jasmine.isSpy = function(putativeSpy) {
-  return putativeSpy && putativeSpy.isSpy;
-};
-
-/**
- * Creates a more complicated spy: an Object that has every property a function that is a spy.  Used for stubbing something
- * large in one call.
- *
- * @param {String} baseName name of spy class
- * @param {Array} methodNames array of names of methods to make spies
- */
-jasmine.createSpyObj = function(baseName, methodNames) {
-  if (!jasmine.isArray_(methodNames) || methodNames.length === 0) {
-    throw new Error('createSpyObj requires a non-empty array of method names to create spies for');
-  }
-  var obj = {};
-  for (var i = 0; i < methodNames.length; i++) {
-    obj[methodNames[i]] = jasmine.createSpy(baseName + '.' + methodNames[i]);
-  }
-  return obj;
-};
-
-/**
- * All parameters are pretty-printed and concatenated together, then written to the current spec's output.
- *
- * Be careful not to leave calls to <code>jasmine.log</code> in production code.
- */
-jasmine.log = function() {
-  var spec = jasmine.getEnv().currentSpec;
-  spec.log.apply(spec, arguments);
-};
-
-/**
- * Function that installs a spy on an existing object's method name.  Used within a Spec to create a spy.
- *
- * @example
- * // spy example
- * var foo = {
- *   not: function(bool) { return !bool; }
- * }
- * spyOn(foo, 'not'); // actual foo.not will not be called, execution stops
- *
- * @see jasmine.createSpy
- * @param obj
- * @param methodName
- * @returns a Jasmine spy that can be chained with all spy methods
- */
-var spyOn = function(obj, methodName) {
-  return jasmine.getEnv().currentSpec.spyOn(obj, methodName);
-};
-if (isCommonJS) exports.spyOn = spyOn;
-
-/**
- * Creates a Jasmine spec that will be added to the current suite.
- *
- * // TODO: pending tests
- *
- * @example
- * it('should be true', function() {
- *   expect(true).toEqual(true);
- * });
- *
- * @param {String} desc description of this specification
- * @param {Function} func defines the preconditions and expectations of the spec
- */
-var it = function(desc, func) {
-  return jasmine.getEnv().it(desc, func);
-};
-if (isCommonJS) exports.it = it;
-
-/**
- * Creates a <em>disabled</em> Jasmine spec.
- *
- * A convenience method that allows existing specs to be disabled temporarily during development.
- *
- * @param {String} desc description of this specification
- * @param {Function} func defines the preconditions and expectations of the spec
- */
-var xit = function(desc, func) {
-  return jasmine.getEnv().xit(desc, func);
-};
-if (isCommonJS) exports.xit = xit;
-
-/**
- * Starts a chain for a Jasmine expectation.
- *
- * It is passed an Object that is the actual value and should chain to one of the many
- * jasmine.Matchers functions.
- *
- * @param {Object} actual Actual value to test against and expected value
- */
-var expect = function(actual) {
-  return jasmine.getEnv().currentSpec.expect(actual);
-};
-if (isCommonJS) exports.expect = expect;
-
-/**
- * Defines part of a jasmine spec.  Used in cominbination with waits or waitsFor in asynchrnous specs.
- *
- * @param {Function} func Function that defines part of a jasmine spec.
- */
-var runs = function(func) {
-  jasmine.getEnv().currentSpec.runs(func);
-};
-if (isCommonJS) exports.runs = runs;
-
-/**
- * Waits a fixed time period before moving to the next block.
- *
- * @deprecated Use waitsFor() instead
- * @param {Number} timeout milliseconds to wait
- */
-var waits = function(timeout) {
-  jasmine.getEnv().currentSpec.waits(timeout);
-};
-if (isCommonJS) exports.waits = waits;
-
-/**
- * Waits for the latchFunction to return true before proceeding to the next block.
- *
- * @param {Function} latchFunction
- * @param {String} optional_timeoutMessage
- * @param {Number} optional_timeout
- */
-var waitsFor = function(latchFunction, optional_timeoutMessage, optional_timeout) {
-  jasmine.getEnv().currentSpec.waitsFor.apply(jasmine.getEnv().currentSpec, arguments);
-};
-if (isCommonJS) exports.waitsFor = waitsFor;
-
-/**
- * A function that is called before each spec in a suite.
- *
- * Used for spec setup, including validating assumptions.
- *
- * @param {Function} beforeEachFunction
- */
-var beforeEach = function(beforeEachFunction) {
-  jasmine.getEnv().beforeEach(beforeEachFunction);
-};
-if (isCommonJS) exports.beforeEach = beforeEach;
-
-/**
- * A function that is called after each spec in a suite.
- *
- * Used for restoring any state that is hijacked during spec execution.
- *
- * @param {Function} afterEachFunction
- */
-var afterEach = function(afterEachFunction) {
-  jasmine.getEnv().afterEach(afterEachFunction);
-};
-if (isCommonJS) exports.afterEach = afterEach;
-
-/**
- * Defines a suite of specifications.
- *
- * Stores the description and all defined specs in the Jasmine environment as one suite of specs. Variables declared
- * are accessible by calls to beforeEach, it, and afterEach. Describe blocks can be nested, allowing for specialization
- * of setup in some tests.
- *
- * @example
- * // TODO: a simple suite
- *
- * // TODO: a simple suite with a nested describe block
- *
- * @param {String} description A string, usually the class under test.
- * @param {Function} specDefinitions function that defines several specs.
- */
-var describe = function(description, specDefinitions) {
-  return jasmine.getEnv().describe(description, specDefinitions);
-};
-if (isCommonJS) exports.describe = describe;
-
-/**
- * Disables a suite of specifications.  Used to disable some suites in a file, or files, temporarily during development.
- *
- * @param {String} description A string, usually the class under test.
- * @param {Function} specDefinitions function that defines several specs.
- */
-var xdescribe = function(description, specDefinitions) {
-  return jasmine.getEnv().xdescribe(description, specDefinitions);
-};
-if (isCommonJS) exports.xdescribe = xdescribe;
-
-
-// Provide the XMLHttpRequest class for IE 5.x-6.x:
-jasmine.XmlHttpRequest = (typeof XMLHttpRequest == "undefined") ? function() {
-  function tryIt(f) {
-    try {
-      return f();
-    } catch(e) {
-    }
-    return null;
-  }
-
-  var xhr = tryIt(function() {
-    return new ActiveXObject("Msxml2.XMLHTTP.6.0");
-  }) ||
-    tryIt(function() {
-      return new ActiveXObject("Msxml2.XMLHTTP.3.0");
-    }) ||
-    tryIt(function() {
-      return new ActiveXObject("Msxml2.XMLHTTP");
-    }) ||
-    tryIt(function() {
-      return new ActiveXObject("Microsoft.XMLHTTP");
-    });
-
-  if (!xhr) throw new Error("This browser does not support XMLHttpRequest.");
-
-  return xhr;
-} : XMLHttpRequest;
-/**
- * @namespace
- */
-jasmine.util = {};
-
-/**
- * Declare that a child class inherit it's prototype from the parent class.
- *
- * @private
- * @param {Function} childClass
- * @param {Function} parentClass
- */
-jasmine.util.inherit = function(childClass, parentClass) {
-  /**
-   * @private
-   */
-  var subclass = function() {
-  };
-  subclass.prototype = parentClass.prototype;
-  childClass.prototype = new subclass();
-};
-
-jasmine.util.formatException = function(e) {
-  var lineNumber;
-  if (e.line) {
-    lineNumber = e.line;
-  }
-  else if (e.lineNumber) {
-    lineNumber = e.lineNumber;
-  }
-
-  var file;
-
-  if (e.sourceURL) {
-    file = e.sourceURL;
-  }
-  else if (e.fileName) {
-    file = e.fileName;
-  }
-
-  var message = (e.name && e.message) ? (e.name + ': ' + e.message) : e.toString();
-
-  if (file && lineNumber) {
-    message += ' in ' + file + ' (line ' + lineNumber + ')';
-  }
-
-  return message;
-};
-
-jasmine.util.htmlEscape = function(str) {
-  if (!str) return str;
-  return str.replace(/&/g, '&amp;')
-    .replace(/</g, '&lt;')
-    .replace(/>/g, '&gt;');
-};
-
-jasmine.util.argsToArray = function(args) {
-  var arrayOfArgs = [];
-  for (var i = 0; i < args.length; i++) arrayOfArgs.push(args[i]);
-  return arrayOfArgs;
-};
-
-jasmine.util.extend = function(destination, source) {
-  for (var property in source) destination[property] = source[property];
-  return destination;
-};
-
-/**
- * Environment for Jasmine
- *
- * @constructor
- */
-jasmine.Env = function() {
-  this.currentSpec = null;
-  this.currentSuite = null;
-  this.currentRunner_ = new jasmine.Runner(this);
-
-  this.reporter = new jasmine.MultiReporter();
-
-  this.updateInterval = jasmine.DEFAULT_UPDATE_INTERVAL;
-  this.defaultTimeoutInterval = jasmine.DEFAULT_TIMEOUT_INTERVAL;
-  this.lastUpdate = 0;
-  this.specFilter = function() {
-    return true;
-  };
-
-  this.nextSpecId_ = 0;
-  this.nextSuiteId_ = 0;
-  this.equalityTesters_ = [];
-
-  // wrap matchers
-  this.matchersClass = function() {
-    jasmine.Matchers.apply(this, arguments);
-  };
-  jasmine.util.inherit(this.matchersClass, jasmine.Matchers);
-
-  jasmine.Matchers.wrapInto_(jasmine.Matchers.prototype, this.matchersClass);
-};
-
-
-jasmine.Env.prototype.setTimeout = jasmine.setTimeout;
-jasmine.Env.prototype.clearTimeout = jasmine.clearTimeout;
-jasmine.Env.prototype.setInterval = jasmine.setInterval;
-jasmine.Env.prototype.clearInterval = jasmine.clearInterval;
-
-/**
- * @returns an object containing jasmine version build info, if set.
- */
-jasmine.Env.prototype.version = function () {
-  if (jasmine.version_) {
-    return jasmine.version_;
-  } else {
-    throw new Error('Version not set');
-  }
-};
-
-/**
- * @returns string containing jasmine version build info, if set.
- */
-jasmine.Env.prototype.versionString = function() {
-  if (!jasmine.version_) {
-    return "version unknown";
-  }
-
-  var version = this.version();
-  var versionString = version.major + "." + version.minor + "." + version.build;
-  if (version.release_candidate) {
-    versionString += ".rc" + version.release_candidate;
-  }
-  versionString += " revision " + version.revision;
-  return versionString;
-};
-
-/**
- * @returns a sequential integer starting at 0
- */
-jasmine.Env.prototype.nextSpecId = function () {
-  return this.nextSpecId_++;
-};
-
-/**
- * @returns a sequential integer starting at 0
- */
-jasmine.Env.prototype.nextSuiteId = function () {
-  return this.nextSuiteId_++;
-};
-
-/**
- * Register a reporter to receive status updates from Jasmine.
- * @param {jasmine.Reporter} reporter An object which will receive status updates.
- */
-jasmine.Env.prototype.addReporter = function(reporter) {
-  this.reporter.addReporter(reporter);
-};
-
-jasmine.Env.prototype.execute = function() {
-  this.currentRunner_.execute();
-};
-
-jasmine.Env.prototype.describe = function(description, specDefinitions) {
-  var suite = new jasmine.Suite(this, description, specDefinitions, this.currentSuite);
-
-  var parentSuite = this.currentSuite;
-  if (parentSuite) {
-    parentSuite.add(suite);
-  } else {
-    this.currentRunner_.add(suite);
-  }
-
-  this.currentSuite = suite;
-
-  var declarationError = null;
-  try {
-    specDefinitions.call(suite);
-  } catch(e) {
-    declarationError = e;
-  }
-
-  if (declarationError) {
-    this.it("encountered a declaration exception", function() {
-      throw declarationError;
-    });
-  }
-
-  this.currentSuite = parentSuite;
-
-  return suite;
-};
-
-jasmine.Env.prototype.beforeEach = function(beforeEachFunction) {
-  if (this.currentSuite) {
-    this.currentSuite.beforeEach(beforeEachFunction);
-  } else {
-    this.currentRunner_.beforeEach(beforeEachFunction);
-  }
-};
-
-jasmine.Env.prototype.currentRunner = function () {
-  return this.currentRunner_;
-};
-
-jasmine.Env.prototype.afterEach = function(afterEachFunction) {
-  if (this.currentSuite) {
-    this.currentSuite.afterEach(afterEachFunction);
-  } else {
-    this.currentRunner_.afterEach(afterEachFunction);
-  }
-
-};
-
-jasmine.Env.prototype.xdescribe = function(desc, specDefinitions) {
-  return {
-    execute: function() {
-    }
-  };
-};
-
-jasmine.Env.prototype.it = function(description, func) {
-  var spec = new jasmine.Spec(this, this.currentSuite, description);
-  this.currentSuite.add(spec);
-  this.currentSpec = spec;
-
-  if (func) {
-    spec.runs(func);
-  }
-
-  return spec;
-};
-
-jasmine.Env.prototype.xit = function(desc, func) {
-  return {
-    id: this.nextSpecId(),
-    runs: function() {
-    }
-  };
-};
-
-jasmine.Env.prototype.compareObjects_ = function(a, b, mismatchKeys, mismatchValues) {
-  if (a.__Jasmine_been_here_before__ === b && b.__Jasmine_been_here_before__ === a) {
-    return true;
-  }
-
-  a.__Jasmine_been_here_before__ = b;
-  b.__Jasmine_been_here_before__ = a;
-
-  var hasKey = function(obj, keyName) {
-    return obj !== null && obj[keyName] !== jasmine.undefined;
-  };
-
-  for (var property in b) {
-    if (!hasKey(a, property) && hasKey(b, property)) {
-      mismatchKeys.push("expected has key '" + property + "', but missing from actual.");
-    }
-  }
-  for (property in a) {
-    if (!hasKey(b, property) && hasKey(a, property)) {
-      mismatchKeys.push("expected missing key '" + property + "', but present in actual.");
-    }
-  }
-  for (property in b) {
-    if (property == '__Jasmine_been_here_before__') continue;
-    if (!this.equals_(a[property], b[property], mismatchKeys, mismatchValues)) {
-      mismatchValues.push("'" + property + "' was '" + (b[property] ? jasmine.util.htmlEscape(b[property].toString()) : b[property]) + "' in expected, but was '" + (a[property] ? jasmine.util.htmlEscape(a[property].toString()) : a[property]) + "' in actual.");
-    }
-  }
-
-  if (jasmine.isArray_(a) && jasmine.isArray_(b) && a.length != b.length) {
-    mismatchValues.push("arrays were not the same length");
-  }
-
-  delete a.__Jasmine_been_here_before__;
-  delete b.__Jasmine_been_here_before__;
-  return (mismatchKeys.length === 0 && mismatchValues.length === 0);
-};
-
-jasmine.Env.prototype.equals_ = function(a, b, mismatchKeys, mismatchValues) {
-  mismatchKeys = mismatchKeys || [];
-  mismatchValues = mismatchValues || [];
-
-  for (var i = 0; i < this.equalityTesters_.length; i++) {
-    var equalityTester = this.equalityTesters_[i];
-    var result = equalityTester(a, b, this, mismatchKeys, mismatchValues);
-    if (result !== jasmine.undefined) return result;
-  }
-
-  if (a === b) return true;
-
-  if (a === jasmine.undefined || a === null || b === jasmine.undefined || b === null) {
-    return (a == jasmine.undefined && b == jasmine.undefined);
-  }
-
-  if (jasmine.isDomNode(a) && jasmine.isDomNode(b)) {
-    return a === b;
-  }
-
-  if (a instanceof Date && b instanceof Date) {
-    return a.getTime() == b.getTime();
-  }
-
-  if (a.jasmineMatches) {
-    return a.jasmineMatches(b);
-  }
-
-  if (b.jasmineMatches) {
-    return b.jasmineMatches(a);
-  }
-
-  if (a instanceof jasmine.Matchers.ObjectContaining) {
-    return a.matches(b);
-  }
-
-  if (b instanceof jasmine.Matchers.ObjectContaining) {
-    return b.matches(a);
-  }
-
-  if (jasmine.isString_(a) && jasmine.isString_(b)) {
-    return (a == b);
-  }
-
-  if (jasmine.isNumber_(a) && jasmine.isNumber_(b)) {
-    return (a == b);
-  }
-
-  if (typeof a === "object" && typeof b === "object") {
-    return this.compareObjects_(a, b, mismatchKeys, mismatchValues);
-  }
-
-  //Straight check
-  return (a === b);
-};
-
-jasmine.Env.prototype.contains_ = function(haystack, needle) {
-  if (jasmine.isArray_(haystack)) {
-    for (var i = 0; i < haystack.length; i++) {
-      if (this.equals_(haystack[i], needle)) return true;
-    }
-    return false;
-  }
-  return haystack.indexOf(needle) >= 0;
-};
-
-jasmine.Env.prototype.addEqualityTester = function(equalityTester) {
-  this.equalityTesters_.push(equalityTester);
-};
-/** No-op base class for Jasmine reporters.
- *
- * @constructor
- */
-jasmine.Reporter = function() {
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.Reporter.prototype.reportRunnerStarting = function(runner) {
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.Reporter.prototype.reportRunnerResults = function(runner) {
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.Reporter.prototype.reportSuiteResults = function(suite) {
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.Reporter.prototype.reportSpecStarting = function(spec) {
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.Reporter.prototype.reportSpecResults = function(spec) {
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.Reporter.prototype.log = function(str) {
-};
-
-/**
- * Blocks are functions with executable code that make up a spec.
- *
- * @constructor
- * @param {jasmine.Env} env
- * @param {Function} func
- * @param {jasmine.Spec} spec
- */
-jasmine.Block = function(env, func, spec) {
-  this.env = env;
-  this.func = func;
-  this.spec = spec;
-};
-
-jasmine.Block.prototype.execute = function(onComplete) {  
-  try {
-    this.func.apply(this.spec);
-  } catch (e) {
-    this.spec.fail(e);
-  }
-  onComplete();
-};
-/** JavaScript API reporter.
- *
- * @constructor
- */
-jasmine.JsApiReporter = function() {
-  this.started = false;
-  this.finished = false;
-  this.suites_ = [];
-  this.results_ = {};
-};
-
-jasmine.JsApiReporter.prototype.reportRunnerStarting = function(runner) {
-  this.started = true;
-  var suites = runner.topLevelSuites();
-  for (var i = 0; i < suites.length; i++) {
-    var suite = suites[i];
-    this.suites_.push(this.summarize_(suite));
-  }
-};
-
-jasmine.JsApiReporter.prototype.suites = function() {
-  return this.suites_;
-};
-
-jasmine.JsApiReporter.prototype.summarize_ = function(suiteOrSpec) {
-  var isSuite = suiteOrSpec instanceof jasmine.Suite;
-  var summary = {
-    id: suiteOrSpec.id,
-    name: suiteOrSpec.description,
-    type: isSuite ? 'suite' : 'spec',
-    children: []
-  };
-  
-  if (isSuite) {
-    var children = suiteOrSpec.children();
-    for (var i = 0; i < children.length; i++) {
-      summary.children.push(this.summarize_(children[i]));
-    }
-  }
-  return summary;
-};
-
-jasmine.JsApiReporter.prototype.results = function() {
-  return this.results_;
-};
-
-jasmine.JsApiReporter.prototype.resultsForSpec = function(specId) {
-  return this.results_[specId];
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.JsApiReporter.prototype.reportRunnerResults = function(runner) {
-  this.finished = true;
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.JsApiReporter.prototype.reportSuiteResults = function(suite) {
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.JsApiReporter.prototype.reportSpecResults = function(spec) {
-  this.results_[spec.id] = {
-    messages: spec.results().getItems(),
-    result: spec.results().failedCount > 0 ? "failed" : "passed"
-  };
-};
-
-//noinspection JSUnusedLocalSymbols
-jasmine.JsApiReporter.prototype.log = function(str) {
-};
-
-jasmine.JsApiReporter.prototype.resultsForSpecs = function(specIds){
-  var results = {};
-  for (var i = 0; i < specIds.length; i++) {
-    var specId = specIds[i];
-    results[specId] = this.summarizeResult_(this.results_[specId]);
-  }
-  return results;
-};
-
-jasmine.JsApiReporter.prototype.summarizeResult_ = function(result){
-  var summaryMessages = [];
-  var messagesLength = result.messages.length;
-  for (var messageIndex = 0; messageIndex < messagesLength; messageIndex++) {
-    var resultMessage = result.messages[messageIndex];
-    summaryMessages.push({
-      text: resultMessage.type == 'log' ? resultMessage.toString() : jasmine.undefined,
-      passed: resultMessage.passed ? resultMessage.passed() : true,
-      type: resultMessage.type,
-      message: resultMessage.message,
-      trace: {
-        stack: resultMessage.passed && !resultMessage.passed() ? resultMessage.trace.stack : jasmine.undefined
-      }
-    });
-  }
-
-  return {
-    result : result.result,
-    messages : summaryMessages
-  };
-};
-
-/**
- * @constructor
- * @param {jasmine.Env} env
- * @param actual
- * @param {jasmine.Spec} spec
- */
-jasmine.Matchers = function(env, actual, spec, opt_isNot) {
-  this.env = env;
-  this.actual = actual;
-  this.spec = spec;
-  this.isNot = opt_isNot || false;
-  this.reportWasCalled_ = false;
-};
-
-// todo: @deprecated as of Jasmine 0.11, remove soon [xw]
-jasmine.Matchers.pp = function(str) {
-  throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!");
-};
-
-// todo: @deprecated Deprecated as of Jasmine 0.10. Rewrite your custom matchers to return true or false. [xw]
-jasmine.Matchers.prototype.report = function(result, failing_message, details) {
-  throw new Error("As of jasmine 0.11, custom matchers must be implemented differently -- please see jasmine docs");
-};
-
-jasmine.Matchers.wrapInto_ = function(prototype, matchersClass) {
-  for (var methodName in prototype) {
-    if (methodName == 'report') continue;
-    var orig = prototype[methodName];
-    matchersClass.prototype[methodName] = jasmine.Matchers.matcherFn_(methodName, orig);
-  }
-};
-
-jasmine.Matchers.matcherFn_ = function(matcherName, matcherFunction) {
-  return function() {
-    var matcherArgs = jasmine.util.argsToArray(arguments);
-    var result = matcherFunction.apply(this, arguments);
-
-    if (this.isNot) {
-      result = !result;
-    }
-
-    if (this.reportWasCalled_) return result;
-
-    var message;
-    if (!result) {
-      if (this.message) {
-        message = this.message.apply(this, arguments);
-        if (jasmine.isArray_(message)) {
-          message = message[this.isNot ? 1 : 0];
-        }
-      } else {
-        var englishyPredicate = matcherName.replace(/[A-Z]/g, function(s) { return ' ' + s.toLowerCase(); });
-        message = "Expected " + jasmine.pp(this.actual) + (this.isNot ? " not " : " ") + englishyPredicate;
-        if (matcherArgs.length > 0) {
-          for (var i = 0; i < matcherArgs.length; i++) {
-            if (i > 0) message += ",";
-            message += " " + jasmine.pp(matcherArgs[i]);
-          }
-        }
-        message += ".";
-      }
-    }
-    var expectationResult = new jasmine.ExpectationResult({
-      matcherName: matcherName,
-      passed: result,
-      expected: matcherArgs.length > 1 ? matcherArgs : matcherArgs[0],
-      actual: this.actual,
-      message: message
-    });
-    this.spec.addMatcherResult(expectationResult);
-    return jasmine.undefined;
-  };
-};
-
-
-
-
-/**
- * toBe: compares the actual to the expected using ===
- * @param expected
- */
-jasmine.Matchers.prototype.toBe = function(expected) {
-  return this.actual === expected;
-};
-
-/**
- * toNotBe: compares the actual to the expected using !==
- * @param expected
- * @deprecated as of 1.0. Use not.toBe() instead.
- */
-jasmine.Matchers.prototype.toNotBe = function(expected) {
-  return this.actual !== expected;
-};
-
-/**
- * toEqual: compares the actual to the expected using common sense equality. Handles Objects, Arrays, etc.
- *
- * @param expected
- */
-jasmine.Matchers.prototype.toEqual = function(expected) {
-  return this.env.equals_(this.actual, expected);
-};
-
-/**
- * toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
- * @param expected
- * @deprecated as of 1.0. Use not.toEqual() instead.
- */
-jasmine.Matchers.prototype.toNotEqual = function(expected) {
-  return !this.env.equals_(this.actual, expected);
-};
-
-/**
- * Matcher that compares the actual to the expected using a regular expression.  Constructs a RegExp, so takes
- * a pattern or a String.
- *
- * @param expected
- */
-jasmine.Matchers.prototype.toMatch = function(expected) {
-  return new RegExp(expected).test(this.actual);
-};
-
-/**
- * Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
- * @param expected
- * @deprecated as of 1.0. Use not.toMatch() instead.
- */
-jasmine.Matchers.prototype.toNotMatch = function(expected) {
-  return !(new RegExp(expected).test(this.actual));
-};
-
-/**
- * Matcher that compares the actual to jasmine.undefined.
- */
-jasmine.Matchers.prototype.toBeDefined = function() {
-  return (this.actual !== jasmine.undefined);
-};
-
-/**
- * Matcher that compares the actual to jasmine.undefined.
- */
-jasmine.Matchers.prototype.toBeUndefined = function() {
-  return (this.actual === jasmine.undefined);
-};
-
-/**
- * Matcher that compares the actual to null.
- */
-jasmine.Matchers.prototype.toBeNull = function() {
-  return (this.actual === null);
-};
-
-/**
- * Matcher that boolean not-nots the actual.
- */
-jasmine.Matchers.prototype.toBeTruthy = function() {
-  return !!this.actual;
-};
-
-
-/**
- * Matcher that boolean nots the actual.
- */
-jasmine.Matchers.prototype.toBeFalsy = function() {
-  return !this.actual;
-};
-
-
-/**
- * Matcher that checks to see if the actual, a Jasmine spy, was called.
- */
-jasmine.Matchers.prototype.toHaveBeenCalled = function() {
-  if (arguments.length > 0) {
-    throw new Error('toHaveBeenCalled does not take arguments, use toHaveBeenCalledWith');
-  }
-
-  if (!jasmine.isSpy(this.actual)) {
-    throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-  }
-
-  this.message = function() {
-    return [
-      "Expected spy " + this.actual.identity + " to have been called.",
-      "Expected spy " + this.actual.identity + " not to have been called."
-    ];
-  };
-
-  return this.actual.wasCalled;
-};
-
-/** @deprecated Use expect(xxx).toHaveBeenCalled() instead */
-jasmine.Matchers.prototype.wasCalled = jasmine.Matchers.prototype.toHaveBeenCalled;
-
-/**
- * Matcher that checks to see if the actual, a Jasmine spy, was not called.
- *
- * @deprecated Use expect(xxx).not.toHaveBeenCalled() instead
- */
-jasmine.Matchers.prototype.wasNotCalled = function() {
-  if (arguments.length > 0) {
-    throw new Error('wasNotCalled does not take arguments');
-  }
-
-  if (!jasmine.isSpy(this.actual)) {
-    throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-  }
-
-  this.message = function() {
-    return [
-      "Expected spy " + this.actual.identity + " to not have been called.",
-      "Expected spy " + this.actual.identity + " to have been called."
-    ];
-  };
-
-  return !this.actual.wasCalled;
-};
-
-/**
- * Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.
- *
- * @example
- *
- */
-jasmine.Matchers.prototype.toHaveBeenCalledWith = function() {
-  var expectedArgs = jasmine.util.argsToArray(arguments);
-  if (!jasmine.isSpy(this.actual)) {
-    throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-  }
-  this.message = function() {
-    if (this.actual.callCount === 0) {
-      // todo: what should the failure message for .not.toHaveBeenCalledWith() be? is this right? test better. [xw]
-      return [
-        "Expected spy " + this.actual.identity + " to have been called with " + jasmine.pp(expectedArgs) + " but it was never called.",
-        "Expected spy " + this.actual.identity + " not to have been called with " + jasmine.pp(expectedArgs) + " but it was."
-      ];
-    } else {
-      return [
-        "Expected spy " + this.actual.identity + " to have been called with " + jasmine.pp(expectedArgs) + " but was called with " + jasmine.pp(this.actual.argsForCall),
-        "Expected spy " + this.actual.identity + " not to have been called with " + jasmine.pp(expectedArgs) + " but was called with " + jasmine.pp(this.actual.argsForCall)
-      ];
-    }
-  };
-
-  return this.env.contains_(this.actual.argsForCall, expectedArgs);
-};
-
-/** @deprecated Use expect(xxx).toHaveBeenCalledWith() instead */
-jasmine.Matchers.prototype.wasCalledWith = jasmine.Matchers.prototype.toHaveBeenCalledWith;
-
-/** @deprecated Use expect(xxx).not.toHaveBeenCalledWith() instead */
-jasmine.Matchers.prototype.wasNotCalledWith = function() {
-  var expectedArgs = jasmine.util.argsToArray(arguments);
-  if (!jasmine.isSpy(this.actual)) {
-    throw new Error('Expected a spy, but got ' + jasmine.pp(this.actual) + '.');
-  }
-
-  this.message = function() {
-    return [
-      "Expected spy not to have been called with " + jasmine.pp(expectedArgs) + " but it was",
-      "Expected spy to have been called with " + jasmine.pp(expectedArgs) + " but it was"
-    ];
-  };
-
-  return !this.env.contains_(this.actual.argsForCall, expectedArgs);
-};
-
-/**
- * Matcher that checks that the expected item is an element in the actual Array.
- *
- * @param {Object} expected
- */
-jasmine.Matchers.prototype.toContain = function(expected) {
-  return this.env.contains_(this.actual, expected);
-};
-
-/**
- * Matcher that checks that the expected item is NOT an element in the actual Array.
- *
- * @param {Object} expected
- * @deprecated as of 1.0. Use not.toContain() instead.
- */
-jasmine.Matchers.prototype.toNotContain = function(expected) {
-  return !this.env.contains_(this.actual, expected);
-};
-
-jasmine.Matchers.prototype.toBeLessThan = function(expected) {
-  return this.actual < expected;
-};
-
-jasmine.Matchers.prototype.toBeGreaterThan = function(expected) {
-  return this.actual > expected;
-};
-
-/**
- * Matcher that checks that the expected item is equal to the actual item
- * up to a given level of decimal precision (default 2).
- *
- * @param {Number} expected
- * @param {Number} precision
- */
-jasmine.Matchers.prototype.toBeCloseTo = function(expected, precision) {
-  if (!(precision === 0)) {
-    precision = precision || 2;
-  }
-  var multiplier = Math.pow(10, precision);
-  var actual = Math.round(this.actual * multiplier);
-  expected = Math.round(expected * multiplier);
-  return expected == actual;
-};
-
-/**
- * Matcher that checks that the expected exception was thrown by the actual.
- *
- * @param {String} expected
- */
-jasmine.Matchers.prototype.toThrow = function(expected) {
-  var result = false;
-  var exception;
-  if (typeof this.actual != 'function') {
-    throw new Error('Actual is not a function');
-  }
-  try {
-    this.actual();
-  } catch (e) {
-    exception = e;
-  }
-  if (exception) {
-    result = (expected === jasmine.undefined || this.env.equals_(exception.message || exception, expected.message || expected));
-  }
-
-  var not = this.isNot ? "not " : "";
-
-  this.message = function() {
-    if (exception && (expected === jasmine.undefined || !this.env.equals_(exception.message || exception, expected.message || expected))) {
-      return ["Expected function " + not + "to throw", expected ? expected.message || expected : "an exception", ", but it threw", exception.message || exception].join(' ');
-    } else {
-      return "Expected function to throw an exception.";
-    }
-  };
-
-  return result;
-};
-
-jasmine.Matchers.Any = function(expectedClass) {
-  this.expectedClass = expectedClass;
-};
-
-jasmine.Matchers.Any.prototype.jasmineMatches = function(other) {
-  if (this.expectedClass == String) {
-    return typeof other == 'string' || other instanceof String;
-  }
-
-  if (this.expectedClass == Number) {
-    return typeof other == 'number' || other instanceof Number;
-  }
-
-  if (this.expectedClass == Function) {
-    return typeof other == 'function' || other instanceof Function;
-  }
-
-  if (this.expectedClass == Object) {
-    return typeof other == 'object';
-  }
-
-  return other instanceof this.expectedClass;
-};
-
-jasmine.Matchers.Any.prototype.jasmineToString = function() {
-  return '<jasmine.any(' + this.expectedClass + ')>';
-};
-
-jasmine.Matchers.ObjectContaining = function (sample) {
-  this.sample = sample;
-};
-
-jasmine.Matchers.ObjectContaining.prototype.jasmineMatches = function(other, mismatchKeys, mismatchValues) {
-  mismatchKeys = mismatchKeys || [];
-  mismatchValues = mismatchValues || [];
-
-  var env = jasmine.getEnv();
-
-  var hasKey = function(obj, keyName) {
-    return obj != null && obj[keyName] !== jasmine.undefined;
-  };
-
-  for (var property in this.sample) {
-    if (!hasKey(other, property) && hasKey(this.sample, property)) {
-      mismatchKeys.push("expected has key '" + property + "', but missing from actual.");
-    }
-    else if (!env.equals_(this.sample[property], other[property], mismatchKeys, mismatchValues)) {
-      mismatchValues.push("'" + property + "' was '" + (other[property] ? jasmine.util.htmlEscape(other[property].toString()) : other[property]) + "' in expected, but was '" + (this.sample[property] ? jasmine.util.htmlEscape(this.sample[property].toString()) : this.sample[property]) + "' in actual.");
-    }
-  }
-
-  return (mismatchKeys.length === 0 && mismatchValues.length === 0);
-};
-
-jasmine.Matchers.ObjectContaining.prototype.jasmineToString = function () {
-  return "<jasmine.objectContaining(" + jasmine.pp(this.sample) + ")>";
-};
-// Mock setTimeout, clearTimeout
-// Contributed by Pivotal Computer Systems, www.pivotalsf.com
-
-jasmine.FakeTimer = function() {
-  this.reset();
-
-  var self = this;
-  self.setTimeout = function(funcToCall, millis) {
-    self.timeoutsMade++;
-    self.scheduleFunction(self.timeoutsMade, funcToCall, millis, false);
-    return self.timeoutsMade;
-  };
-
-  self.setInterval = function(funcToCall, millis) {
-    self.timeoutsMade++;
-    self.scheduleFunction(self.timeoutsMade, funcToCall, millis, true);
-    return self.timeoutsMade;
-  };
-
-  self.clearTimeout = function(timeoutKey) {
-    self.scheduledFunctions[timeoutKey] = jasmine.undefined;
-  };
-
-  self.clearInterval = function(timeoutKey) {
-    self.scheduledFunctions[timeoutKey] = jasmine.undefined;
-  };
-
-};
-
-jasmine.FakeTimer.prototype.reset = function() {
-  this.timeoutsMade = 0;
-  this.scheduledFunctions = {};
-  this.nowMillis = 0;
-};
-
-jasmine.FakeTimer.prototype.tick = function(millis) {
-  var oldMillis = this.nowMillis;
-  var newMillis = oldMillis + millis;
-  this.runFunctionsWithinRange(oldMillis, newMillis);
-  this.nowMillis = newMillis;
-};
-
-jasmine.FakeTimer.prototype.runFunctionsWithinRange = function(oldMillis, nowMillis) {
-  var scheduledFunc;
-  var funcsToRun = [];
-  for (var timeoutKey in this.scheduledFunctions) {
-    scheduledFunc = this.scheduledFunctions[timeoutKey];
-    if (scheduledFunc != jasmine.undefined &&
-        scheduledFunc.runAtMillis >= oldMillis &&
-        scheduledFunc.runAtMillis <= nowMillis) {
-      funcsToRun.push(scheduledFunc);
-      this.scheduledFunctions[timeoutKey] = jasmine.undefined;
-    }
-  }
-
-  if (funcsToRun.length > 0) {
-    funcsToRun.sort(function(a, b) {
-      return a.runAtMillis - b.runAtMillis;
-    });
-    for (var i = 0; i < funcsToRun.length; ++i) {
-      try {
-        var funcToRun = funcsToRun[i];
-        this.nowMillis = funcToRun.runAtMillis;
-        funcToRun.funcToCall();
-        if (funcToRun.recurring) {
-          this.scheduleFunction(funcToRun.timeoutKey,
-              funcToRun.funcToCall,
-              funcToRun.millis,
-              true);
-        }
-      } catch(e) {
-      }
-    }
-    this.runFunctionsWithinRange(oldMillis, nowMillis);
-  }
-};
-
-jasmine.FakeTimer.prototype.scheduleFunction = function(timeoutKey, funcToCall, millis, recurring) {
-  this.scheduledFunctions[timeoutKey] = {
-    runAtMillis: this.nowMillis + millis,
-    funcToCall: funcToCall,
-    recurring: recurring,
-    timeoutKey: timeoutKey,
-    millis: millis
-  };
-};
-
-/**
- * @namespace
- */
-jasmine.Clock = {
-  defaultFakeTimer: new jasmine.FakeTimer(),
-
-  reset: function() {
-    jasmine.Clock.assertInstalled();
-    jasmine.Clock.defaultFakeTimer.reset();
-  },
-
-  tick: function(millis) {
-    jasmine.Clock.assertInstalled();
-    jasmine.Clock.defaultFakeTimer.tick(millis);
-  },
-
-  runFunctionsWithinRange: function(oldMillis, nowMillis) {
-    jasmine.Clock.defaultFakeTimer.runFunctionsWithinRange(oldMillis, nowMillis);
-  },
-
-  scheduleFunction: function(timeoutKey, funcToCall, millis, recurring) {
-    jasmine.Clock.defaultFakeTimer.scheduleFunction(timeoutKey, funcToCall, millis, recurring);
-  },
-
-  useMock: function() {
-    if (!jasmine.Clock.isInstalled()) {
-      var spec = jasmine.getEnv().currentSpec;
-      spec.after(jasmine.Clock.uninstallMock);
-
-      jasmine.Clock.installMock();
-    }
-  },
-
-  installMock: function() {
-    jasmine.Clock.installed = jasmine.Clock.defaultFakeTimer;
-  },
-
-  uninstallMock: function() {
-    jasmine.Clock.assertInstalled();
-    jasmine.Clock.installed = jasmine.Clock.real;
-  },
-
-  real: {
-    setTimeout: jasmine.getGlobal().setTimeout,
-    clearTimeout: jasmine.getGlobal().clearTimeout,
-    setInterval: jasmine.getGlobal().setInterval,
-    clearInterval: jasmine.getGlobal().clearInterval
-  },
-
-  assertInstalled: function() {
-    if (!jasmine.Clock.isInstalled()) {
-      throw new Error("Mock clock is not installed, use jasmine.Clock.useMock()");
-    }
-  },
-
-  isInstalled: function() {
-    return jasmine.Clock.installed == jasmine.Clock.defaultFakeTimer;
-  },
-
-  installed: null
-};
-jasmine.Clock.installed = jasmine.Clock.real;
-
-//else for IE support
-jasmine.getGlobal().setTimeout = function(funcToCall, millis) {
-  if (jasmine.Clock.installed.setTimeout.apply) {
-    return jasmine.Clock.installed.setTimeout.apply(this, arguments);
-  } else {
-    return jasmine.Clock.installed.setTimeout(funcToCall, millis);
-  }
-};
-
-jasmine.getGlobal().setInterval = function(funcToCall, millis) {
-  if (jasmine.Clock.installed.setInterval.apply) {
-    return jasmine.Clock.installed.setInterval.apply(this, arguments);
-  } else {
-    return jasmine.Clock.installed.setInterval(funcToCall, millis);
-  }
-};
-
-jasmine.getGlobal().clearTimeout = function(timeoutKey) {
-  if (jasmine.Clock.installed.clearTimeout.apply) {
-    return jasmine.Clock.installed.clearTimeout.apply(this, arguments);
-  } else {
-    return jasmine.Clock.installed.clearTimeout(timeoutKey);
-  }
-};
-
-jasmine.getGlobal().clearInterval = function(timeoutKey) {
-  if (jasmine.Clock.installed.clearTimeout.apply) {
-    return jasmine.Clock.installed.clearInterval.apply(this, arguments);
-  } else {
-    return jasmine.Clock.installed.clearInterval(timeoutKey);
-  }
-};
-
-/**
- * @constructor
- */
-jasmine.MultiReporter = function() {
-  this.subReporters_ = [];
-};
-jasmine.util.inherit(jasmine.MultiReporter, jasmine.Reporter);
-
-jasmine.MultiReporter.prototype.addReporter = function(reporter) {
-  this.subReporters_.push(reporter);
-};
-
-(function() {
-  var functionNames = [
-    "reportRunnerStarting",
-    "reportRunnerResults",
-    "reportSuiteResults",
-    "reportSpecStarting",
-    "reportSpecResults",
-    "log"
-  ];
-  for (var i = 0; i < functionNames.length; i++) {
-    var functionName = functionNames[i];
-    jasmine.MultiReporter.prototype[functionName] = (function(functionName) {
-      return function() {
-        for (var j = 0; j < this.subReporters_.length; j++) {
-          var subReporter = this.subReporters_[j];
-          if (subReporter[functionName]) {
-            subReporter[functionName].apply(subReporter, arguments);
-          }
-        }
-      };
-    })(functionName);
-  }
-})();
-/**
- * Holds results for a set of Jasmine spec. Allows for the results array to hold another jasmine.NestedResults
- *
- * @constructor
- */
-jasmine.NestedResults = function() {
-  /**
-   * The total count of results
-   */
-  this.totalCount = 0;
-  /**
-   * Number of passed results
-   */
-  this.passedCount = 0;
-  /**
-   * Number of failed results
-   */
-  this.failedCount = 0;
-  /**
-   * Was this suite/spec skipped?
-   */
-  this.skipped = false;
-  /**
-   * @ignore
-   */
-  this.items_ = [];
-};
-
-/**
- * Roll up the result counts.
- *
- * @param result
- */
-jasmine.NestedResults.prototype.rollupCounts = function(result) {
-  this.totalCount += result.totalCount;
-  this.passedCount += result.passedCount;
-  this.failedCount += result.failedCount;
-};
-
-/**
- * Adds a log message.
- * @param values Array of message parts which will be concatenated later.
- */
-jasmine.NestedResults.prototype.log = function(values) {
-  this.items_.push(new jasmine.MessageResult(values));
-};
-
-/**
- * Getter for the results: message & results.
- */
-jasmine.NestedResults.prototype.getItems = function() {
-  return this.items_;
-};
-
-/**
- * Adds a result, tracking counts (total, passed, & failed)
- * @param {jasmine.ExpectationResult|jasmine.NestedResults} result
- */
-jasmine.NestedResults.prototype.addResult = function(result) {
-  if (result.type != 'log') {
-    if (result.items_) {
-      this.rollupCounts(result);
-    } else {
-      this.totalCount++;
-      if (result.passed()) {
-        this.passedCount++;
-      } else {
-        this.failedCount++;
-      }
-    }
-  }
-  this.items_.push(result);
-};
-
-/**
- * @returns {Boolean} True if <b>everything</b> below passed
- */
-jasmine.NestedResults.prototype.passed = function() {
-  return this.passedCount === this.totalCount;
-};
-/**
- * Base class for pretty printing for expectation results.
- */
-jasmine.PrettyPrinter = function() {
-  this.ppNestLevel_ = 0;
-};
-
-/**
- * Formats a value in a nice, human-readable string.
- *
- * @param value
- */
-jasmine.PrettyPrinter.prototype.format = function(value) {
-  if (this.ppNestLevel_ > 40) {
-    throw new Error('jasmine.PrettyPrinter: format() nested too deeply!');
-  }
-
-  this.ppNestLevel_++;
-  try {
-    if (value === jasmine.undefined) {
-      this.emitScalar('undefined');
-    } else if (value === null) {
-      this.emitScalar('null');
-    } else if (value === jasmine.getGlobal()) {
-      this.emitScalar('<global>');
-    } else if (value.jasmineToString) {
-      this.emitScalar(value.jasmineToString());
-    } else if (typeof value === 'string') {
-      this.emitString(value);
-    } else if (jasmine.isSpy(value)) {
-      this.emitScalar("spy on " + value.identity);
-    } else if (value instanceof RegExp) {
-      this.emitScalar(value.toString());
-    } else if (typeof value === 'function') {
-      this.emitScalar('Function');
-    } else if (typeof value.nodeType === 'number') {
-      this.emitScalar('HTMLNode');
-    } else if (value instanceof Date) {
-      this.emitScalar('Date(' + value + ')');
-    } else if (value.__Jasmine_been_here_before__) {
-      this.emitScalar('<circular reference: ' + (jasmine.isArray_(value) ? 'Array' : 'Object') + '>');
-    } else if (jasmine.isArray_(value) || typeof value == 'object') {
-      value.__Jasmine_been_here_before__ = true;
-      if (jasmine.isArray_(value)) {
-        this.emitArray(value);
-      } else {
-        this.emitObject(value);
-      }
-      delete value.__Jasmine_been_here_before__;
-    } else {
-      this.emitScalar(value.toString());
-    }
-  } finally {
-    this.ppNestLevel_--;
-  }
-};
-
-jasmine.PrettyPrinter.prototype.iterateObject = function(obj, fn) {
-  for (var property in obj) {
-    if (property == '__Jasmine_been_here_before__') continue;
-    fn(property, obj.__lookupGetter__ ? (obj.__lookupGetter__(property) !== jasmine.undefined && 
-                                         obj.__lookupGetter__(property) !== null) : false);
-  }
-};
-
-jasmine.PrettyPrinter.prototype.emitArray = jasmine.unimplementedMethod_;
-jasmine.PrettyPrinter.prototype.emitObject = jasmine.unimplementedMethod_;
-jasmine.PrettyPrinter.prototype.emitScalar = jasmine.unimplementedMethod_;
-jasmine.PrettyPrinter.prototype.emitString = jasmine.unimplementedMethod_;
-
-jasmine.StringPrettyPrinter = function() {
-  jasmine.PrettyPrinter.call(this);
-
-  this.string = '';
-};
-jasmine.util.inherit(jasmine.StringPrettyPrinter, jasmine.PrettyPrinter);
-
-jasmine.StringPrettyPrinter.prototype.emitScalar = function(value) {
-  this.append(value);
-};
-
-jasmine.StringPrettyPrinter.prototype.emitString = function(value) {
-  this.append("'" + value + "'");
-};
-
-jasmine.StringPrettyPrinter.prototype.emitArray = function(array) {
-  this.append('[ ');
-  for (var i = 0; i < array.length; i++) {
-    if (i > 0) {
-      this.append(', ');
-    }
-    this.format(array[i]);
-  }
-  this.append(' ]');
-};
-
-jasmine.StringPrettyPrinter.prototype.emitObject = function(obj) {
-  var self = this;
-  this.append('{ ');
-  var first = true;
-
-  this.iterateObject(obj, function(property, isGetter) {
-    if (first) {
-      first = false;
-    } else {
-      self.append(', ');
-    }
-
-    self.append(property);
-    self.append(' : ');
-    if (isGetter) {
-      self.append('<getter>');
-    } else {
-      self.format(obj[property]);
-    }
-  });
-
-  this.append(' }');
-};
-
-jasmine.StringPrettyPrinter.prototype.append = function(value) {
-  this.string += value;
-};
-jasmine.Queue = function(env) {
-  this.env = env;
-  this.blocks = [];
-  this.running = false;
-  this.index = 0;
-  this.offset = 0;
-  this.abort = false;
-};
-
-jasmine.Queue.prototype.addBefore = function(block) {
-  this.blocks.unshift(block);
-};
-
-jasmine.Queue.prototype.add = function(block) {
-  this.blocks.push(block);
-};
-
-jasmine.Queue.prototype.insertNext = function(block) {
-  this.blocks.splice((this.index + this.offset + 1), 0, block);
-  this.offset++;
-};
-
-jasmine.Queue.prototype.start = function(onComplete) {
-  this.running = true;
-  this.onComplete = onComplete;
-  this.next_();
-};
-
-jasmine.Queue.prototype.isRunning = function() {
-  return this.running;
-};
-
-jasmine.Queue.LOOP_DONT_RECURSE = true;
-
-jasmine.Queue.prototype.next_ = function() {
-  var self = this;
-  var goAgain = true;
-
-  while (goAgain) {
-    goAgain = false;
-    
-    if (self.index < self.blocks.length && !this.abort) {
-      var calledSynchronously = true;
-      var completedSynchronously = false;
-
-      var onComplete = function () {
-        if (jasmine.Queue.LOOP_DONT_RECURSE && calledSynchronously) {
-          completedSynchronously = true;
-          return;
-        }
-
-        if (self.blocks[self.index].abort) {
-          self.abort = true;
-        }
-
-        self.offset = 0;
-        self.index++;
-
-        var now = new Date().getTime();
-        if (self.env.updateInterval && now - self.env.lastUpdate > self.env.updateInterval) {
-          self.env.lastUpdate = now;
-          self.env.setTimeout(function() {
-            self.next_();
-          }, 0);
-        } else {
-          if (jasmine.Queue.LOOP_DONT_RECURSE && completedSynchronously) {
-            goAgain = true;
-          } else {
-            self.next_();
-          }
-        }
-      };
-      self.blocks[self.index].execute(onComplete);
-
-      calledSynchronously = false;
-      if (completedSynchronously) {
-        onComplete();
-      }
-      
-    } else {
-      self.running = false;
-      if (self.onComplete) {
-        self.onComplete();
-      }
-    }
-  }
-};
-
-jasmine.Queue.prototype.results = function() {
-  var results = new jasmine.NestedResults();
-  for (var i = 0; i < this.blocks.length; i++) {
-    if (this.blocks[i].results) {
-      results.addResult(this.blocks[i].results());
-    }
-  }
-  return results;
-};
-
-
-/**
- * Runner
- *
- * @constructor
- * @param {jasmine.Env} env
- */
-jasmine.Runner = function(env) {
-  var self = this;
-  self.env = env;
-  self.queue = new jasmine.Queue(env);
-  self.before_ = [];
-  self.after_ = [];
-  self.suites_ = [];
-};
-
-jasmine.Runner.prototype.execute = function() {
-  var self = this;
-  if (self.env.reporter.reportRunnerStarting) {
-    self.env.reporter.reportRunnerStarting(this);
-  }
-  self.queue.start(function () {
-    self.finishCallback();
-  });
-};
-
-jasmine.Runner.prototype.beforeEach = function(beforeEachFunction) {
-  beforeEachFunction.typeName = 'beforeEach';
-  this.before_.splice(0,0,beforeEachFunction);
-};
-
-jasmine.Runner.prototype.afterEach = function(afterEachFunction) {
-  afterEachFunction.typeName = 'afterEach';
-  this.after_.splice(0,0,afterEachFunction);
-};
-
-
-jasmine.Runner.prototype.finishCallback = function() {
-  this.env.reporter.reportRunnerResults(this);
-};
-
-jasmine.Runner.prototype.addSuite = function(suite) {
-  this.suites_.push(suite);
-};
-
-jasmine.Runner.prototype.add = function(block) {
-  if (block instanceof jasmine.Suite) {
-    this.addSuite(block);
-  }
-  this.queue.add(block);
-};
-
-jasmine.Runner.prototype.specs = function () {
-  var suites = this.suites();
-  var specs = [];
-  for (var i = 0; i < suites.length; i++) {
-    specs = specs.concat(suites[i].specs());
-  }
-  return specs;
-};
-
-jasmine.Runner.prototype.suites = function() {
-  return this.suites_;
-};
-
-jasmine.Runner.prototype.topLevelSuites = function() {
-  var topLevelSuites = [];
-  for (var i = 0; i < this.suites_.length; i++) {
-    if (!this.suites_[i].parentSuite) {
-      topLevelSuites.push(this.suites_[i]);
-    }
-  }
-  return topLevelSuites;
-};
-
-jasmine.Runner.prototype.results = function() {
-  return this.queue.results();
-};
-/**
- * Internal representation of a Jasmine specification, or test.
- *
- * @constructor
- * @param {jasmine.Env} env
- * @param {jasmine.Suite} suite
- * @param {String} description
- */
-jasmine.Spec = function(env, suite, description) {
-  if (!env) {
-    throw new Error('jasmine.Env() required');
-  }
-  if (!suite) {
-    throw new Error('jasmine.Suite() required');
-  }
-  var spec = this;
-  spec.id = env.nextSpecId ? env.nextSpecId() : null;
-  spec.env = env;
-  spec.suite = suite;
-  spec.description = description;
-  spec.queue = new jasmine.Queue(env);
-
-  spec.afterCallbacks = [];
-  spec.spies_ = [];
-
-  spec.results_ = new jasmine.NestedResults();
-  spec.results_.description = description;
-  spec.matchersClass = null;
-};
-
-jasmine.Spec.prototype.getFullName = function() {
-  return this.suite.getFullName() + ' ' + this.description + '.';
-};
-
-
-jasmine.Spec.prototype.results = function() {
-  return this.results_;
-};
-
-/**
- * All parameters are pretty-printed and concatenated together, then written to the spec's output.
- *
- * Be careful not to leave calls to <code>jasmine.log</code> in production code.
- */
-jasmine.Spec.prototype.log = function() {
-  return this.results_.log(arguments);
-};
-
-jasmine.Spec.prototype.runs = function (func) {
-  var block = new jasmine.Block(this.env, func, this);
-  this.addToQueue(block);
-  return this;
-};
-
-jasmine.Spec.prototype.addToQueue = function (block) {
-  if (this.queue.isRunning()) {
-    this.queue.insertNext(block);
-  } else {
-    this.queue.add(block);
-  }
-};
-
-/**
- * @param {jasmine.ExpectationResult} result
- */
-jasmine.Spec.prototype.addMatcherResult = function(result) {
-  this.results_.addResult(result);
-};
-
-jasmine.Spec.prototype.expect = function(actual) {
-  var positive = new (this.getMatchersClass_())(this.env, actual, this);
-  positive.not = new (this.getMatchersClass_())(this.env, actual, this, true);
-  return positive;
-};
-
-/**
- * Waits a fixed time period before moving to the next block.
- *
- * @deprecated Use waitsFor() instead
- * @param {Number} timeout milliseconds to wait
- */
-jasmine.Spec.prototype.waits = function(timeout) {
-  var waitsFunc = new jasmine.WaitsBlock(this.env, timeout, this);
-  this.addToQueue(waitsFunc);
-  return this;
-};
-
-/**
- * Waits for the latchFunction to return true before proceeding to the next block.
- *
- * @param {Function} latchFunction
- * @param {String} optional_timeoutMessage
- * @param {Number} optional_timeout
- */
-jasmine.Spec.prototype.waitsFor = function(latchFunction, optional_timeoutMessage, optional_timeout) {
-  var latchFunction_ = null;
-  var optional_timeoutMessage_ = null;
-  var optional_timeout_ = null;
-
-  for (var i = 0; i < arguments.length; i++) {
-    var arg = arguments[i];
-    switch (typeof arg) {
-      case 'function':
-        latchFunction_ = arg;
-        break;
-      case 'string':
-        optional_timeoutMessage_ = arg;
-        break;
-      case 'number':
-        optional_timeout_ = arg;
-        break;
-    }
-  }
-
-  var waitsForFunc = new jasmine.WaitsForBlock(this.env, optional_timeout_, latchFunction_, optional_timeoutMessage_, this);
-  this.addToQueue(waitsForFunc);
-  return this;
-};
-
-jasmine.Spec.prototype.fail = function (e) {
-  var expectationResult = new jasmine.ExpectationResult({
-    passed: false,
-    message: e ? jasmine.util.formatException(e) : 'Exception',
-    trace: { stack: e.stack }
-  });
-  this.results_.addResult(expectationResult);
-};
-
-jasmine.Spec.prototype.getMatchersClass_ = function() {
-  return this.matchersClass || this.env.matchersClass;
-};
-
-jasmine.Spec.prototype.addMatchers = function(matchersPrototype) {
-  var parent = this.getMatchersClass_();
-  var newMatchersClass = function() {
-    parent.apply(this, arguments);
-  };
-  jasmine.util.inherit(newMatchersClass, parent);
-  jasmine.Matchers.wrapInto_(matchersPrototype, newMatchersClass);
-  this.matchersClass = newMatchersClass;
-};
-
-jasmine.Spec.prototype.finishCallback = function() {
-  this.env.reporter.reportSpecResults(this);
-};
-
-jasmine.Spec.prototype.finish = function(onComplete) {
-  this.removeAllSpies();
-  this.finishCallback();
-  if (onComplete) {
-    onComplete();
-  }
-};
-
-jasmine.Spec.prototype.after = function(doAfter) {
-  if (this.queue.isRunning()) {
-    this.queue.add(new jasmine.Block(this.env, doAfter, this));
-  } else {
-    this.afterCallbacks.unshift(doAfter);
-  }
-};
-
-jasmine.Spec.prototype.execute = function(onComplete) {
-  var spec = this;
-  if (!spec.env.specFilter(spec)) {
-    spec.results_.skipped = true;
-    spec.finish(onComplete);
-    return;
-  }
-
-  this.env.reporter.reportSpecStarting(this);
-
-  spec.env.currentSpec = spec;
-
-  spec.addBeforesAndAftersToQueue();
-
-  spec.queue.start(function () {
-    spec.finish(onComplete);
-  });
-};
-
-jasmine.Spec.prototype.addBeforesAndAftersToQueue = function() {
-  var runner = this.env.currentRunner();
-  var i;
-
-  for (var suite = this.suite; suite; suite = suite.parentSuite) {
-    for (i = 0; i < suite.before_.length; i++) {
-      this.queue.addBefore(new jasmine.Block(this.env, suite.before_[i], this));
-    }
-  }
-  for (i = 0; i < runner.before_.length; i++) {
-    this.queue.addBefore(new jasmine.Block(this.env, runner.before_[i], this));
-  }
-  for (i = 0; i < this.afterCallbacks.length; i++) {
-    this.queue.add(new jasmine.Block(this.env, this.afterCallbacks[i], this));
-  }
-  for (suite = this.suite; suite; suite = suite.parentSuite) {
-    for (i = 0; i < suite.after_.length; i++) {
-      this.queue.add(new jasmine.Block(this.env, suite.after_[i], this));
-    }
-  }
-  for (i = 0; i < runner.after_.length; i++) {
-    this.queue.add(new jasmine.Block(this.env, runner.after_[i], this));
-  }
-};
-
-jasmine.Spec.prototype.explodes = function() {
-  throw 'explodes function should not have been called';
-};
-
-jasmine.Spec.prototype.spyOn = function(obj, methodName, ignoreMethodDoesntExist) {
-  if (obj == jasmine.undefined) {
-    throw "spyOn could not find an object to spy upon for " + methodName + "()";
-  }
-
-  if (!ignoreMethodDoesntExist && obj[methodName] === jasmine.undefined) {
-    throw methodName + '() method does not exist';
-  }
-
-  if (!ignoreMethodDoesntExist && obj[methodName] && obj[methodName].isSpy) {
-    throw new Error(methodName + ' has already been spied upon');
-  }
-
-  var spyObj = jasmine.createSpy(methodName);
-
-  this.spies_.push(spyObj);
-  spyObj.baseObj = obj;
-  spyObj.methodName = methodName;
-  spyObj.originalValue = obj[methodName];
-
-  obj[methodName] = spyObj;
-
-  return spyObj;
-};
-
-jasmine.Spec.prototype.removeAllSpies = function() {
-  for (var i = 0; i < this.spies_.length; i++) {
-    var spy = this.spies_[i];
-    spy.baseObj[spy.methodName] = spy.originalValue;
-  }
-  this.spies_ = [];
-};
-
-/**
- * Internal representation of a Jasmine suite.
- *
- * @constructor
- * @param {jasmine.Env} env
- * @param {String} description
- * @param {Function} specDefinitions
- * @param {jasmine.Suite} parentSuite
- */
-jasmine.Suite = function(env, description, specDefinitions, parentSuite) {
-  var self = this;
-  self.id = env.nextSuiteId ? env.nextSuiteId() : null;
-  self.description = description;
-  self.queue = new jasmine.Queue(env);
-  self.parentSuite = parentSuite;
-  self.env = env;
-  self.before_ = [];
-  self.after_ = [];
-  self.children_ = [];
-  self.suites_ = [];
-  self.specs_ = [];
-};
-
-jasmine.Suite.prototype.getFullName = function() {
-  var fullName = this.description;
-  for (var parentSuite = this.parentSuite; parentSuite; parentSuite = parentSuite.parentSuite) {
-    fullName = parentSuite.description + ' ' + fullName;
-  }
-  return fullName;
-};
-
-jasmine.Suite.prototype.finish = function(onComplete) {
-  this.env.reporter.reportSuiteResults(this);
-  this.finished = true;
-  if (typeof(onComplete) == 'function') {
-    onComplete();
-  }
-};
-
-jasmine.Suite.prototype.beforeEach = function(beforeEachFunction) {
-  beforeEachFunction.typeName = 'beforeEach';
-  this.before_.unshift(beforeEachFunction);
-};
-
-jasmine.Suite.prototype.afterEach = function(afterEachFunction) {
-  afterEachFunction.typeName = 'afterEach';
-  this.after_.unshift(afterEachFunction);
-};
-
-jasmine.Suite.prototype.results = function() {
-  return this.queue.results();
-};
-
-jasmine.Suite.prototype.add = function(suiteOrSpec) {
-  this.children_.push(suiteOrSpec);
-  if (suiteOrSpec instanceof jasmine.Suite) {
-    this.suites_.push(suiteOrSpec);
-    this.env.currentRunner().addSuite(suiteOrSpec);
-  } else {
-    this.specs_.push(suiteOrSpec);
-  }
-  this.queue.add(suiteOrSpec);
-};
-
-jasmine.Suite.prototype.specs = function() {
-  return this.specs_;
-};
-
-jasmine.Suite.prototype.suites = function() {
-  return this.suites_;
-};
-
-jasmine.Suite.prototype.children = function() {
-  return this.children_;
-};
-
-jasmine.Suite.prototype.execute = function(onComplete) {
-  var self = this;
-  this.queue.start(function () {
-    self.finish(onComplete);
-  });
-};
-jasmine.WaitsBlock = function(env, timeout, spec) {
-  this.timeout = timeout;
-  jasmine.Block.call(this, env, null, spec);
-};
-
-jasmine.util.inherit(jasmine.WaitsBlock, jasmine.Block);
-
-jasmine.WaitsBlock.prototype.execute = function (onComplete) {
-  if (jasmine.VERBOSE) {
-    this.env.reporter.log('>> Jasmine waiting for ' + this.timeout + ' ms...');
-  }
-  this.env.setTimeout(function () {
-    onComplete();
-  }, this.timeout);
-};
-/**
- * A block which waits for some condition to become true, with timeout.
- *
- * @constructor
- * @extends jasmine.Block
- * @param {jasmine.Env} env The Jasmine environment.
- * @param {Number} timeout The maximum time in milliseconds to wait for the condition to become true.
- * @param {Function} latchFunction A function which returns true when the desired condition has been met.
- * @param {String} message The message to display if the desired condition hasn't been met within the given time period.
- * @param {jasmine.Spec} spec The Jasmine spec.
- */
-jasmine.WaitsForBlock = function(env, timeout, latchFunction, message, spec) {
-  this.timeout = timeout || env.defaultTimeoutInterval;
-  this.latchFunction = latchFunction;
-  this.message = message;
-  this.totalTimeSpentWaitingForLatch = 0;
-  jasmine.Block.call(this, env, null, spec);
-};
-jasmine.util.inherit(jasmine.WaitsForBlock, jasmine.Block);
-
-jasmine.WaitsForBlock.TIMEOUT_INCREMENT = 10;
-
-jasmine.WaitsForBlock.prototype.execute = function(onComplete) {
-  if (jasmine.VERBOSE) {
-    this.env.reporter.log('>> Jasmine waiting for ' + (this.message || 'something to happen'));
-  }
-  var latchFunctionResult;
-  try {
-    latchFunctionResult = this.latchFunction.apply(this.spec);
-  } catch (e) {
-    this.spec.fail(e);
-    onComplete();
-    return;
-  }
-
-  if (latchFunctionResult) {
-    onComplete();
-  } else if (this.totalTimeSpentWaitingForLatch >= this.timeout) {
-    var message = 'timed out after ' + this.timeout + ' msec waiting for ' + (this.message || 'something to happen');
-    this.spec.fail({
-      name: 'timeout',
-      message: message
-    });
-
-    this.abort = true;
-    onComplete();
-  } else {
-    this.totalTimeSpentWaitingForLatch += jasmine.WaitsForBlock.TIMEOUT_INCREMENT;
-    var self = this;
-    this.env.setTimeout(function() {
-      self.execute(onComplete);
-    }, jasmine.WaitsForBlock.TIMEOUT_INCREMENT);
-  }
-};
-
-jasmine.version_= {
-  "major": 1,
-  "minor": 2,
-  "build": 0,
-  "revision": 1337005947
-};

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/build.xml
----------------------------------------------------------------------
diff --git a/playbook/build.xml b/playbook/build.xml
deleted file mode 100644
index f1d1b04..0000000
--- a/playbook/build.xml
+++ /dev/null
@@ -1,321 +0,0 @@
-<project name="Create &amp; Update a Cordova BlackBerry WebWorks Project" default="help">
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-    <!-- LOAD VERSION -->
-
-    <loadfile property="version" srcFile="VERSION">
-        <filterchain>
-            <striplinebreaks/>
-        </filterchain>
-    </loadfile>
-
-    <!-- LOAD PROPERTIES -->
-
-    <property name="template.project.dir" location="bin/templates/project" />
-    <property name="template.dist.dir"    location="bin/templates/dist" />
-
-    <property name="build.dir"            location="build" />
-    <property name="update.dir"           value="lib/cordova.${version}" />
-
-    <property name="dist.path"         location="dist" />
-    <property name="dist.www.path"     location="${dist.path}/www" />
-    <property name="dist.project.path" location="${dist.path}/sample" />
-
-    <property name="jar.src"      location="framework/ext/src" />
-    <property name="jar.path"     value="ext" />
-    <property name="jar.basename" value="cordova.${version}.jar" />
-    <property name="jar.file"     value="${jar.path}/${jar.basename}" />
-
-    <property name="playbook.js.path"   value="javascript/playbook" />
-    <property name="playbook.ext.src"   location="framework/ext-air" />
-    <property name="playbook.ext.path"  value="ext-air" />
-
-    <property name="version.file"   value="VERSION" />
-
-    <property name="js.src"          location="javascript" />
-    <property name="js.path"         value="javascript" />
-    <property name="js.basename"     value="cordova.js" />
-    <property name="js.file"         value="${js.path}/${js.basename}" />
-
-    <!-- BUILD JAVASCRIPT -->
-
-    <target name="build-javascript">
-        <!-- BB Javascript -->
-        <mkdir dir="${build.dir}/${js.path}" />
-        <copy file="${js.src}/cordova.blackberry.js" tofile="${build.dir}/${js.file}" />
-    </target>
-
-    <!-- BUILD BLACKBERRY EXTENSION
-
-    <target name="build-bb-extension">
-        <mkdir dir="${build.dir}/${jar.path}" />
-
-        <zip destfile="${build.dir}/${jar.file}">
-            <fileset dir="${jar.src}" includes="library.xml" />
-            <fileset dir="${jar.src}" includes="**/*.java" />
-        </zip>
-    </target>
-
-    -->
-
-    <!-- BUILD PLAYBOOK EXTENSION -->
-
-    <target name="build-pb-extension">
-
-        <!-- Copy Ext -->
-        <mkdir dir="${build.dir}/${playbook.ext.path}" />
-        <copy todir="${build.dir}/${playbook.ext.path}">
-            <fileset dir="${playbook.ext.src}" />
-        </copy>
-    </target>
-
-    <!-- CREATE A PROJECT -->
-    <target name="create" depends="clean, build-javascript, build-pb-extension">
-        <fail unless="project.path" message="You must give a project PATH. Use the argument -Dproject.path=&#34;C:\dev\my_project&#34;" />
-
-        <available file="${project.path}" property="project.exists" />
-        <fail if="project.exists" message="The project path must be an empty directory." />
-
-        <!-- create project using template directory -->
-        <mkdir dir="${project.path}" />
-        <copy todir="${project.path}">
-            <fileset dir="${template.project.dir}" />
-        </copy>
-
-        <!-- copy version file to project -->
-        <copy todir="${project.path}">
-            <fileset file="${version.file}" />
-        </copy>
-
-        <!-- change file permission for cordova scripts because ant copy doesn't preserve file permissions -->
-        <chmod dir="${project.path}/cordova" perm="700" includes="*"/>
-
-        <!-- update project files to reference cordova.x.x.x.js -->
-        <replaceregexp match="cordova\.js" replace="${js.basename}" byline="true">
-            <fileset file="${project.path}/www/index.html" />
-            <fileset file="${project.path}/build.xml" />
-        </replaceregexp>
-
-        <!-- copy cordova.js -->
-        <copy todir="${project.path}/www">
-            <fileset dir="${build.dir}/${js.path}" />
-        </copy>
-
-        <!-- copy ext-air/ -->
-        <copy todir="${project.path}/www/ext-air">
-            <fileset dir="${build.dir}/${playbook.ext.path}" />
-        </copy>
-
-        <!-- save release -->
-        <mkdir dir="${project.path}/${update.dir}" />
-        <copy todir="${project.path}/${update.dir}">
-            <fileset dir="${build.dir}" />
-        </copy>
-
-        <echo>
-Project Creation Complete!
-==========================
-
-Getting Started:
-----------------
-
-  cd ${project.path}
-
-  ant help
-        </echo>
-    </target>
-
-    <!-- DISTRIBUTION -->
-    <target name="dist" depends="">
-        <!-- create a sample project -->
-        <antcall target="create">
-            <param name="project.path" value="${dist.project.path}" />
-        </antcall>
-
-        <!-- copy dist template (README.md) -->
-        <copy todir="${dist.path}">
-            <fileset dir="${template.dist.dir}" />
-        </copy>
-
-        <!-- change file permission for cordova scripts because ant copy doesn't preserve file permissions -->
-        <chmod dir="${dist.path}/sample/cordova" perm="700" includes="*" />
-
-        <!-- copy cordova.jar -->
-        <copy todir="${dist.www.path}/ext">
-            <fileset dir="${build.dir}/${jar.path}" />
-        </copy>
-
-        <!-- copy ext-air/ -->
-        <copy todir="${dist.www.path}/ext-air">
-            <fileset dir="${build.dir}/${playbook.ext.path}" />
-        </copy>
-
-        <!-- copy cordova.js -->
-        <copy todir="${dist.www.path}">
-            <fileset dir="${build.dir}/${js.path}" />
-        </copy>
-
-        <!-- copy config.xml -->
-        <copy todir="${dist.www.path}">
-            <fileset file="${template.project.dir}/www/config.xml" />
-        </copy>
-
-        <!-- copy plugins.xml -->
-        <copy todir="${dist.www.path}">
-            <fileset file="${template.project.dir}/www/plugins.xml" />
-        </copy>
-
-        <!-- update config.xml to have a default name-->
-        <replace file="${dist.project.path}/www/config.xml" token="__NAME__" value="cordovaExample"/>
-        <replace file="${dist.project.path}/www/config.xml" token="__PACKAGE__" value="org.apache.cordova.example"/>
-        <echo>
-Distribution Complete!
-======================
-
-Version:
---------
-
-  ${version}
-
-Path:
------
-
-  ${dist.path}
-        </echo>
-    </target>
-
-    <target name="version">
-        <replace dir="." token="${version}" value="${value}" />
-
-        <echo>
-Version Update Complete!
-========================
-
-Version:
---------
-
-  Previous: ${version}
-  Current:  ${value}
-
-Remember to:
-------------
-
-  Review and commit the version update.
-
-  $ git diff
-  $ git commit -am "Update to version ${value}"
-  $ git tag ${value}
-        </echo>
-    </target>
-
-    <!-- UPDATE A PROJECT -->
-
-    <target name="update" depends="clean, build-javascript, build-pb-extension">
-        <fail unless="project.path" message="You must give a project PATH. Use the argument -Dproject.path=&#34;C:\dev\my_project&#34;" />
-
-        <available file="${project.path}" property="project.exists" />
-        <fail unless="project.exists" message="The project path cannot be empty." />
-
-        <!-- save release -->
-        <mkdir dir="${project.path}/${update.dir}" />
-        <copy todir="${project.path}/${update.dir}">
-            <fileset dir="${build.dir}" />
-        </copy>
-
-        <echo>
-Update complete!
-================
-
-  Cordova ${version} has been created.
-
-  Update does not alter your project files.
-
-  See below for instructions to install Cordova ${version}.
-
-Where:
-------
-
-  ${project.path}/${update.dir}
-
-Install:
---------
-
-  1. Install the Java Extension:
-
-    - delete /www/${jar.path}/cordova.jar
-
-    - copy /${update.dir}/${jar.file}
-        to /www/${jar.file}
-
-  2. Install the JavaScript library:
-
-    - delete /www/cordova.js
-
-    - copy /${update.dir}/${js.file}
-        to /www/${js.basename}
-
-  3. Update JavaScript references:
-
-    - &#60;script type=&#34;text/javascript&#34; src=&#34;${js.basename}&#34;&#62;&#60;/script&#62;
-        </echo>
-    </target>
-
-    <!-- CLEAN -->
-
-    <target name="clean">
-        <delete dir="${build.dir}" />
-        <delete dir="${dist.path}" />
-    </target>
-
-    <!-- HELP -->
-
-    <target name="help">
-        <echo>
-NAME
-  ${ant.project.name}
-
-SYNOPSIS
-  ant COMMAND [-D&lt;argument&gt;=&lt;value&gt;]...
-
-DESCRIPTION
-  This tool allows you to create and update Cordova-BlackBerry-WebWorks projects.
-  You will want to run update after you have updated the framework source.
-  In other words, when you &lt;git pull origin master&gt;.
-
-COMMANDS
-  help ............ Show this help menu.
-                      ant, ant help
-
-  create .......... Create a new project
-                      ant create PATH
-                      ant create -Dproject.path="C:\dev\my_project"
-
-  update .......... Update an existing project
-                      ant update PATH
-                      ant update -Dproject.path="C:\dev\my_project"
-
-  dist ............ Create a Cordova distribution build
-                      ant dist
-
-  version ......... Update Cordova version
-                      ant version VERSION
-                      ant version -Dvalue="1.0.0"
-        </echo>
-    </target>
-</project>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/framework/ext-air/Cordova_Network/library.xml
----------------------------------------------------------------------
diff --git a/playbook/framework/ext-air/Cordova_Network/library.xml b/playbook/framework/ext-air/Cordova_Network/library.xml
deleted file mode 100644
index c1835b4..0000000
--- a/playbook/framework/ext-air/Cordova_Network/library.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- 
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
--->
-<library isWhitelist="true">
-	<extension>
-		<entryClass>org.apache.cordova.network.Network</entryClass>
-	</extension>
-
-	<platforms>
-		<platform value="AIR">
-			<target version="default" config="AIR_XHR" />
-		</platform>
-	</platforms>
-
-	<configurations>
-		<configuration name="AIR_XHR" version="1.0" comment="For XHR architecture for Java implementation">
-			<src type="text/actionscript" path="src" comment="ActionScript implementation" />
-		</configuration>
-	</configurations>
-
-	<features>
-		<feature id="org.apache.cordova" version="1.0.0" />
-	</features>
-</library>

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dad4d15f/playbook/framework/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
----------------------------------------------------------------------
diff --git a/playbook/framework/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as b/playbook/framework/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
deleted file mode 100644
index d2ad030..0000000
--- a/playbook/framework/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- * Copyright (c) 2011, Research In Motion Limited.
- */
-
-
-package org.apache.cordova.network {
-    import flash.net.NetworkInfo;
-    import flash.net.NetworkInterface;
-	import flash.events.Event;
-    import qnx.system.Device;
-
-    import webworks.extension.DefaultExtension;
-
-    public class Network extends DefaultExtension{
-
-        private var _jsFunctionCallbackIDs:Array = [];
-		private const FEATURE_ID:Array = [ "org.apache.cordova" ];
-
-		public function Network() {
-			//Attach event listener once only
-			NetworkInfo.networkInfo.addEventListener(flash.events.Event.NETWORK_CHANGE, networkChange);
-		}
-
-		override public function getFeatureList():Array {
-			return FEATURE_ID;
-		}
-
-        public function getConnectionInfo(param:String):void{
-			if(_jsFunctionCallbackIDs.indexOf(param) < 0){
-				_jsFunctionCallbackIDs.push(param);
-			}
-        }
-
-        public function getDeviceInfo(id:String):void{
-            evalJavaScriptEvent(id, [{
-                "uuid" : Device.device.pin,
-                "version": Device.device.scmBundle
-            }]);
-        }
-
-        private function networkChange( event: Event ) : void {
-
-            /**
-             * Right now, we only care if there is a connection or not, since PlayBook only has WiFi
-             * At the JS layer, we will map this from offline/online.
-             * At some point in the future where there are more connection types on PlayBook,
-             * we will want to attempt to map this to the real Cordova connection types...
-             */
-
-            var haveCoverage : Boolean = false;
-            var networkStatus : String = "offline";
-			var connectionType = "none";
-
-			NetworkInfo.networkInfo.findInterfaces().some(
-				function callback(item:NetworkInterface, index:int, vector:Vector.<NetworkInterface>):Boolean {
-					this.webView.executeJavaScript("alert('Network Interface ' + item.name)");
-					haveCoverage = item.active || haveCoverage;
-					return haveCoverage;
-				}, this);
-
-			if (haveCoverage) {
-				networkStatus = "online";
-				connectionType = "wifi";
-			}
-
-            for (var i:Number=0; i<_jsFunctionCallbackIDs.length ; i++){
-                evalJavaScriptEvent(_jsFunctionCallbackIDs[i], [{"type" : connectionType, "event" : networkStatus }] );
-            }
-        }
-    }
-}


[24/50] [abbrv] webworks commit: [CB-4065] Remove lib files after frameworkModules.js is generated

Posted by je...@apache.org.
[CB-4065] Remove lib files after frameworkModules.js is generated

  Reviewed By: Jeffrey Heifetz <jh...@blackberry.com>
  Tested By: Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/f81a7623
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/f81a7623
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/f81a7623

Branch: refs/heads/3.1.x
Commit: f81a76231381a518322e25fcbb184f0a75f6eaae
Parents: e9fa1f0
Author: DanielAudino <da...@blackberry.com>
Authored: Tue Aug 13 08:44:54 2013 -0400
Committer: Jeffrey Heifetz <jh...@blackberry.com>
Committed: Thu Aug 29 09:34:02 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/file-manager.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/f81a7623/blackberry10/bin/templates/project/cordova/lib/file-manager.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/file-manager.js b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
index 10e27d0..b9ba013 100755
--- a/blackberry10/bin/templates/project/cordova/lib/file-manager.js
+++ b/blackberry10/bin/templates/project/cordova/lib/file-manager.js
@@ -140,6 +140,7 @@ function generateFrameworkModulesJS(session) {
                       fs.readFileSync(module.file, "utf-8") + "\n" +
                       "});\n";
         frameworkModulesStr += "'" + module.name + "'" +  (index !== modulesList.length-1 ? ", " : "");
+        fs.unlinkSync(path.normalize(dest.CHROME + "/" + module.name));
     });
 
     modulesStr += "}());";


[21/50] [abbrv] webworks commit: reverted config.js and event.js in unit tests due to bad overwrite

Posted by je...@apache.org.
reverted config.js and event.js in unit tests due to bad overwrite


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/75b85856
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/75b85856
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/75b85856

Branch: refs/heads/3.1.x
Commit: 75b8585688b505487d0a69bef7462bf5c7e9b782
Parents: b33f615
Author: lorinbeer <lo...@adobe.com>
Authored: Tue Aug 20 14:44:57 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Tue Aug 20 14:44:57 2013 -0700

----------------------------------------------------------------------
 blackberry10/framework/test/unit/lib/config.js |  30 +++++
 blackberry10/framework/test/unit/lib/event.js  | 139 ++++++++++++++++++++
 2 files changed, 169 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/75b85856/blackberry10/framework/test/unit/lib/config.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/config.js b/blackberry10/framework/test/unit/lib/config.js
index e69de29..64e8f7e 100644
--- a/blackberry10/framework/test/unit/lib/config.js
+++ b/blackberry10/framework/test/unit/lib/config.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2010-2011 Research In Motion Limited.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var srcPath = __dirname + '/../../../lib/';
+
+describe("Config", function () {
+    var config = require(srcPath + 'config.js');
+
+    it("verify user value is correctly mixed", function () {
+        expect(config.copyright).toEqual("@Rebecca");
+    });
+
+    it("verify default value is correctly mixed", function () {
+        expect(config.widgetExtensions).toEqual(null);
+    });
+
+});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/75b85856/blackberry10/framework/test/unit/lib/event.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/event.js b/blackberry10/framework/test/unit/lib/event.js
index e69de29..3d3e7fe 100644
--- a/blackberry10/framework/test/unit/lib/event.js
+++ b/blackberry10/framework/test/unit/lib/event.js
@@ -0,0 +1,139 @@
+/*
+ * Copyright 2010-2011 Research In Motion Limited.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var libRoot = __dirname + "/../../../lib/";
+
+describe("lib/event", function () {
+    var event = require(libRoot + "event"),
+        webview = require(libRoot + "webview"),
+        mockedWebview;
+
+    beforeEach(function () {
+        spyOn(webview, "executeJavascript");
+        mockedWebview = {
+            executeJavaScript: jasmine.createSpy(),
+            id: (new Date()).getTime()
+        };
+    });
+
+    describe("trigger", function () {
+
+
+        it("will trigger on the content webview when no webview is registered (for backwards compatability)", function () {
+            event.trigger("foo", {"id": 123});
+            expect(mockedWebview.executeJavaScript).not.toHaveBeenCalled();
+            expect(webview.executeJavascript).toHaveBeenCalled();
+        });
+
+        it("can invoke the webview execute javascript", function () {
+            var data = {"id": 123};
+            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview);
+            event.trigger("foo", data);
+            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([data]))) + "')");
+            expect(webview.executeJavascript).not.toHaveBeenCalled();
+            this.after(function () {
+                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview);
+            });
+        });
+
+        it("sends multiple arguments passed in across as a JSONified array", function () {
+            var args = [{"id": 123, "foo": "hello world", list: [1, 2, 3]}, "Grrrrrrr", "Arrrrg"];
+            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview);
+            event.trigger.apply(null, ["foo"].concat(args));
+            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify(args))) + "')");
+            expect(webview.executeJavascript).not.toHaveBeenCalled();
+            this.after(function () {
+                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview);
+            });
+        });
+
+        it("invokes on all webviews that have registered, but not those removed", function () {
+            var mockedWebview2 = {
+                    executeJavaScript: jasmine.createSpy(),
+                    id: mockedWebview.id - 42
+                },
+                mockedWebview3 = {
+                    executeJavaScript: jasmine.createSpy(),
+                    id: mockedWebview.id + 42
+                },
+                mockedWebview4 = {
+                    executeJavaScript: jasmine.createSpy(),
+                    id: mockedWebview.id * 42
+                };
+            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview);
+            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview2);
+            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview3);
+            event.trigger("foo", {"id": 123});
+            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(mockedWebview2.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(mockedWebview3.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(mockedWebview4.executeJavaScript).not.toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(webview.executeJavascript).not.toHaveBeenCalled();
+
+
+            event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview3);
+            mockedWebview.executeJavaScript.reset();
+            mockedWebview2.executeJavaScript.reset();
+            mockedWebview3.executeJavaScript.reset();
+            mockedWebview4.executeJavaScript.reset();
+            event.trigger("foo", {"id": 123});
+            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(mockedWebview2.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(mockedWebview3.executeJavaScript).not.toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(mockedWebview4.executeJavaScript).not.toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
+            expect(webview.executeJavascript).not.toHaveBeenCalled();
+            this.after(function () {
+                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview);
+                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview2);
+            });
+        });
+
+    });
+
+    describe("add/remove would invoke action context", function () {
+        var action = {
+                context: {
+                    addEventListener: jasmine.createSpy(),
+                    removeEventListener: jasmine.createSpy()
+                },
+                event: "HELLO",
+                trigger: function () {}
+            };
+
+        beforeEach(function () {
+            action.context.addEventListener.reset();
+            action.context.removeEventListener.reset();
+        });
+
+        it("can invoke action context add listener", function () {
+            event.add(action, mockedWebview);
+            expect(action.context.addEventListener).toHaveBeenCalledWith(action.event, action.trigger);
+        });
+
+        it("will not invoke action context add listener when the action has a once field", function () {
+            action.once = true;
+            event.add(action, mockedWebview);
+            expect(action.context.addEventListener).not.toHaveBeenCalledWith(action.event, action.trigger);
+            this.after(function () {
+                delete action.once;
+            });
+        });
+
+        it("can invoke action context remove listener", function () {
+            event.remove(action, mockedWebview);
+            expect(action.context.removeEventListener).toHaveBeenCalledWith(action.event, action.trigger);
+        });
+    });
+});


[17/50] [abbrv] webworks commit: [CB-4343] Remove parsing of project name from create script.

Posted by je...@apache.org.
[CB-4343] Remove parsing of project name from create script.

BAR file is now a constant and this value is unused.
The validation logic caused issues in CLI with spaces/special characters.


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/ed53b6c4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/ed53b6c4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/ed53b6c4

Branch: refs/heads/3.1.x
Commit: ed53b6c47ee62f7f2321553929a1fe085ddcdae4
Parents: 9bf2a4c
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Tue Aug 13 15:34:38 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Aug 13 15:34:38 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/create.js                          | 13 +------------
 blackberry10/bin/test/cordova/integration/create.js |  4 ----
 2 files changed, 1 insertion(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/ed53b6c4/blackberry10/bin/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create.js b/blackberry10/bin/create.js
index 743e60c..889d875 100644
--- a/blackberry10/bin/create.js
+++ b/blackberry10/bin/create.js
@@ -32,7 +32,6 @@ var build,
     version = getVersion(),
     project_path = validateProjectPath(),
     app_id = process.argv[3],
-    bar_name = process.argv[4],
     TARGETS = ["device", "simulator"],
     TEMPLATE_PROJECT_DIR = path.join(__dirname, "templates", "project"),
     MODULES_PROJECT_DIR = path.join(__dirname, "..", "node_modules"),
@@ -63,11 +62,6 @@ function validPackageName(packageName) {
     return true;
 }
 
-function validBarName(barName) {
-    var barNameRegex = /^[a-zA-Z0-9._\-]+$/;
-    return (typeof barName === "undefined") || barNameRegex.test(barName);
-}
-
 function validateProjectPath() {
     if (!process.argv[2]) {
         console.log("You must give a project PATH");
@@ -89,11 +83,6 @@ function validate() {
         console.log("[warning] App ID must be sequence of alpha-numeric (optionally seperated by '.') characters, no longer than 50 characters.\n" +
                     "special characters in '" + app_id + "' will be replaced by '_'");
     }
-    if (!validBarName(bar_name)) {
-        console.log("BAR filename can only contain alpha-numeric, '.', '-' and '_' characters");
-        help();
-        process.exit(2);
-    }
 }
 
 function clean() {
@@ -203,7 +192,7 @@ function updateProject() {
 }
 
 function help() {
-    console.log("\nUsage: create <project path> [package name [BAR filename]] \n");
+    console.log("\nUsage: create <project path> [package name] \n");
     console.log("Options: \n");
     console.log("   -h, --help      output usage information \n");
 }

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/ed53b6c4/blackberry10/bin/test/cordova/integration/create.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/test/cordova/integration/create.js b/blackberry10/bin/test/cordova/integration/create.js
index 1947896..6ac2d88 100644
--- a/blackberry10/bin/test/cordova/integration/create.js
+++ b/blackberry10/bin/test/cordova/integration/create.js
@@ -100,8 +100,4 @@ describe("create tests", function () {
         expect(_output).toContain("App ID must be sequence of alpha-numeric (optionally seperated by '.') characters, no longer than 50 characters");
     });
 
-    it("Invalid barName error", function () {
-        executeScript(CREATE_COMMAND, [appFolder, "com.example.app", "%bad@bar^name"], true);
-        expect(_output).toContain("BAR filename can only contain alpha-numeric, '.', '-' and '_' characters");
-    });
 });


[12/50] [abbrv] webworks commit: [CB-4259] Removing plugman and cordova/plugin script

Posted by je...@apache.org.
[CB-4259] Removing plugman and cordova/plugin script

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/cfee530f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/cfee530f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/cfee530f

Branch: refs/heads/3.1.x
Commit: cfee530f6acfde9e69885ca6e8c1fc7ba8a8b7d3
Parents: f102d3f
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Fri Aug 2 11:33:32 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Aug 9 09:58:14 2013 -0400

----------------------------------------------------------------------
 blackberry10/README.md                          |   8 +-
 .../project/cordova/lib/plugin-wrapper.js       |  21 --
 .../bin/templates/project/cordova/lib/plugin.js | 192 -------------------
 .../bin/templates/project/cordova/plugin        |   4 -
 .../bin/templates/project/cordova/plugin.bat    |  21 --
 blackberry10/package.json                       |   3 +-
 6 files changed, 6 insertions(+), 243 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/cfee530f/blackberry10/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/README.md b/blackberry10/README.md
index 8091adf..8df980c 100644
--- a/blackberry10/README.md
+++ b/blackberry10/README.md
@@ -139,20 +139,22 @@ To add additional functionality that is outside of the core features of Cordova,
 
 In order to use a plugin, you must first add it into your project. Once added into your project, the plugin will be bundled with your project during the build process, to ensure that your app has access to all the APIs it needs.
 
+To add and manage plugins you can use the plugman tool. It is available via npm (ie npm install -g plugman)
+
 ###Add a plugin
 
 To add a plugin, on the command line, type the following command:
 
-        <path-to-project>/cordova/plugin add <path to plugin>
+        plugman install --platform blackberry10 --project . --plugin <id|path|url> [--variable NAME=name]
 
 ###Remove a plugin
 
 To remove a plugin, on the command line, type the following command:
 
-        <path-to-project>/cordova/plugin rm <name>
+        plugman uninstall --platform blackberry10 --project . --plugin <id>
 
 ###View a list of installed plugins
 
 To view a list of installed plugins, on the command line, type the following command:
 
-        <path-to-project>/cordova/plugin ls
+        plugman ls

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/cfee530f/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js b/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js
deleted file mode 100755
index d14f0ae..0000000
--- a/blackberry10/bin/templates/project/cordova/lib/plugin-wrapper.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-require(require("path").join(__dirname, "plugin.js")).cli();
-

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/cfee530f/blackberry10/bin/templates/project/cordova/lib/plugin.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/plugin.js b/blackberry10/bin/templates/project/cordova/lib/plugin.js
deleted file mode 100644
index 13c547b..0000000
--- a/blackberry10/bin/templates/project/cordova/lib/plugin.js
+++ /dev/null
@@ -1,192 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-var path = require("path"),
-    wrench = require("wrench"),
-    fs = require('fs'),
-    et   = require('elementtree'),
-    plugman = require('plugman'),
-    PROJECT_ROOT = path.join(__dirname, "..", ".."),
-    PLUGMAN = path.join(PROJECT_ROOT, "cordova", "node_modules", "plugman", "main.js"),
-    GLOBAL_PLUGIN_PATH = require(path.join(PROJECT_ROOT, "project.json")).globalFetchDir,
-    LOCAL_PLUGIN_PATH = path.join(PROJECT_ROOT, "plugins"),
-    argumentor = {
-        action : process.argv[2],
-        plugin: process.argv[3],
-        args: [],
-        reset: function () {
-            this.args = [];
-            return argumentor;
-        },
-        setAction: function () {
-            this.args.action = this.action;
-            return argumentor;
-        },
-        setPlatform: function () {
-            this.args.platform = "blackberry10";
-            return argumentor;
-        },
-        setProject: function () {
-            this.args.project = PROJECT_ROOT;
-            return argumentor;
-        },
-        setPlugin: function () {
-            var pluginWithoutTrailingSlash = this.plugin.charAt(this.plugin.length - 1) === "/" ? this.plugin.slice(0, -1) : this.plugin;
-            this.args.plugin = pluginWithoutTrailingSlash;
-            return argumentor;
-        },
-        setPluginsDir: function (isGlobal) {
-            if (isGlobal) {
-                this.args.pluginDir = GLOBAL_PLUGIN_PATH;
-            } else {
-                this.args.pluginDir = LOCAL_PLUGIN_PATH;
-            }
-            return argumentor;
-        },
-        run: function () {
-            plugman.install(this.args.platform, this.args.project, this.args.plugin, this.args.pluginDir, {});
-        }
-    },
-    plugmanInterface= {
-        "uninstall": function (plugin) {
-                if (plugin) {
-                    argumentor.plugin = plugin;
-                }
-                argumentor.action = "uninstall";
-                argumentor.reset().setAction().setPlatform().setProject().setPlugin().setPluginsDir().run();
-            },
-        "install": function (plugin) {
-                if (plugin) {
-                    argumentor.plugin = plugin;
-                }
-                argumentor.reset().setPlatform().setProject().setPlugin().setPluginsDir().run();
-            }
-    };
-
-function getPluginId(pluginXMLPath) {
-    var pluginEt = new et.ElementTree(et.XML(fs.readFileSync(pluginXMLPath, "utf-8")));
-    return pluginEt._root.attrib.id;
-}
-
-function addPlugin (pluginPath) {
-    var plugin = pluginPath || argumentor.plugin,
-        pluginDirs = [],
-        allFiles;
-
-
-    //Check if the path they sent in exists
-    if (!fs.existsSync(plugin) ) {
-        //Check if the plugin has been fetched globally
-        plugin = path.resolve(GLOBAL_PLUGIN_PATH, plugin);
-    }
-
-    //Check if the new global path is good, if not just pass through
-    if (!fs.existsSync(plugin)) {
-        plugmanInterface.install(pluginPath || argumentor.plugin);
-    } else {
-
-        allFiles = wrench.readdirSyncRecursive(plugin);
-        allFiles.forEach(function (file) {
-            var fullPath = path.resolve(plugin, file);
-
-            if (path.basename(file) === "plugin.xml") {
-                pluginDirs.push(path.dirname(fullPath));
-            }
-        });
-
-        if (!pluginDirs.length) {
-            console.log("No plugins could be found given the input " + pluginPath || argumentor.plugin);
-            listHelp();
-            process.exit(1);
-        } else {
-            pluginDirs.forEach(function (pluginDir) {
-                plugmanInterface.install(pluginDir);
-            });
-        }
-    }
-}
-
-function removePlugin (pluginPath) {
-    var plugin = pluginPath || argumentor.plugin,
-        pluginIds = [],
-        allFiles;
-
-    //Check if the path they send in exists
-    if (!fs.existsSync(plugin) ) {
-        //Check if it is the folder name of an installed plugin
-        plugin = path.resolve(LOCAL_PLUGIN_PATH, plugin);
-        if (!fs.existsSync(plugin)) {
-            //Assume that this is a plugin id and continue
-            plugin = pluginPath || argumentor.plugin;
-        }
-    }
-
-    allFiles = wrench.readdirSyncRecursive(plugin);
-    allFiles.forEach(function (file) {
-        var fullPath = path.resolve(plugin, file),
-            pluginEt;
-
-        if (path.basename(file) === "plugin.xml") {
-            pluginIds.push(getPluginId(fullPath));
-        }
-    });
-
-    pluginIds.forEach(function (pluginId) {
-        plugmanInterface.uninstall(pluginId);
-    });
-
-}
-
-function listPlugins () {
-    fs.readdirSync(LOCAL_PLUGIN_PATH).forEach(function (pluginName) {
-        //TODO: Parse the plugin.xml and get any extra information ie description
-        console.log(pluginName);
-    });
-}
-
-function listHelp () {
-    console.log("\nUsage:");
-    console.log("add <plugin_dir> Adds all plugins contained in the given directory");
-    console.log("rm <plugin_name> [<plugin_name>] Removes all of the listed plugins");
-    console.log("ls Lists all of the currently installed plugins");
-}
-
-function cliEntry () {
-    switch (argumentor.action) {
-        case "add":
-            addPlugin();
-            break;
-        case "rm":
-            removePlugin();
-            break;
-        case "ls":
-            listPlugins();
-            break;
-        default:
-            listHelp();
-    }
-}
-
-module.exports = {
-    add: addPlugin,
-    rm: removePlugin,
-    ls: listPlugins,
-    help: listHelp,
-    cli: cliEntry
-};

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/cfee530f/blackberry10/bin/templates/project/cordova/plugin
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/plugin b/blackberry10/bin/templates/project/cordova/plugin
deleted file mode 100755
index bbecb55..0000000
--- a/blackberry10/bin/templates/project/cordova/plugin
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-source $(dirname "$0")/init
-"$CORDOVA_NODE/node" "$(dirname "$0")/lib/plugin-wrapper" "$@"
-

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/cfee530f/blackberry10/bin/templates/project/cordova/plugin.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/plugin.bat b/blackberry10/bin/templates/project/cordova/plugin.bat
deleted file mode 100755
index 3080228..0000000
--- a/blackberry10/bin/templates/project/cordova/plugin.bat
+++ /dev/null
@@ -1,21 +0,0 @@
-@ECHO OFF
-goto comment
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
-:comment
-call "%~dp0init"
-"%CORDOVA_NODE%\node.exe" "%~dps0\lib\plugin-wrapper" %*

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/cfee530f/blackberry10/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/package.json b/blackberry10/package.json
index b89748e..166c66a 100644
--- a/blackberry10/package.json
+++ b/blackberry10/package.json
@@ -26,8 +26,7 @@
     "validator": "0.4.1",
     "wrench": "1.3.9",
     "shelljs":"0.1.3",
-    "elementtree": "0.1.5",
-    "plugman": "0.10.0"
+    "elementtree": "0.1.5"
   },
   "devDependencies": {
     "jake":"*",


[20/50] [abbrv] webworks commit: CB-4432 copyright notice change from Research in Motion to Apache

Posted by je...@apache.org.
CB-4432 copyright notice change from Research in Motion to Apache


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/b33f6153
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/b33f6153
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/b33f6153

Branch: refs/heads/3.1.x
Commit: b33f6153d8360b798cd93b7fcadcb5781c1c486d
Parents: 7fd0094
Author: lorinbeer <lo...@adobe.com>
Authored: Tue Aug 20 14:42:14 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Tue Aug 20 14:42:14 2013 -0700

----------------------------------------------------------------------
 blackberry10/framework/lib/config/default.js    |  27 ++--
 blackberry10/framework/lib/config/user.js       |  27 ++--
 .../framework/lib/events/applicationEvents.js   |  27 ++--
 .../framework/lib/events/deviceEvents.js        |  27 ++--
 blackberry10/framework/lib/plugins/event.js     |  27 ++--
 .../framework/lib/policy/folderAccess.js        |  27 ++--
 blackberry10/framework/lib/policy/whitelist.js  |  27 ++--
 blackberry10/framework/test/unit/lib/config.js  |  30 ----
 blackberry10/framework/test/unit/lib/event.js   | 139 -------------------
 .../test/unit/lib/events/applicationEvents.js   |  27 ++--
 .../test/unit/lib/events/deviceEvents.js        |  27 ++--
 11 files changed, 144 insertions(+), 268 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/lib/config/default.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/lib/config/default.js b/blackberry10/framework/lib/config/default.js
index 31990b1..ad1a4a4 100644
--- a/blackberry10/framework/lib/config/default.js
+++ b/blackberry10/framework/lib/config/default.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 module.exports = {
     configXML: "config.xml",

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/lib/config/user.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/lib/config/user.js b/blackberry10/framework/lib/config/user.js
index 5e36885..48ebe0a 100644
--- a/blackberry10/framework/lib/config/user.js
+++ b/blackberry10/framework/lib/config/user.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 module.exports = {
     authorEmail: "guocat@gmail.com",

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/lib/events/applicationEvents.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/lib/events/applicationEvents.js b/blackberry10/framework/lib/events/applicationEvents.js
index 14a8f9e..d0b1b2e 100644
--- a/blackberry10/framework/lib/events/applicationEvents.js
+++ b/blackberry10/framework/lib/events/applicationEvents.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 module.exports = {
     addEventListener: function (event, trigger) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/lib/events/deviceEvents.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/lib/events/deviceEvents.js b/blackberry10/framework/lib/events/deviceEvents.js
index 939357b..744d5a4 100644
--- a/blackberry10/framework/lib/events/deviceEvents.js
+++ b/blackberry10/framework/lib/events/deviceEvents.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 module.exports = {
     addEventListener: function (event, trigger) {

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/lib/plugins/event.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/lib/plugins/event.js b/blackberry10/framework/lib/plugins/event.js
index 441bc70..0a97a49 100644
--- a/blackberry10/framework/lib/plugins/event.js
+++ b/blackberry10/framework/lib/plugins/event.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 var _event = require("../../lib/event"),
     ONCE_EVENT_ERROR = "Error occured while adding once event listener.",

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/lib/policy/folderAccess.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/lib/policy/folderAccess.js b/blackberry10/framework/lib/policy/folderAccess.js
index 5cd5690..b6e9f94 100644
--- a/blackberry10/framework/lib/policy/folderAccess.js
+++ b/blackberry10/framework/lib/policy/folderAccess.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 var util = require("../utils");
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/lib/policy/whitelist.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/lib/policy/whitelist.js b/blackberry10/framework/lib/policy/whitelist.js
index dcfbc3c..59905e5 100644
--- a/blackberry10/framework/lib/policy/whitelist.js
+++ b/blackberry10/framework/lib/policy/whitelist.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 var WebFolderAccess = require("./folderAccess").WebFolderAccess,
     util = require("../utils");

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/test/unit/lib/config.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/config.js b/blackberry10/framework/test/unit/lib/config.js
index 64e8f7e..e69de29 100644
--- a/blackberry10/framework/test/unit/lib/config.js
+++ b/blackberry10/framework/test/unit/lib/config.js
@@ -1,30 +0,0 @@
-/*
- * Copyright 2010-2011 Research In Motion Limited.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-var srcPath = __dirname + '/../../../lib/';
-
-describe("Config", function () {
-    var config = require(srcPath + 'config.js');
-
-    it("verify user value is correctly mixed", function () {
-        expect(config.copyright).toEqual("@Rebecca");
-    });
-
-    it("verify default value is correctly mixed", function () {
-        expect(config.widgetExtensions).toEqual(null);
-    });
-
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/test/unit/lib/event.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/event.js b/blackberry10/framework/test/unit/lib/event.js
index 3d3e7fe..e69de29 100644
--- a/blackberry10/framework/test/unit/lib/event.js
+++ b/blackberry10/framework/test/unit/lib/event.js
@@ -1,139 +0,0 @@
-/*
- * Copyright 2010-2011 Research In Motion Limited.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-var libRoot = __dirname + "/../../../lib/";
-
-describe("lib/event", function () {
-    var event = require(libRoot + "event"),
-        webview = require(libRoot + "webview"),
-        mockedWebview;
-
-    beforeEach(function () {
-        spyOn(webview, "executeJavascript");
-        mockedWebview = {
-            executeJavaScript: jasmine.createSpy(),
-            id: (new Date()).getTime()
-        };
-    });
-
-    describe("trigger", function () {
-
-
-        it("will trigger on the content webview when no webview is registered (for backwards compatability)", function () {
-            event.trigger("foo", {"id": 123});
-            expect(mockedWebview.executeJavaScript).not.toHaveBeenCalled();
-            expect(webview.executeJavascript).toHaveBeenCalled();
-        });
-
-        it("can invoke the webview execute javascript", function () {
-            var data = {"id": 123};
-            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview);
-            event.trigger("foo", data);
-            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([data]))) + "')");
-            expect(webview.executeJavascript).not.toHaveBeenCalled();
-            this.after(function () {
-                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview);
-            });
-        });
-
-        it("sends multiple arguments passed in across as a JSONified array", function () {
-            var args = [{"id": 123, "foo": "hello world", list: [1, 2, 3]}, "Grrrrrrr", "Arrrrg"];
-            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview);
-            event.trigger.apply(null, ["foo"].concat(args));
-            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify(args))) + "')");
-            expect(webview.executeJavascript).not.toHaveBeenCalled();
-            this.after(function () {
-                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview);
-            });
-        });
-
-        it("invokes on all webviews that have registered, but not those removed", function () {
-            var mockedWebview2 = {
-                    executeJavaScript: jasmine.createSpy(),
-                    id: mockedWebview.id - 42
-                },
-                mockedWebview3 = {
-                    executeJavaScript: jasmine.createSpy(),
-                    id: mockedWebview.id + 42
-                },
-                mockedWebview4 = {
-                    executeJavaScript: jasmine.createSpy(),
-                    id: mockedWebview.id * 42
-                };
-            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview);
-            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview2);
-            event.add({event: "foo", context: {addEventListener: jasmine.createSpy()}}, mockedWebview3);
-            event.trigger("foo", {"id": 123});
-            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(mockedWebview2.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(mockedWebview3.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(mockedWebview4.executeJavaScript).not.toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(webview.executeJavascript).not.toHaveBeenCalled();
-
-
-            event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview3);
-            mockedWebview.executeJavaScript.reset();
-            mockedWebview2.executeJavaScript.reset();
-            mockedWebview3.executeJavaScript.reset();
-            mockedWebview4.executeJavaScript.reset();
-            event.trigger("foo", {"id": 123});
-            expect(mockedWebview.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(mockedWebview2.executeJavaScript).toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(mockedWebview3.executeJavaScript).not.toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(mockedWebview4.executeJavaScript).not.toHaveBeenCalledWith("webworks.event.trigger('foo', '" + escape(encodeURIComponent(JSON.stringify([{"id": 123}]))) + "')");
-            expect(webview.executeJavascript).not.toHaveBeenCalled();
-            this.after(function () {
-                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview);
-                event.remove({event: "foo", context: {removeEventListener: jasmine.createSpy()}}, mockedWebview2);
-            });
-        });
-
-    });
-
-    describe("add/remove would invoke action context", function () {
-        var action = {
-                context: {
-                    addEventListener: jasmine.createSpy(),
-                    removeEventListener: jasmine.createSpy()
-                },
-                event: "HELLO",
-                trigger: function () {}
-            };
-
-        beforeEach(function () {
-            action.context.addEventListener.reset();
-            action.context.removeEventListener.reset();
-        });
-
-        it("can invoke action context add listener", function () {
-            event.add(action, mockedWebview);
-            expect(action.context.addEventListener).toHaveBeenCalledWith(action.event, action.trigger);
-        });
-
-        it("will not invoke action context add listener when the action has a once field", function () {
-            action.once = true;
-            event.add(action, mockedWebview);
-            expect(action.context.addEventListener).not.toHaveBeenCalledWith(action.event, action.trigger);
-            this.after(function () {
-                delete action.once;
-            });
-        });
-
-        it("can invoke action context remove listener", function () {
-            event.remove(action, mockedWebview);
-            expect(action.context.removeEventListener).toHaveBeenCalledWith(action.event, action.trigger);
-        });
-    });
-});

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/test/unit/lib/events/applicationEvents.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/events/applicationEvents.js b/blackberry10/framework/test/unit/lib/events/applicationEvents.js
index 81fa2e1..8f7f1a4 100644
--- a/blackberry10/framework/test/unit/lib/events/applicationEvents.js
+++ b/blackberry10/framework/test/unit/lib/events/applicationEvents.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 var _libDir = __dirname + "./../../../../lib/",
     appEventPrefix = "application.",

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/b33f6153/blackberry10/framework/test/unit/lib/events/deviceEvents.js
----------------------------------------------------------------------
diff --git a/blackberry10/framework/test/unit/lib/events/deviceEvents.js b/blackberry10/framework/test/unit/lib/events/deviceEvents.js
index 2e55455..79161de 100644
--- a/blackberry10/framework/test/unit/lib/events/deviceEvents.js
+++ b/blackberry10/framework/test/unit/lib/events/deviceEvents.js
@@ -1,18 +1,23 @@
 /*
- * Copyright 2010-2011 Research In Motion Limited.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 var _libDir = __dirname + "./../../../../lib/",
     deviceEventPrefix = "device.",