cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [27/83] [abbrv] [partial] start of lazy loading: axe all vendored-in libs
Date Fri, 14 Jun 2013 17:30:56 GMT
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/.jshintignore
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/.jshintignore b/lib/cordova-blackberry/.jshintignore
deleted file mode 100644
index 6bb2b92..0000000
--- a/lib/cordova-blackberry/.jshintignore
+++ /dev/null
@@ -1 +0,0 @@
-bin/test/cordova/unit/params-bad.json

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/.npmignore
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/.npmignore b/lib/cordova-blackberry/.npmignore
deleted file mode 100644
index db4145c..0000000
--- a/lib/cordova-blackberry/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.gitignore
-.gitkeep

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/Jakefile
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/Jakefile b/lib/cordova-blackberry/Jakefile
deleted file mode 100644
index 81b2f6f..0000000
--- a/lib/cordova-blackberry/Jakefile
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF
- * or more contributor license agreements.  See th
- * distributed with this work for additional infor
- * regarding copyright ownership.  The ASF license
- * to you under the Apache License, Version 2.0 (t
- * "License"); you may not use this file except in
- * with the License.  You may obtain a copy of the
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to
- * software distributed under the License is distr
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
- * KIND, either express or implied.  See the Licen
- * specific language governing permissions and lim
- * under the License.
- */
-
-var DESC_NEW_LINE = "\n\t\t      #";
-
-var util         = require('util'),
-    fs           = require('fs'),
-    childProcess = require('child_process'),
-    path         = require("path"),
-    rexp_minified = new RegExp("\\.min\\.js$"),
-    rexp_src = new RegExp('\\.js$');
-
-// HELPERS
-// Iterates over a directory
-function forEachFile(root, cbFile, cbDone) {
-    var count = 0;
-
-    function scan(name) {
-        ++count;
-
-        fs.stat(name, function (err, stats) {
-            if (err) cbFile(err);
-
-            if (stats.isDirectory()) {
-                fs.readdir(name, function (err, files) {
-                    if (err) cbFile(err);
-
-                    files.forEach(function (file) {
-                        scan(path.join(name, file));
-                    });
-                    done();
-                });
-            } else if (stats.isFile()) {
-                cbFile(null, name, stats, done);
-            } else {
-                done();
-            }
-        });
-    }
-
-    function done() {
-        --count;
-        if (count === 0 && cbDone) cbDone();
-    }
-
-    scan(root);
-}
-
-desc("runs test");
-task('default', ['hint','test'], function () {});
-
-desc("run all tests in node - jake test [path]");
-task('test', [], function () {
-    require('./scripts/test')(null, process.argv.length >= 4 ? process.argv[3] : null);
-});
-
-desc('check sources with JSHint');
-task('hint', ['complainwhitespace'], function () {
-    var knownWarnings = [
-        "Redefinition of 'FileReader'",
-        "Redefinition of 'require'",
-        "Read only",
-        "Redefinition of 'console'"
-    ];
-    var filterKnownWarnings = function(el, index, array) {
-        var wut = true;
-        // filter out the known warnings listed out above
-        knownWarnings.forEach(function(e) {
-            wut = wut && (el.indexOf(e) == -1);
-        });
-        wut = wut && (!el.match(/\d+ errors/));
-        return wut;
-    };
-
-    childProcess.exec("jshint framework/lib bin/lib bin/test bin/templates/project/cordova bin/templates/project/project.json --config .jshint --extra-ext .json",function(err,stdout,stderr) {
-        var exs = stdout.split('\n');
-        console.log(exs.filter(filterKnownWarnings).join('\n'));
-        complete();
-    });
-}, true);
-
-var complainedAboutWhitespace = false
-
-desc('complain about what fixwhitespace would fix');
-task('complainwhitespace', function() {
-    processWhiteSpace(function(file, newSource) {
-        if (!complainedAboutWhitespace) {
-            console.log("files with whitespace issues: (to fix: `jake fixwhitespace`)")
-            complainedAboutWhitespace = true
-        }
-
-        console.log("   " + file)
-    })
-}, true);
-
-desc('converts tabs to four spaces, eliminates trailing white space, converts newlines to proper form - enforcing style guide ftw!');
-task('fixwhitespace', function() {
-    processWhiteSpace(function(file, newSource) {
-        if (!complainedAboutWhitespace) {
-            console.log("fixed whitespace issues in:")
-            complainedAboutWhitespace = true
-        }
-
-        fs.writeFileSync(file, newSource, 'utf8');
-        console.log("   " + file)
-    })
-}, true);
-
-function processWhiteSpace(processor) {
-    forEachFile('framework', function(err, file, stats, cbDone) {
-        //if (err) throw err;
-        if (rexp_minified.test(file) || !rexp_src.test(file)) {
-            cbDone();
-        } else {
-            var origsrc = src = fs.readFileSync(file, 'utf8');
-
-            // tabs -> four spaces
-            if (src.indexOf('\t') >= 0) {
-                src = src.split('\t').join('    ');
-            }
-
-            // eliminate trailing white space
-            src = src.replace(/ +\n/g, '\n');
-
-            if (origsrc !== src) {
-                // write it out yo
-                processor(file, src);
-            }
-            cbDone();
-        }
-    }, complete);
-}

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/LICENSE
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/LICENSE b/lib/cordova-blackberry/LICENSE
deleted file mode 100644
index ee6a935..0000000
--- a/lib/cordova-blackberry/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-cli/blob/67fa7ebb/lib/cordova-blackberry/NOTICE
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/NOTICE b/lib/cordova-blackberry/NOTICE
deleted file mode 100644
index 23360ce..0000000
--- a/lib/cordova-blackberry/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-cli/blob/67fa7ebb/lib/cordova-blackberry/README.md
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/README.md b/lib/cordova-blackberry/README.md
deleted file mode 100644
index 7430e96..0000000
--- a/lib/cordova-blackberry/README.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# Apache Cordova for BlackBerry 10
-
-Apache Cordova is an application development platform which allows mobile applications to be written with web technology: HTML, CSS and JavaScript. Access to device APIs is provided by native plugins.
-
-This implementation for BlackBerry 10 packages web assets into a BAR file which may be deployed to devices and simulators.
-
-## Pre-requisites
-
-Install the latest BlackBerry 10 NDK:
-
-[https://developer.blackberry.com/native/download/](https://developer.blackberry.com/native/download)
-
-Setup environment variables:
-- [Linux/Mac] `source [BBNDK directory]/bbndk-env.sh`
-- [Windows] `[BBNDK directory]\bbndk-env.bat`
-
-Install code signing keys:
-
-[https://developer.blackberry.com/html5/documentation/signing_setup_bb10_apps_2008396_11.html](https://developer.blackberry.com/html5/documentation/signing_setup_bb10_apps_2008396_11.html)
-
-Install node.js:
-
-[http://nodejs.org/](http://nodejs.org/)
-
-Ensure npm is installed:
-
-More recent versions of Nodejs will come with npm included.
-
-## Getting Started
-
-Create a new project:
-
-`bin/create <path to project>`
-
-## Managing Targets
-
-A target is a device or simulator which will run the app.
-
-This command will add a new target:
-
-`<path to project>/cordova/target add <name> <ip> <device | simulator> [-p | --password <password>] [--pin <devicepin>]`
-
-To remove a target:
-
-`<path to project>/cordova/target remove <name>`
-
-To set a target as default:
-
-`<path to project>/cordova/target default <name>`
-
-## Building
-
-`<path to project>/cordova/build`
-
-A project can be built in debug or release mode.
-
-To run an application in debug mode, a debug token must first be installed on the device. The build script will automatically attempt to generate a token and install it. This requires code signing keys to be installed on the development machine. Debug mode will also enable WebInspector. A prompt will appear with the URL to access WebInspector from a remote machine.
-
-If building in release mode, a unique buildId must be provided, either via command line or by setting it in config.xml.
-
-Here is the build script syntax:
-
-`build command [<target>] [-k | --keystorepass] [-b | --buildId <number>] [-p | --params <json>] [-ll | --loglevel <level>]`
-
-Commands:
-
-    release [options]
-        Build in release mode. This will sign the resulting bar.
-
-    debug [options]
-        Build in debug mode.
-
-  Options:
-
-    -h, --help                       output usage information
-    -k, --keystorepass <password>    Signing key password
-    -b, --buildId <num>              Specifies the build number for signing (typically incremented from previous signing).
-    -p, --params <params JSON file>  Specifies additional parameters to pass to downstream tools.
-    -ll, --loglevel <loglevel>       set the logging level (error, warn, verbose)`
-
-## Deploying
-
-To deploy the project to a target, use the run command:
-
-`<path to project>/cordova/run <target>`
-
-## Plugin Management
-
-To add a plugin from a local path, you will first need to run fetch:
-
-`<path to project>/cordova/plugin fetch <path to plugin>`
-
-Now the plugin can be installed by name:
-
-`<path to project>/cordova/plugin install <name>`
-
-Plugins hosted remotely can be installed by name without using fetch. To see a list of available remote plugins use:
-
-`<path to project>/cordova/plugin list`
-

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/VERSION
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/VERSION b/lib/cordova-blackberry/VERSION
deleted file mode 100644
index 834f262..0000000
--- a/lib/cordova-blackberry/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-2.8.0

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/check_reqs
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/check_reqs b/lib/cordova-blackberry/bin/check_reqs
deleted file mode 100755
index 9c2545c..0000000
--- a/lib/cordova-blackberry/bin/check_reqs
+++ /dev/null
@@ -1,31 +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.
-#
-#!/bin/sh
-if command -v node >/dev/null 2>&1; then
-    if command -v npm >/dev/null 2>&1; then
-        node "$( dirname "$0" )/check_reqs.js" "$@"
-    else
-        echo "npm cannot be found on the path. Aborting."
-        exit 1
-    fi
-else
-    echo "Node cannot be found on the path. Aborting."
-    exit 1
-fi
-

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/check_reqs.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/check_reqs.bat b/lib/cordova-blackberry/bin/check_reqs.bat
deleted file mode 100755
index faef279..0000000
--- a/lib/cordova-blackberry/bin/check_reqs.bat
+++ /dev/null
@@ -1,46 +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
-
-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
-  )
-)
-
-if not defined FOUNDNODE (
-  echo "npm cannot be found on the path. Aborting."
-  exit /b 1
-)
-if not defined FOUNDNPM (
-  echo "Node cannot be found on the path. Aborting."
-  exit /b 1
-)
-
-@node.exe "%~dp0\check_reqs.js" %*

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/check_reqs.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/check_reqs.js b/lib/cordova-blackberry/bin/check_reqs.js
deleted file mode 100644
index 081a0e0..0000000
--- a/lib/cordova-blackberry/bin/check_reqs.js
+++ /dev/null
@@ -1,38 +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 MIN_NODE_VER = "0.9.9",
-    qnxHost = process.env.QNX_HOST;
-
-function isNodeNewerThanMin () {
-    //Current version is stored as a String in format "X.X.X"
-    //Must be newer than "0.9.9"
-    var currentVer = process.versions.node.split(".").map(function (verNumStr) { return parseInt(verNumStr, 10);});
-    return (currentVer[0] > 0 || currentVer[1] > 9 || currentVer[1] === 9 && currentVer[2] >= 9);
-}
-
-if (typeof qnxHost === "undefined" || typeof process.env.QNX_TARGET === "undefined" || process.env.PATH.indexOf(qnxHost) === -1) {
-    console.log("BBNDK has not been setup. Please run the appropriate shell script. Aborting.");
-    process.exit(1);
-} else if (!isNodeNewerThanMin()) {
-    console.log("Node version '" + process.versions.node + "' is not new enough. Please upgrade to " + MIN_NODE_VER + " or newer. Aborting.");
-    process.exit(1);
-}
-
-process.exit(0);

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/create
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/create b/lib/cordova-blackberry/bin/create
deleted file mode 100755
index b8b2b89..0000000
--- a/lib/cordova-blackberry/bin/create
+++ /dev/null
@@ -1,39 +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]
-#
-#!/bin/sh
-
-CURRENT_DIR=$(pwd)
-BIN_DIR=$(dirname "$0")
-
-#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 ! [ $? -eq 0 ]; then
-  echo "NPM install failed. Aborting."
-else
-  node "$BIN_DIR"/create.js "$@"
-fi

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/create.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/create.bat b/lib/cordova-blackberry/bin/create.bat
deleted file mode 100644
index a8f7bab..0000000
--- a/lib/cordova-blackberry/bin/create.bat
+++ /dev/null
@@ -1,27 +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
-
-set BIN_DIR=%~dp0
-
-pushd %BIN_DIR%..
-call npm install
-popd
-
-node.exe "%BIN_DIR%create.js" %*

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/create.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/create.js b/lib/cordova-blackberry/bin/create.js
deleted file mode 100644
index b454d37..0000000
--- a/lib/cordova-blackberry/bin/create.js
+++ /dev/null
@@ -1,194 +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 build,
-    path = require("path"),
-    fs = require("fs"),
-    wrench = require("wrench"),
-    utils = require(path.join(__dirname, 'lib/utils')),
-    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"),
-    BOOTSTRAP_PROJECT_DIR = path.join(__dirname, "..", "framework", "bootstrap"),
-    FRAMEWORK_LIB_PROJECT_DIR = path.join(__dirname, "..", "framework", "lib"),
-    BUILD_DIR = path.join(__dirname, "build"),
-    CORDOVA_JS_SRC = path.join(__dirname, "..", "javascript", "cordova.blackberry10.js"),
-    update_dir = path.join(project_path, "lib", "cordova." + version),
-    native_dir = path.join(project_path, "native"),
-    js_path = "javascript",
-    js_basename = "cordova.js";
-
-function getVersion() {
-    var version = fs.readFileSync(path.join(__dirname,  "..", "VERSION"));
-    if (version) {
-        return version.toString().replace( /([^\x00-\xFF]|\s)*$/g, '' );
-    }
-}
-
-function validPackageName(packageName) {
-    var domainRegex = /^[a-zA-Z]([a-zA-Z0-9])*(\.[a-zA-Z]([a-zA-Z0-9])*)*$/;
-    if (typeof packageName !== "undefined") {
-        if ((packageName.length > 50) || !domainRegex.test(packageName)) {
-            return false;
-        }
-    }
-    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");
-        help();
-        process.exit(2); 
-        return "";
-    } else {
-        return path.resolve(process.argv[2]);
-    }
-}
-
-function validate() {
-    if (fs.existsSync(project_path)) {
-        console.log("The project path must be an empty directory");
-        help();
-        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);
-    }
-    if (!validBarName(bar_name)) {
-        console.log("BAR filename can only contain alpha-numeric, '.', '-' and '_' characters");
-        help();
-        process.exit(2);
-    }
-}
-
-function clean() {
-    if (fs.existsSync(BUILD_DIR)) {
-        wrench.rmdirSyncRecursive(BUILD_DIR);
-    }
-}
-
-function copyJavascript() {
-    wrench.mkdirSyncRecursive(path.join(BUILD_DIR, js_path), 0777);
-    utils.copyFile(CORDOVA_JS_SRC, path.join(BUILD_DIR, js_path));
-
-    //rename copied cordova.blackberry10.js file
-    fs.renameSync(path.join(BUILD_DIR, js_path, "cordova.blackberry10.js"), path.join(BUILD_DIR, js_path, js_basename));
-}
-
-function copyFilesToProject() {
-    var nodeModulesDest = path.join(project_path, "cordova", "node_modules");
-
-    // create project using template directory
-    wrench.mkdirSyncRecursive(project_path, 0777);
-    wrench.copyDirSyncRecursive(TEMPLATE_PROJECT_DIR, project_path);
-
-    // change file permission for cordova scripts because ant copy doesn't preserve file permissions
-    wrench.chmodSyncRecursive(path.join(project_path,"cordova"), 0700);
-
-    //copy cordova-*version*.js to www
-    utils.copyFile(path.join(BUILD_DIR, js_path, js_basename), path.join(project_path, "www"));
-
-    //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);
-
-    //copy framework bootstrap
-    TARGETS.forEach(function (target) {
-        var chromeDir = path.join(native_dir, target, "chrome"),
-            frameworkLibDir = path.join(chromeDir, "lib");
-
-        wrench.mkdirSyncRecursive(frameworkLibDir);
-        wrench.copyDirSyncRecursive(BOOTSTRAP_PROJECT_DIR, chromeDir);
-        wrench.copyDirSyncRecursive(FRAMEWORK_LIB_PROJECT_DIR, frameworkLibDir);
-    });
-
-    // save release
-    wrench.mkdirSyncRecursive(update_dir, 0777);
-    wrench.copyDirSyncRecursive(BUILD_DIR, update_dir);
-}
-
-function updateProject() {
-    var projectJson = require(path.resolve(path.join(project_path, "project.json"))),
-        configXMLPath = path.resolve(path.join(project_path, "www", "config.xml")),
-        xmlString;
-
-    if (typeof app_id !== "undefined") {
-        xmlString = fs.readFileSync(configXMLPath, "utf-8");
-        fs.writeFileSync(configXMLPath, xmlString.replace("default.app.id", app_id), "utf-8");
-    }
-
-    if (typeof bar_name !== "undefined") {
-        projectJson.barName = bar_name;
-    }
-
-    projectJson.globalFetchDir = path.join(__dirname, "..", "plugins");
-
-    fs.writeFileSync(path.join(project_path, "project.json"), JSON.stringify(projectJson, null, 4) + "\n", "utf-8");
-}
-
-function installPlugins() {
-    var pluginScript = path.join(project_path, "cordova", "lib", "plugin.js");
-    require(pluginScript).add(path.join(__dirname, "..", "plugins"));
-}
-
-function help() {
-    console.log("\nUsage: create <project path> [package name [BAR filename]] \n");
-    console.log("Options: \n");
-    console.log("   -h, --help      output usage information \n");
-}
-
-if ( process.argv[2] === "-h" || process.argv[2] === "--help" ) {
-    help();
-} else {
-    try {
-        validate();
-        clean();
-        copyJavascript();
-        copyFilesToProject();
-        updateProject();
-        installPlugins();
-        clean();
-        process.exit();
-    } catch (ex) {
-        console.log("Project creation failed!\n" + "Error: " + ex);
-        process.exit(1);
-    }
-}
-

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/lib/localize.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/lib/localize.js b/lib/cordova-blackberry/bin/lib/localize.js
deleted file mode 100644
index 66bddfa..0000000
--- a/lib/cordova-blackberry/bin/lib/localize.js
+++ /dev/null
@@ -1,26 +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 Localize = require("localize"),
-    loc = new Localize({
-        "SOME_WARNING": {
-            "en": "You have disabled all web security in this WebWorks application"
-        }
-    }, "", ""); // TODO maybe a bug in localize, must set default locale to "" in order get it to work
-
-loc.setLocale("en");
-
-module.exports = loc;

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/lib/utils.js b/lib/cordova-blackberry/bin/lib/utils.js
deleted file mode 100644
index 88dc619..0000000
--- a/lib/cordova-blackberry/bin/lib/utils.js
+++ /dev/null
@@ -1,167 +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'),
-    _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);
-    }
-};
-
-module.exports = _self;

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/build
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/build b/lib/cordova-blackberry/bin/templates/project/cordova/build
deleted file mode 100755
index ade60b0..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/build
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#package app
-node "$(dirname "$0")/lib/build" "$@"
-

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/build.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/build.bat b/lib/cordova-blackberry/bin/templates/project/cordova/build.bat
deleted file mode 100755
index 191e448..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/build.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
-
-@node.exe %~dps0\lib\build %*

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/clean
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/clean b/lib/cordova-blackberry/bin/templates/project/cordova/clean
deleted file mode 100755
index abe96ea..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/clean
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-node "$(dirname "$0")/lib/clean"

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/clean.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/clean.bat b/lib/cordova-blackberry/bin/templates/project/cordova/clean.bat
deleted file mode 100755
index d613d87..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/clean.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
-
-@node.exe %~dps0\lib\clean %*

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-builder.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-builder.js b/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-builder.js
deleted file mode 100644
index 0a955f9..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-builder.js
+++ /dev/null
@@ -1,98 +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 jWorkflow = require("jWorkflow"),
-    wrench = require("wrench"),
-    nativePkgr = require("./native-packager"),
-    fileManager = require("./file-manager"),
-    localize = require("./localize"),
-    logger = require("./logger"),
-    signingHelper = require("./signing-helper"),
-    targetIdx = 0;
-
-function buildTarget(previous, baton) {
-    baton.take();
-
-    var target = this.session.targets[targetIdx++],
-        session = this.session,
-        config = this.config;
-
-    //Create output folder
-    wrench.mkdirSyncRecursive(session.outputDir + "/" + target);
-
-    //Copy resources (could be lost if copying assets from other project)
-    fileManager.copyNative(this.session, target);
-    //Generate user config here to overwrite default
-    fileManager.generateUserConfig(session, config);
-
-    if (config.packageCordovaJs) {
-        //Package cordova.js to chrome folder
-        fileManager.copyWebworks(this.session);
-    }
-
-    //Generate frameworkModules.js (this needs to be done AFTER all files have been copied)
-    fileManager.generateFrameworkModulesJS(session);
-
-    //Call native-packager module for target
-    nativePkgr.exec(session, target, config, function (code) {
-        if (code !== 0) {
-            logger.error(localize.translate("EXCEPTION_NATIVEPACKAGER"));
-            baton.pass(code);
-        } else {
-            if (target === "device" && session.isSigningRequired(config)) {
-                signingHelper.execSigner(session, target, function (code) {
-                    baton.pass(code);
-                });
-            } else {
-                baton.pass(code);
-            }
-        }
-    });
-}
-
-function buildWorkflow(session, context) {
-    if (session.targets && session.targets.length > 0) {
-        var order;
-
-        session.targets.forEach(function (target, idx) {
-            if (idx === 0) {
-                order = jWorkflow.order(buildTarget, context);
-            } else {
-                order = order.andThen(buildTarget, context);
-            }
-        });
-
-        return order;
-    } else {
-        logger.debug("NOTHING TO BUILD, NO TARGETS");
-    }
-}
-
-module.exports = {
-    build: function (session, config, callback) {
-        var context = {
-                session: session,
-                config: config
-            },
-            workflow = buildWorkflow(session, context);
-
-        if (workflow) {
-            workflow.start({
-                "callback": callback
-            });
-        }
-    }
-};

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-conf.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-conf.js b/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-conf.js
deleted file mode 100644
index 857875b..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/lib/bar-conf.js
+++ /dev/null
@@ -1,27 +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 self = {};
-
-self.ROOT = "";
-self.CHROME = self.ROOT + "/chrome";
-self.LIB = self.CHROME + "/lib";
-self.EXT = self.CHROME + "/plugin";
-self.UI = self.ROOT + "/ui-resources";
-self.PLUGINS = self.ROOT + "/plugins";
-self.JNEXT_PLUGINS = self.ROOT + "/plugins/jnext";
-
-module.exports = self;

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/lib/bbwpignore.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/lib/bbwpignore.js b/lib/cordova-blackberry/bin/templates/project/cordova/lib/bbwpignore.js
deleted file mode 100755
index 29c6399..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/lib/bbwpignore.js
+++ /dev/null
@@ -1,129 +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"),
-    BBWPignore;
-
-function getDirectory(file) {
-    if (file.match("/$")) {
-        return file;
-    } else if (file.indexOf("/") === -1) {
-        return "";
-    } else {
-        return file.substring(0, file.lastIndexOf("/"));
-    }
-}
-
-function trim(str) {
-    return str.replace(/^\s+|\s+$/g, "");
-}
-
-BBWPignore = function (bbwpIgnoreFile, filesToMatch) {
-    var comments = [],
-        directories = [],
-        wildcardEntries = [],
-        files = [],
-        split,
-        matched = [],
-        i,
-        temparr,
-        tempFiles = [];
-    temparr = fs.readFileSync(bbwpIgnoreFile, "utf-8").split('\n');
-
-    //switch all the paths to relative, so if someone has passed absolute paths convert them to relative to .bbwpignore
-    filesToMatch.forEach(function (file) {
-        if (file === path.resolve(file)) { //if path is absolute
-            tempFiles.push(path.relative(path.dirname(bbwpIgnoreFile), file));
-        } else {
-            tempFiles.push(file);
-        }
-    });
-    filesToMatch = tempFiles;
-
-    //run through all the patterns in the bbwpignore and put them in appropriate arrays
-    for (i = 0; i < temparr.length; i++) {
-        temparr[i] = trim(temparr[i]);
-        if (temparr[i] !== "") {
-            if (temparr[i].match("^#")) {
-                comments.push(temparr[i]);
-            } else if (temparr[i].match("^/") && temparr[i].match("/$")) {
-                directories.push(temparr[i]);
-            } else if (temparr[i].indexOf("*") !== -1) {
-                split = temparr[i].split("/");
-                if (split[split.length - 1].indexOf("*") !== -1) { // only wildcards in the file name are supported, not in directory names
-                    wildcardEntries.push(temparr[i]);
-                } else {
-                    files.push(temparr[i]);
-                }
-            } else {
-                files.push(temparr[i]);
-            }
-        }
-    }
-
-    //run through all the files and check it against each of the patterns collected earlier
-    filesToMatch.forEach(function (fileToMatch) {
-        var directory,
-            dirOrig = getDirectory(fileToMatch),
-            isMatch = false;
-        //match directories
-        directory = "/" + dirOrig + "/";
-        if (directories.indexOf(directory) !== -1) {
-            matched.push(fileToMatch);
-            //add the directory to the list as well but only check
-            if (matched.indexOf("/" + dirOrig) === -1) {
-                matched.push("/" + dirOrig);
-            }
-            isMatch = true;
-        } else {
-            //handle special case when match patterns begin with /
-            //match wildCards
-            wildcardEntries.forEach(function (wildcard) {
-                if (wildcard.match("^/")) { // special case looking for exact match
-                    wildcard = "^" + wildcard.replace("*", "[^\/]*");
-                    if (("/" + fileToMatch).match(wildcard)) {
-                        matched.push(fileToMatch);
-                        isMatch = true;
-                    }
-                } else {
-                    wildcard = wildcard.replace("*", "[^\/]*");
-                    if (fileToMatch.match(wildcard)) {
-                        matched.push(fileToMatch);
-                        isMatch = true;
-                    }
-                }
-            });
-            if (!isMatch) { //must be a file
-                files.forEach(function (file) {
-                    if (file.match("^/")) { // special case looking for exact match
-                        if (file === ("/" + fileToMatch)) {
-                            matched.push(fileToMatch);
-                            isMatch = true;
-                        }
-                    } else if (fileToMatch.match(file)) {
-                        matched.push(fileToMatch);
-                        isMatch = true;
-                    }
-                });
-
-            }
-        }
-    });
-    this.matchedFiles = matched;
-};
-
-module.exports = BBWPignore;

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/lib/build
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/lib/build b/lib/cordova-blackberry/bin/templates/project/cordova/lib/build
deleted file mode 100644
index 5e15425..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/lib/build
+++ /dev/null
@@ -1,138 +0,0 @@
-#!/usr/bin/env node
-
-/*
- *  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 path = require("path"),
-    command = require("commander"),
-    projectProperties = require("../../project.json"),
-    bbwpArgv = [
-        process.argv[0],
-        path.resolve(path.join(__dirname, process.argv[1])),
-        path.resolve(path.join(__dirname, "..", "..", "www")),
-        "-o",
-        path.resolve(path.join(__dirname, "..", "..", "build"))
-    ],
-    jWorkflow = require("jWorkflow"),
-    childProcess = require("child_process"),
-    pkgrUtils = require("./packager-utils"),
-    commandStr;
-
-function copyArgIfExists(arg) {
-    if (command[arg]) {
-        bbwpArgv.push("--" + arg);
-        bbwpArgv.push(command[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"]) {
-        bbwpArgv.push("--password");
-        bbwpArgv.push(command["keystorepass"]);
-    } else if (projectProperties.keystorepass) {
-        bbwpArgv.push("--password");
-        bbwpArgv.push( projectProperties.keystorepass);
-    } else {
-        console.log("No signing password provided. Please use --keystorepass via command-line or enter a value for keystorepass in project.json");
-        console.log(command.helpInformation()); 
-        process.exit(2);
-    }
-
-    copyArgIfExists("buildId");
-
-    build();
-}
-
-function build() {
-    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 {
-        doDebugBuild();
-    }
-}
-
-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>]')
-    .option('--debug', 'build in debug mode.')
-    .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('-p, --params <params JSON file>', 'specifies additional parameters to pass to downstream tools.')
-    .option('-ll, --loglevel <loglevel>', 'set the logging level (error, warn, verbose)');
-
-try {
-    command.parse(process.argv);
-
-    if (command.debug && command.release) {
-        console.log("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();
-} catch (e) {
-    console.log(e);
-    process.exit(2);
-}
-

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/lib/clean
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/lib/clean b/lib/cordova-blackberry/bin/templates/project/cordova/lib/clean
deleted file mode 100644
index 46391d3..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/lib/clean
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env node
-
-/*
- *  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.
- */
-
-var wrench = require('wrench'),
-    path = require("path"),
-    buildPath = path.normalize(__dirname + "/../../build/");
-
-   wrench.rmdirSyncRecursive(buildPath, true);
-

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/lib/cmdline.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/lib/cmdline.js b/lib/cordova-blackberry/bin/templates/project/cordova/lib/cmdline.js
deleted file mode 100644
index 14eb172..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/lib/cmdline.js
+++ /dev/null
@@ -1,67 +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 command = require("commander"),
-    logger = require("./logger"),
-    localize = require("./localize");
-
-command
-    .version('1.0.0.0')
-    .usage('[drive:][path]archive [-s [dir]] [[ -g genpassword] [-buildId num]] [-o dir] [-d] [-p paramsjsonfile]')
-    .option('-s, --source [dir]', 'Save source. The default behaviour is to not save the source files. If dir is specified then creates dir\\src\\ directory structure. If no dir specified then the path of archive is assumed')
-    .option('-g, --password <password>', 'Signing key password')
-    .option('-buildId <num>', '[deprecated] Use --buildId.')
-    .option('-b, --buildId <num>', 'Specifies the build number for signing (typically incremented from previous signing).')
-    .option('-o, --output <dir>', 'Redirects output file location to dir. If both -o and dir are not specified then the path of archive is assumed')
-    .option('-d, --debug', 'Allows use of not signed build on device by utilizing debug token and enables Web Inspector.')
-    .option('-p, --params <params JSON file>', 'Specifies additional parameters to pass to downstream tools.')
-    .option('--appdesc <filepath>', 'Optionally specifies the path to the bar descriptor file (bar-descriptor.xml). For internal use only.')
-    .option('-v, --verbose', 'Turn on verbose messages')
-	.option('-ll, --loglevel <loglevel>', 'set the logging level (error, warn, verbose)');
-
-function parseArgs(args) {
-    var option,
-        i;
-    if (!args[2]) {
-        //no args passed into [node bbwp.js], show the help information
-        args.push("-h");
-    }
-
-    //Handle deprecated option -buildId
-    for (i = 0; i < args.length; i++) {
-        if (args[i] === "-buildId") {
-            args[i] = "--buildId";
-        }
-    }
-    
-    command.parse(args);
-
-    //Check for any invalid command line args
-    for (i = 0; i < args.length; i++) {
-        //Remove leading dashes if any
-        option = args[i].substring(2);
-        if (args[i].indexOf("--") === 0 && !command[option]) {
-            throw localize.translate("EXCEPTION_CMDLINE_ARG_INVALID", args[i]);
-        }
-    }
-
-    return this;
-}
-
-module.exports = {
-    "commander": command,
-    "parse": parseArgs
-};

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/67fa7ebb/lib/cordova-blackberry/bin/templates/project/cordova/lib/conf.js
----------------------------------------------------------------------
diff --git a/lib/cordova-blackberry/bin/templates/project/cordova/lib/conf.js b/lib/cordova-blackberry/bin/templates/project/cordova/lib/conf.js
deleted file mode 100644
index 89f8372..0000000
--- a/lib/cordova-blackberry/bin/templates/project/cordova/lib/conf.js
+++ /dev/null
@@ -1,47 +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 path = require("path"),
-    fs = require("fs");
-
-function getToolsDir() {
-    if (process.env && process.env.QNX_HOST) {
-        var bbndkDir = path.join(process.env.QNX_HOST, "usr");
-        if (fs.existsSync(bbndkDir)) {
-            //BBNDK exists on path, use its tools
-            return bbndkDir;
-        }
-    }
-}
-
-module.exports = {
-    ROOT: path.normalize(__dirname + "/../framework"),
-    PROJECT_ROOT: path.normalize(__dirname + "/../../"),
-    NATIVE: path.normalize(__dirname + "/../../native"),
-    JNEXT_AUTH: path.normalize(__dirname + "/../../native/plugins/jnext/auth.txt"),
-    BIN: path.normalize(__dirname + "/../framework/bin"),
-    LIB: path.normalize(__dirname + "/../framework/lib"),
-    EXT: path.normalize(__dirname + "/../../plugins"),
-    UI: path.normalize(__dirname + "/../framework/ui-resources"),
-    DEPENDENCIES: path.normalize(__dirname + "/../framework/dependencies"),
-    DEPENDENCIES_BOOTSTRAP: path.normalize(__dirname + "/../framework/bootstrap"),
-    DEPENDENCIES_TOOLS: getToolsDir(),
-    DEPENDENCIES_WWE: path.normalize(__dirname + "/../dependencies/%s-wwe"),
-    DEBUG_TOKEN: path.normalize(__dirname + "/../debugtoken.bar"),
-    DEFAULT_ICON: path.normalize(__dirname + "/../default-icon.png"),
-    BAR_DESCRIPTOR: "bar-descriptor.xml",
-    BBWP_IGNORE_FILENAME: ".bbwpignore"
-};


Mime
View raw message