cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [15/15] ios commit: Update bundled ios-sim to 6.0.0
Date Mon, 19 Jun 2017 00:28:01 GMT
Update bundled ios-sim to 6.0.0

 This closes #320


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

Branch: refs/heads/master
Commit: 4490abf273ec6d12810c8ff5ea16d197c58ecd4b
Parents: df5441d
Author: Shazron Abdullah <shazron@gmail.com>
Authored: Sun Jun 18 15:31:57 2017 -0700
Committer: Shazron Abdullah <shazron@gmail.com>
Committed: Sun Jun 18 17:27:33 2017 -0700

----------------------------------------------------------------------
 node_modules/bplist-creator/bplistCreator.js    |   47 +-
 node_modules/bplist-creator/package.json        |   44 +-
 node_modules/bplist-creator/test/sample1.bplist |  Bin 605 -> 631 bytes
 node_modules/ios-sim/.travis.yml                |    2 -
 node_modules/ios-sim/README.md                  |    2 +-
 node_modules/ios-sim/appveyor.yml               |    2 -
 node_modules/ios-sim/node_modules/.bin/shjs     |    1 +
 .../node_modules/shelljs/.documentup.json       |    6 +
 .../ios-sim/node_modules/shelljs/.jshintrc      |    7 +
 .../ios-sim/node_modules/shelljs/.npmignore     |    2 +
 .../ios-sim/node_modules/shelljs/.travis.yml    |    5 +
 .../ios-sim/node_modules/shelljs/LICENSE        |   26 +
 .../ios-sim/node_modules/shelljs/README.md      |  552 ++
 .../ios-sim/node_modules/shelljs/bin/shjs       |   51 +
 .../ios-sim/node_modules/shelljs/global.js      |    3 +
 .../ios-sim/node_modules/shelljs/make.js        |   47 +
 .../ios-sim/node_modules/shelljs/package.json   |   93 +
 .../shelljs/scripts/generate-docs.js            |   21 +
 .../node_modules/shelljs/scripts/run-tests.js   |   50 +
 .../ios-sim/node_modules/shelljs/shell.js       |  153 +
 .../ios-sim/node_modules/shelljs/src/cat.js     |   43 +
 .../ios-sim/node_modules/shelljs/src/cd.js      |   19 +
 .../ios-sim/node_modules/shelljs/src/chmod.js   |  208 +
 .../ios-sim/node_modules/shelljs/src/common.js  |  189 +
 .../ios-sim/node_modules/shelljs/src/cp.js      |  200 +
 .../ios-sim/node_modules/shelljs/src/dirs.js    |  191 +
 .../ios-sim/node_modules/shelljs/src/echo.js    |   20 +
 .../ios-sim/node_modules/shelljs/src/error.js   |   10 +
 .../ios-sim/node_modules/shelljs/src/exec.js    |  181 +
 .../ios-sim/node_modules/shelljs/src/find.js    |   51 +
 .../ios-sim/node_modules/shelljs/src/grep.js    |   52 +
 .../ios-sim/node_modules/shelljs/src/ls.js      |  126 +
 .../ios-sim/node_modules/shelljs/src/mkdir.js   |   68 +
 .../ios-sim/node_modules/shelljs/src/mv.js      |   80 +
 .../ios-sim/node_modules/shelljs/src/popd.js    |    1 +
 .../ios-sim/node_modules/shelljs/src/pushd.js   |    1 +
 .../ios-sim/node_modules/shelljs/src/pwd.js     |   11 +
 .../ios-sim/node_modules/shelljs/src/rm.js      |  145 +
 .../ios-sim/node_modules/shelljs/src/sed.js     |   43 +
 .../ios-sim/node_modules/shelljs/src/tempdir.js |   56 +
 .../ios-sim/node_modules/shelljs/src/test.js    |   85 +
 .../ios-sim/node_modules/shelljs/src/to.js      |   29 +
 .../ios-sim/node_modules/shelljs/src/toEnd.js   |   29 +
 .../ios-sim/node_modules/shelljs/src/which.js   |   79 +
 .../node_modules/simctl/node_modules/.bin/shjs  |    1 -
 .../node_modules/shelljs/.documentup.json       |    6 -
 .../simctl/node_modules/shelljs/.jshintrc       |    7 -
 .../simctl/node_modules/shelljs/.npmignore      |    2 -
 .../simctl/node_modules/shelljs/.travis.yml     |    5 -
 .../simctl/node_modules/shelljs/LICENSE         |   26 -
 .../simctl/node_modules/shelljs/README.md       |  552 --
 .../simctl/node_modules/shelljs/bin/shjs        |   51 -
 .../simctl/node_modules/shelljs/global.js       |    3 -
 .../simctl/node_modules/shelljs/make.js         |   47 -
 .../simctl/node_modules/shelljs/package.json    |   61 -
 .../shelljs/scripts/generate-docs.js            |   21 -
 .../node_modules/shelljs/scripts/run-tests.js   |   50 -
 .../simctl/node_modules/shelljs/shell.js        |  153 -
 .../simctl/node_modules/shelljs/src/cat.js      |   43 -
 .../simctl/node_modules/shelljs/src/cd.js       |   19 -
 .../simctl/node_modules/shelljs/src/chmod.js    |  208 -
 .../simctl/node_modules/shelljs/src/common.js   |  189 -
 .../simctl/node_modules/shelljs/src/cp.js       |  200 -
 .../simctl/node_modules/shelljs/src/dirs.js     |  191 -
 .../simctl/node_modules/shelljs/src/echo.js     |   20 -
 .../simctl/node_modules/shelljs/src/error.js    |   10 -
 .../simctl/node_modules/shelljs/src/exec.js     |  181 -
 .../simctl/node_modules/shelljs/src/find.js     |   51 -
 .../simctl/node_modules/shelljs/src/grep.js     |   52 -
 .../simctl/node_modules/shelljs/src/ls.js       |  126 -
 .../simctl/node_modules/shelljs/src/mkdir.js    |   68 -
 .../simctl/node_modules/shelljs/src/mv.js       |   80 -
 .../simctl/node_modules/shelljs/src/popd.js     |    1 -
 .../simctl/node_modules/shelljs/src/pushd.js    |    1 -
 .../simctl/node_modules/shelljs/src/pwd.js      |   11 -
 .../simctl/node_modules/shelljs/src/rm.js       |  145 -
 .../simctl/node_modules/shelljs/src/sed.js      |   43 -
 .../simctl/node_modules/shelljs/src/tempdir.js  |   56 -
 .../simctl/node_modules/shelljs/src/test.js     |   85 -
 .../simctl/node_modules/shelljs/src/to.js       |   29 -
 .../simctl/node_modules/shelljs/src/toEnd.js    |   29 -
 .../simctl/node_modules/shelljs/src/which.js    |   79 -
 .../ios-sim/node_modules/simctl/package.json    |  106 +-
 .../ios-sim/node_modules/simctl/simctl.js       |    4 +-
 node_modules/ios-sim/package.json               |  131 +-
 node_modules/ios-sim/spec/lib.spec.js           |   32 +-
 node_modules/ios-sim/src/cli.js                 |    7 +-
 node_modules/ios-sim/src/commands.js            |    4 +-
 node_modules/ios-sim/src/lib.js                 |   87 +-
 node_modules/pegjs/CHANGELOG.md                 |  110 +
 node_modules/pegjs/LICENSE                      |    2 +-
 node_modules/pegjs/README.md                    |  479 --
 node_modules/pegjs/VERSION                      |    2 +-
 node_modules/pegjs/bin/pegjs                    |  241 +-
 node_modules/pegjs/examples/arithmetics.pegjs   |   38 +-
 node_modules/pegjs/examples/css.pegjs           |   18 +-
 node_modules/pegjs/examples/javascript.pegjs    |  188 +-
 node_modules/pegjs/examples/json.pegjs          |   18 +-
 node_modules/pegjs/lib/compiler.js              |   60 -
 node_modules/pegjs/lib/compiler/asts.js         |   49 +-
 node_modules/pegjs/lib/compiler/index.js        |   73 +
 node_modules/pegjs/lib/compiler/javascript.js   |   57 -
 node_modules/pegjs/lib/compiler/js.js           |   58 +
 .../lib/compiler/passes/generate-bytecode.js    |   55 +-
 .../lib/compiler/passes/generate-javascript.js  | 1213 ---
 .../pegjs/lib/compiler/passes/generate-js.js    | 1394 +++
 .../compiler/passes/report-duplicate-labels.js  |   54 +
 .../compiler/passes/report-duplicate-rules.js   |   28 +
 .../compiler/passes/report-infinite-loops.js    |   29 -
 .../passes/report-infinite-recursion.js         |   57 +
 .../passes/report-infinite-repetition.js        |   35 +
 .../compiler/passes/report-left-recursion.js    |   53 -
 .../lib/compiler/passes/report-missing-rules.js |   23 -
 .../compiler/passes/report-undefined-rules.js   |   23 +
 node_modules/pegjs/lib/compiler/visitor.js      |    1 +
 node_modules/pegjs/lib/parser.js                | 6982 +++++++--------
 node_modules/pegjs/lib/peg.js                   |   25 +-
 node_modules/pegjs/package.json                 |   75 +-
 node_modules/simple-plist/.npmignore            |   14 -
 .../node_modules/base64-js/.npmignore           |    1 +
 .../node_modules/base64-js/.travis.yml          |    6 +
 .../node_modules/base64-js/LICENSE.MIT          |   21 +
 .../node_modules/base64-js/README.md            |   31 +
 .../node_modules/base64-js/base64js.min.js      |    1 +
 .../node_modules/base64-js/bower.json           |   33 +
 .../node_modules/base64-js/lib/b64.js           |  109 +
 .../node_modules/base64-js/package.json         |   95 +
 .../node_modules/base64-js/test/big-data.js     |   24 +
 .../node_modules/base64-js/test/convert.js      |   47 +
 .../node_modules/base64-js/test/url-safe.js     |   18 +
 .../node_modules/bplist-parser/.npmignore       |    8 -
 .../node_modules/bplist-parser/README.md        |   47 -
 .../node_modules/bplist-parser/bplistParser.js  |  332 -
 .../node_modules/bplist-parser/package.json     |   86 -
 .../bplist-parser/test/airplay.bplist           |  Bin 341 -> 0 bytes
 .../bplist-parser/test/iTunes-small.bplist      |  Bin 24433 -> 0 bytes
 .../bplist-parser/test/parseTest.js             |  120 -
 .../bplist-parser/test/sample1.bplist           |  Bin 605 -> 0 bytes
 .../bplist-parser/test/sample2.bplist           |  Bin 384 -> 0 bytes
 .../node_modules/bplist-parser/test/uid.bplist  |  Bin 365 -> 0 bytes
 .../bplist-parser/test/utf16.bplist             |  Bin 1273 -> 0 bytes
 .../simple-plist/node_modules/plist/.jshintrc   |    4 +
 .../simple-plist/node_modules/plist/.travis.yml |   43 +
 .../simple-plist/node_modules/plist/History.md  |  141 +
 .../simple-plist/node_modules/plist/LICENSE     |   24 +
 .../simple-plist/node_modules/plist/Makefile    |   76 +
 .../simple-plist/node_modules/plist/README.md   |  164 +
 .../node_modules/plist/dist/plist-build.js      | 3982 +++++++++
 .../node_modules/plist/dist/plist-parse.js      | 4055 +++++++++
 .../node_modules/plist/dist/plist.js            | 7987 ++++++++++++++++++
 .../plist/examples/browser/index.html           |   14 +
 .../simple-plist/node_modules/plist/index.js    |   13 +
 .../node_modules/plist/lib/build.js             |  137 +
 .../node_modules/plist/lib/parse.js             |  170 +
 .../node_modules/plist/package.json             |  128 +
 .../node_modules/xmlbuilder/.npmignore          |    5 +
 .../node_modules/xmlbuilder/CHANGELOG.md        |  395 +
 .../node_modules/xmlbuilder/LICENSE             |   21 +
 .../node_modules/xmlbuilder/README.md           |   85 +
 .../node_modules/xmlbuilder/lib/Utility.js      |  139 +
 .../node_modules/xmlbuilder/lib/XMLAttribute.js |   31 +
 .../node_modules/xmlbuilder/lib/XMLCData.js     |   32 +
 .../node_modules/xmlbuilder/lib/XMLComment.js   |   32 +
 .../xmlbuilder/lib/XMLDTDAttList.js             |   50 +
 .../xmlbuilder/lib/XMLDTDElement.js             |   35 +
 .../node_modules/xmlbuilder/lib/XMLDTDEntity.js |   56 +
 .../xmlbuilder/lib/XMLDTDNotation.js            |   37 +
 .../xmlbuilder/lib/XMLDeclaration.js            |   40 +
 .../node_modules/xmlbuilder/lib/XMLDocType.js   |  107 +
 .../node_modules/xmlbuilder/lib/XMLDocument.js  |   48 +
 .../xmlbuilder/lib/XMLDocumentCB.js             |  402 +
 .../node_modules/xmlbuilder/lib/XMLElement.js   |  111 +
 .../node_modules/xmlbuilder/lib/XMLNode.js      |  432 +
 .../xmlbuilder/lib/XMLProcessingInstruction.js  |   35 +
 .../node_modules/xmlbuilder/lib/XMLRaw.js       |   32 +
 .../xmlbuilder/lib/XMLStreamWriter.js           |  278 +
 .../xmlbuilder/lib/XMLStringWriter.js           |  302 +
 .../xmlbuilder/lib/XMLStringifier.js            |  192 +
 .../node_modules/xmlbuilder/lib/XMLText.js      |   32 +
 .../xmlbuilder/lib/XMLWriterBase.js             |   68 +
 .../node_modules/xmlbuilder/lib/index.js        |   53 +
 .../node_modules/xmlbuilder/package.json        |  100 +
 node_modules/simple-plist/package.json          |   66 +-
 node_modules/simple-plist/simple-plist.js       |  194 +-
 node_modules/stream-buffers/.mailmap            |    2 +
 node_modules/stream-buffers/.travis.yml         |   25 +-
 node_modules/stream-buffers/README.md           |  151 +-
 .../stream-buffers/lib/readable_streambuffer.js |   56 +-
 .../stream-buffers/lib/writable_streambuffer.js |    7 +-
 node_modules/stream-buffers/package.json        |   44 +-
 node_modules/xcode/README.md                    |    2 +-
 node_modules/xcode/lib/parser/pbxproj.js        | 2830 ++++---
 node_modules/xcode/lib/parser/pbxproj.pegjs     |   32 +-
 node_modules/xcode/lib/pbxFile.js               |    6 +-
 node_modules/xcode/lib/pbxProject.js            |  241 +-
 node_modules/xcode/node_modules/.bin/uuid       |    1 +
 node_modules/xcode/node_modules/uuid/.npmignore |    8 +
 .../xcode/node_modules/uuid/.travis.yml         |    5 +
 node_modules/xcode/node_modules/uuid/AUTHORS    |    5 +
 node_modules/xcode/node_modules/uuid/HISTORY.md |   28 +
 node_modules/xcode/node_modules/uuid/LICENSE.md |   21 +
 node_modules/xcode/node_modules/uuid/README.md  |  132 +
 node_modules/xcode/node_modules/uuid/bin/uuid   |   26 +
 node_modules/xcode/node_modules/uuid/index.js   |    8 +
 .../xcode/node_modules/uuid/lib/bytesToUuid.js  |   23 +
 .../xcode/node_modules/uuid/lib/rng-browser.js  |   33 +
 node_modules/xcode/node_modules/uuid/lib/rng.js |   10 +
 .../xcode/node_modules/uuid/package.json        |  122 +
 .../xcode/node_modules/uuid/test/mocha.opts     |    3 +
 .../xcode/node_modules/uuid/test/test.js        |   96 +
 node_modules/xcode/node_modules/uuid/v1.js      |  103 +
 node_modules/xcode/node_modules/uuid/v4.js      |   29 +
 node_modules/xcode/package.json                 |   47 +-
 package.json                                    |    2 +-
 214 files changed, 32177 insertions(+), 11006 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/bplist-creator/bplistCreator.js
----------------------------------------------------------------------
diff --git a/node_modules/bplist-creator/bplistCreator.js b/node_modules/bplist-creator/bplistCreator.js
index b480826..7252e66 100644
--- a/node_modules/bplist-creator/bplistCreator.js
+++ b/node_modules/bplist-creator/bplistCreator.js
@@ -128,6 +128,9 @@ module.exports = function(dicts) {
     case 'double':
       writeNumber(entry);
       break;
+    case 'UID':
+      writeUID(entry);
+      break;
     case 'array':
       writeArray(entry);
       break;
@@ -138,6 +141,9 @@ module.exports = function(dicts) {
     case 'string-utf16':
       writeString(entry);
       break;
+    case 'date':
+      writeDate(entry);
+      break;
     case 'data':
       writeData(entry);
       break;
@@ -146,6 +152,12 @@ module.exports = function(dicts) {
     }
   }
 
+  function writeDate(entry) {
+    writeByte(0x33);
+    var date = (Date.parse(entry.value)/1000) - 978307200
+    writeDouble(date)
+  }
+
   function writeDict(entry) {
     if (debug) {
       var keysStr = entry.entryKeys.map(function(k) {return k.id;});
@@ -189,6 +201,15 @@ module.exports = function(dicts) {
     }
   }
 
+  function writeUID(entry) {
+    if (debug) {
+      console.log('0x' + buffer.size().toString(16), 'writeUID', entry.value, ' (type: ' + entry.type + ')', '(id: ' + entry.id + ')');
+    }
+
+    writeIntHeader(0x8, 0x0);
+    writeID(entry.value);
+  }
+
   function writeArray(entry) {
     if (debug) {
       console.log('0x' + buffer.size().toString(16), 'writeArray (length: ' + entry.entries.length + ')', '(id: ' + entry.id + ')');
@@ -210,7 +231,7 @@ module.exports = function(dicts) {
     if (debug) {
       console.log('0x' + buffer.size().toString(16), 'writeString', entry.value, '(id: ' + entry.id + ')');
     }
-    if (entry.type === 'string-utf16') {
+    if (entry.type === 'string-utf16' || mustBeUtf16(entry.value)) {
       var utf16 = new Buffer(entry.value, 'ucs2');
       writeIntHeader(0x6, utf16.length / 2);
       // needs to be big endian so swap the bytes
@@ -221,7 +242,7 @@ module.exports = function(dicts) {
       }
       buffer.write(utf16);
     } else {
-      var utf8 = new Buffer(entry.value, 'utf8');
+      var utf8 = new Buffer(entry.value, 'ascii');
       writeIntHeader(0x5, utf8.length);
       buffer.write(utf8);
     }
@@ -285,6 +306,10 @@ module.exports = function(dicts) {
     }
     buffer.write(buf);
   }
+
+  function mustBeUtf16(string) {
+    return Buffer.byteLength(string, 'utf8') != string.length;
+  }
 };
 
 function toEntries(dicts) {
@@ -309,7 +334,23 @@ function toEntries(dicts) {
       }
     ];
   } else if (typeof(dicts) === 'object') {
-    return toEntriesObject(dicts);
+    if (dicts instanceof Date) {
+      return [
+        {
+          type: 'date',
+          value: dicts
+        }
+      ]
+    } else if (Object.keys(dicts).length == 1 && typeof(dicts.UID) === 'number') {
+      return [
+        {
+          type: 'UID',
+          value: dicts.UID
+        }
+      ]
+    } else {
+      return toEntriesObject(dicts);
+    }
   } else if (typeof(dicts) === 'string') {
     return [
       {

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/bplist-creator/package.json
----------------------------------------------------------------------
diff --git a/node_modules/bplist-creator/package.json b/node_modules/bplist-creator/package.json
index 02c3228..49da4fc 100644
--- a/node_modules/bplist-creator/package.json
+++ b/node_modules/bplist-creator/package.json
@@ -2,43 +2,48 @@
   "_args": [
     [
       {
-        "raw": "bplist-creator@0.0.4",
+        "raw": "bplist-creator@0.0.7",
         "scope": null,
         "escapedName": "bplist-creator",
         "name": "bplist-creator",
-        "rawSpec": "0.0.4",
-        "spec": "0.0.4",
+        "rawSpec": "0.0.7",
+        "spec": "0.0.7",
         "type": "version"
       },
       "/Users/shazron/Documents/git/apache/cordova-ios/node_modules/simple-plist"
     ]
   ],
-  "_from": "bplist-creator@0.0.4",
-  "_id": "bplist-creator@0.0.4",
+  "_from": "bplist-creator@0.0.7",
+  "_id": "bplist-creator@0.0.7",
   "_inCache": true,
   "_location": "/bplist-creator",
+  "_nodeVersion": "5.11.1",
+  "_npmOperationalInternal": {
+    "host": "packages-16-east.internal.npmjs.com",
+    "tmp": "tmp/bplist-creator-0.0.7.tgz_1472949121897_0.6429064173717052"
+  },
   "_npmUser": {
     "name": "joeferner",
     "email": "joe@fernsroth.com"
   },
-  "_npmVersion": "1.4.10",
+  "_npmVersion": "3.8.6",
   "_phantomChildren": {},
   "_requested": {
-    "raw": "bplist-creator@0.0.4",
+    "raw": "bplist-creator@0.0.7",
     "scope": null,
     "escapedName": "bplist-creator",
     "name": "bplist-creator",
-    "rawSpec": "0.0.4",
-    "spec": "0.0.4",
+    "rawSpec": "0.0.7",
+    "spec": "0.0.7",
     "type": "version"
   },
   "_requiredBy": [
     "/simple-plist"
   ],
-  "_resolved": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.0.4.tgz",
-  "_shasum": "4ac0496782e127a85c1d2026a4f5eb22a7aff991",
+  "_resolved": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.0.7.tgz",
+  "_shasum": "37df1536092824b87c42f957b01344117372ae45",
   "_shrinkwrap": null,
-  "_spec": "bplist-creator@0.0.4",
+  "_spec": "bplist-creator@0.0.7",
   "_where": "/Users/shazron/Documents/git/apache/cordova-ios/node_modules/simple-plist",
   "author": {
     "name": "https://github.com/nearinfinity/node-bplist-parser.git"
@@ -47,19 +52,20 @@
     "url": "https://github.com/nearinfinity/node-bplist-creator/issues"
   },
   "dependencies": {
-    "stream-buffers": "~0.2.3"
+    "stream-buffers": "~2.2.0"
   },
   "description": "Binary Mac OS X Plist (property list) creator.",
   "devDependencies": {
-    "bplist-parser": "0.0.4",
-    "nodeunit": "0.7.4"
+    "bplist-parser": "~0.1.0",
+    "nodeunit": "0.9.1"
   },
   "directories": {},
   "dist": {
-    "shasum": "4ac0496782e127a85c1d2026a4f5eb22a7aff991",
-    "tarball": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.0.4.tgz"
+    "shasum": "37df1536092824b87c42f957b01344117372ae45",
+    "tarball": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.0.7.tgz"
   },
-  "homepage": "https://github.com/nearinfinity/node-bplist-creator",
+  "gitHead": "d39765ffd3fa678104fefc444a63ba6b60eee797",
+  "homepage": "https://github.com/nearinfinity/node-bplist-creator#readme",
   "keywords": [
     "bplist",
     "plist",
@@ -83,5 +89,5 @@
   "scripts": {
     "test": "./node_modules/nodeunit/bin/nodeunit test"
   },
-  "version": "0.0.4"
+  "version": "0.0.7"
 }

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/bplist-creator/test/sample1.bplist
----------------------------------------------------------------------
diff --git a/node_modules/bplist-creator/test/sample1.bplist b/node_modules/bplist-creator/test/sample1.bplist
index 5b808ff..d5fa833 100644
Binary files a/node_modules/bplist-creator/test/sample1.bplist and b/node_modules/bplist-creator/test/sample1.bplist differ

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/.travis.yml
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/.travis.yml b/node_modules/ios-sim/.travis.yml
index 30150ba..858a8b7 100644
--- a/node_modules/ios-sim/.travis.yml
+++ b/node_modules/ios-sim/.travis.yml
@@ -3,8 +3,6 @@ sudo: false
 git:
   depth: 10
 node_js:
-- '0.10'
-- '0.12'
 - '4'
 - '6'
 install:

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/README.md
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/README.md b/node_modules/ios-sim/README.md
index 3fa70cc..b53d3a3 100644
--- a/node_modules/ios-sim/README.md
+++ b/node_modules/ios-sim/README.md
@@ -4,7 +4,7 @@
 ios-sim
 =======
 
-Supports Xcode 6 only since version 3.x.
+Supports Xcode 8 and greater only since version 5.x.
 
 The ios-sim tool is a command-line utility that launches an iOS application on the iOS Simulator. This allows for niceties such as automated testing without having to open Xcode.
 

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/appveyor.yml
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/appveyor.yml b/node_modules/ios-sim/appveyor.yml
index 14b9f99..cfdd06b 100644
--- a/node_modules/ios-sim/appveyor.yml
+++ b/node_modules/ios-sim/appveyor.yml
@@ -2,8 +2,6 @@
 # http://www.appveyor.com/docs/appveyor-yml
 environment:
   matrix:
-  - nodejs_version: "0.10"
-  - nodejs_version: "0.12"
   - nodejs_version: "4"
   - nodejs_version: "6"
 

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/.bin/shjs
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/.bin/shjs b/node_modules/ios-sim/node_modules/.bin/shjs
new file mode 120000
index 0000000..a044997
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/.bin/shjs
@@ -0,0 +1 @@
+../shelljs/bin/shjs
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/.documentup.json
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/.documentup.json b/node_modules/ios-sim/node_modules/shelljs/.documentup.json
new file mode 100644
index 0000000..57fe301
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/.documentup.json
@@ -0,0 +1,6 @@
+{
+  "name": "ShellJS",
+  "twitter": [
+    "r2r"
+  ]
+}

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/.jshintrc
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/.jshintrc b/node_modules/ios-sim/node_modules/shelljs/.jshintrc
new file mode 100644
index 0000000..a80c559
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/.jshintrc
@@ -0,0 +1,7 @@
+{
+  "loopfunc": true,
+  "sub": true,
+  "undef": true,
+  "unused": true,
+  "node": true
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/.npmignore b/node_modules/ios-sim/node_modules/shelljs/.npmignore
new file mode 100644
index 0000000..6b20c38
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/.npmignore
@@ -0,0 +1,2 @@
+test/
+tmp/
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/.travis.yml
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/.travis.yml b/node_modules/ios-sim/node_modules/shelljs/.travis.yml
new file mode 100644
index 0000000..99cdc74
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/.travis.yml
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+  - "0.8"
+  - "0.10"
+  - "0.11"

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/LICENSE b/node_modules/ios-sim/node_modules/shelljs/LICENSE
new file mode 100644
index 0000000..1b35ee9
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/LICENSE
@@ -0,0 +1,26 @@
+Copyright (c) 2012, Artur Adib <aadib@mozilla.com>
+All rights reserved.
+
+You may use this project under the terms of the New BSD license as follows:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * 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.
+    * Neither the name of Artur Adib nor the
+      names of the contributors may be used to endorse or promote products
+      derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
+AND ANY EXPRESS 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 ARTUR ADIB 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.

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/README.md
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/README.md b/node_modules/ios-sim/node_modules/shelljs/README.md
new file mode 100644
index 0000000..9120623
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/README.md
@@ -0,0 +1,552 @@
+# ShellJS - Unix shell commands for Node.js [![Build Status](https://secure.travis-ci.org/arturadib/shelljs.png)](http://travis-ci.org/arturadib/shelljs)
+
+ShellJS is a portable **(Windows/Linux/OS X)** implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects - say goodbye to those gnarly Bash scripts!
+
+The project is [unit-tested](http://travis-ci.org/arturadib/shelljs) and battled-tested in projects like:
+
++ [PDF.js](http://github.com/mozilla/pdf.js) - Firefox's next-gen PDF reader
++ [Firebug](http://getfirebug.com/) - Firefox's infamous debugger
++ [JSHint](http://jshint.com) - Most popular JavaScript linter
++ [Zepto](http://zeptojs.com) - jQuery-compatible JavaScript library for modern browsers
++ [Yeoman](http://yeoman.io/) - Web application stack and development tool
++ [Deployd.com](http://deployd.com) - Open source PaaS for quick API backend generation
+
+and [many more](https://npmjs.org/browse/depended/shelljs).
+
+## Installing
+
+Via npm:
+
+```bash
+$ npm install [-g] shelljs
+```
+
+If the global option `-g` is specified, the binary `shjs` will be installed. This makes it possible to
+run ShellJS scripts much like any shell script from the command line, i.e. without requiring a `node_modules` folder:
+
+```bash
+$ shjs my_script
+```
+
+You can also just copy `shell.js` into your project's directory, and `require()` accordingly.
+
+
+## Examples
+
+### JavaScript
+
+```javascript
+require('shelljs/global');
+
+if (!which('git')) {
+  echo('Sorry, this script requires git');
+  exit(1);
+}
+
+// Copy files to release dir
+mkdir('-p', 'out/Release');
+cp('-R', 'stuff/*', 'out/Release');
+
+// Replace macros in each .js file
+cd('lib');
+ls('*.js').forEach(function(file) {
+  sed('-i', 'BUILD_VERSION', 'v0.1.2', file);
+  sed('-i', /.*REMOVE_THIS_LINE.*\n/, '', file);
+  sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat('macro.js'), file);
+});
+cd('..');
+
+// Run external tool synchronously
+if (exec('git commit -am "Auto-commit"').code !== 0) {
+  echo('Error: Git commit failed');
+  exit(1);
+}
+```
+
+### CoffeeScript
+
+```coffeescript
+require 'shelljs/global'
+
+if not which 'git'
+  echo 'Sorry, this script requires git'
+  exit 1
+
+# Copy files to release dir
+mkdir '-p', 'out/Release'
+cp '-R', 'stuff/*', 'out/Release'
+
+# Replace macros in each .js file
+cd 'lib'
+for file in ls '*.js'
+  sed '-i', 'BUILD_VERSION', 'v0.1.2', file
+  sed '-i', /.*REMOVE_THIS_LINE.*\n/, '', file
+  sed '-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat 'macro.js', file
+cd '..'
+
+# Run external tool synchronously
+if (exec 'git commit -am "Auto-commit"').code != 0
+  echo 'Error: Git commit failed'
+  exit 1
+```
+
+## Global vs. Local
+
+The example above uses the convenience script `shelljs/global` to reduce verbosity. If polluting your global namespace is not desirable, simply require `shelljs`.
+
+Example:
+
+```javascript
+var shell = require('shelljs');
+shell.echo('hello world');
+```
+
+## Make tool
+
+A convenience script `shelljs/make` is also provided to mimic the behavior of a Unix Makefile. In this case all shell objects are global, and command line arguments will cause the script to execute only the corresponding function in the global `target` object. To avoid redundant calls, target functions are executed only once per script.
+
+Example (CoffeeScript):
+
+```coffeescript
+require 'shelljs/make'
+
+target.all = ->
+  target.bundle()
+  target.docs()
+
+target.bundle = ->
+  cd __dirname
+  mkdir 'build'
+  cd 'lib'
+  (cat '*.js').to '../build/output.js'
+
+target.docs = ->
+  cd __dirname
+  mkdir 'docs'
+  cd 'lib'
+  for file in ls '*.js'
+    text = grep '//@', file     # extract special comments
+    text.replace '//@', ''      # remove comment tags
+    text.to 'docs/my_docs.md'
+```
+
+To run the target `all`, call the above script without arguments: `$ node make`. To run the target `docs`: `$ node make docs`, and so on.
+
+
+
+<!-- 
+
+  DO NOT MODIFY BEYOND THIS POINT - IT'S AUTOMATICALLY GENERATED
+
+-->
+
+
+## Command reference
+
+
+All commands run synchronously, unless otherwise stated.
+
+
+### cd('dir')
+Changes to directory `dir` for the duration of the script
+
+
+### pwd()
+Returns the current directory.
+
+
+### ls([options ,] path [,path ...])
+### ls([options ,] path_array)
+Available options:
+
++ `-R`: recursive
++ `-A`: all files (include files beginning with `.`, except for `.` and `..`)
+
+Examples:
+
+```javascript
+ls('projs/*.js');
+ls('-R', '/users/me', '/tmp');
+ls('-R', ['/users/me', '/tmp']); // same as above
+```
+
+Returns array of files in the given path, or in current directory if no path provided.
+
+
+### find(path [,path ...])
+### find(path_array)
+Examples:
+
+```javascript
+find('src', 'lib');
+find(['src', 'lib']); // same as above
+find('.').filter(function(file) { return file.match(/\.js$/); });
+```
+
+Returns array of all files (however deep) in the given paths.
+
+The main difference from `ls('-R', path)` is that the resulting file names
+include the base directories, e.g. `lib/resources/file1` instead of just `file1`.
+
+
+### cp([options ,] source [,source ...], dest)
+### cp([options ,] source_array, dest)
+Available options:
+
++ `-f`: force
++ `-r, -R`: recursive
+
+Examples:
+
+```javascript
+cp('file1', 'dir1');
+cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');
+cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above
+```
+
+Copies files. The wildcard `*` is accepted.
+
+
+### rm([options ,] file [, file ...])
+### rm([options ,] file_array)
+Available options:
+
++ `-f`: force
++ `-r, -R`: recursive
+
+Examples:
+
+```javascript
+rm('-rf', '/tmp/*');
+rm('some_file.txt', 'another_file.txt');
+rm(['some_file.txt', 'another_file.txt']); // same as above
+```
+
+Removes files. The wildcard `*` is accepted.
+
+
+### mv(source [, source ...], dest')
+### mv(source_array, dest')
+Available options:
+
++ `f`: force
+
+Examples:
+
+```javascript
+mv('-f', 'file', 'dir/');
+mv('file1', 'file2', 'dir/');
+mv(['file1', 'file2'], 'dir/'); // same as above
+```
+
+Moves files. The wildcard `*` is accepted.
+
+
+### mkdir([options ,] dir [, dir ...])
+### mkdir([options ,] dir_array)
+Available options:
+
++ `p`: full path (will create intermediate dirs if necessary)
+
+Examples:
+
+```javascript
+mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g');
+mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above
+```
+
+Creates directories.
+
+
+### test(expression)
+Available expression primaries:
+
++ `'-b', 'path'`: true if path is a block device
++ `'-c', 'path'`: true if path is a character device
++ `'-d', 'path'`: true if path is a directory
++ `'-e', 'path'`: true if path exists
++ `'-f', 'path'`: true if path is a regular file
++ `'-L', 'path'`: true if path is a symboilc link
++ `'-p', 'path'`: true if path is a pipe (FIFO)
++ `'-S', 'path'`: true if path is a socket
+
+Examples:
+
+```javascript
+if (test('-d', path)) { /* do something with dir */ };
+if (!test('-f', path)) continue; // skip if it's a regular file
+```
+
+Evaluates expression using the available primaries and returns corresponding value.
+
+
+### cat(file [, file ...])
+### cat(file_array)
+
+Examples:
+
+```javascript
+var str = cat('file*.txt');
+var str = cat('file1', 'file2');
+var str = cat(['file1', 'file2']); // same as above
+```
+
+Returns a string containing the given file, or a concatenated string
+containing the files if more than one file is given (a new line character is
+introduced between each file). Wildcard `*` accepted.
+
+
+### 'string'.to(file)
+
+Examples:
+
+```javascript
+cat('input.txt').to('output.txt');
+```
+
+Analogous to the redirection operator `>` in Unix, but works with JavaScript strings (such as
+those returned by `cat`, `grep`, etc). _Like Unix redirections, `to()` will overwrite any existing file!_
+
+
+### 'string'.toEnd(file)
+
+Examples:
+
+```javascript
+cat('input.txt').toEnd('output.txt');
+```
+
+Analogous to the redirect-and-append operator `>>` in Unix, but works with JavaScript strings (such as
+those returned by `cat`, `grep`, etc).
+
+
+### sed([options ,] search_regex, replace_str, file)
+Available options:
+
++ `-i`: Replace contents of 'file' in-place. _Note that no backups will be created!_
+
+Examples:
+
+```javascript
+sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js');
+sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js');
+```
+
+Reads an input string from `file` and performs a JavaScript `replace()` on the input
+using the given search regex and replacement string. Returns the new string after replacement.
+
+
+### grep([options ,] regex_filter, file [, file ...])
+### grep([options ,] regex_filter, file_array)
+Available options:
+
++ `-v`: Inverse the sense of the regex and print the lines not matching the criteria.
+
+Examples:
+
+```javascript
+grep('-v', 'GLOBAL_VARIABLE', '*.js');
+grep('GLOBAL_VARIABLE', '*.js');
+```
+
+Reads input string from given files and returns a string containing all lines of the
+file that match the given `regex_filter`. Wildcard `*` accepted.
+
+
+### which(command)
+
+Examples:
+
+```javascript
+var nodeExec = which('node');
+```
+
+Searches for `command` in the system's PATH. On Windows looks for `.exe`, `.cmd`, and `.bat` extensions.
+Returns string containing the absolute path to the command.
+
+
+### echo(string [,string ...])
+
+Examples:
+
+```javascript
+echo('hello world');
+var str = echo('hello world');
+```
+
+Prints string to stdout, and returns string with additional utility methods
+like `.to()`.
+
+
+### pushd([options,] [dir | '-N' | '+N'])
+
+Available options:
+
++ `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated.
+
+Arguments:
+
++ `dir`: Makes the current working directory be the top of the stack, and then executes the equivalent of `cd dir`.
++ `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
++ `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
+
+Examples:
+
+```javascript
+// process.cwd() === '/usr'
+pushd('/etc'); // Returns /etc /usr
+pushd('+1');   // Returns /usr /etc
+```
+
+Save the current directory on the top of the directory stack and then cd to `dir`. With no arguments, pushd exchanges the top two directories. Returns an array of paths in the stack.
+
+### popd([options,] ['-N' | '+N'])
+
+Available options:
+
++ `-n`: Suppresses the normal change of directory when removing directories from the stack, so that only the stack is manipulated.
+
+Arguments:
+
++ `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.
++ `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
+
+Examples:
+
+```javascript
+echo(process.cwd()); // '/usr'
+pushd('/etc');       // '/etc /usr'
+echo(process.cwd()); // '/etc'
+popd();              // '/usr'
+echo(process.cwd()); // '/usr'
+```
+
+When no arguments are given, popd removes the top directory from the stack and performs a cd to the new top directory. The elements are numbered from 0 starting at the first directory listed with dirs; i.e., popd is equivalent to popd +0. Returns an array of paths in the stack.
+
+### dirs([options | '+N' | '-N'])
+
+Available options:
+
++ `-c`: Clears the directory stack by deleting all of the elements.
+
+Arguments:
+
++ `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.
++ `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.
+
+Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if +N or -N was specified.
+
+See also: pushd, popd
+
+
+### exit(code)
+Exits the current process with the given exit code.
+
+### env['VAR_NAME']
+Object containing environment variables (both getter and setter). Shortcut to process.env.
+
+### exec(command [, options] [, callback])
+Available options (all `false` by default):
+
++ `async`: Asynchronous execution. Defaults to true if a callback is provided.
++ `silent`: Do not echo program output to console.
+
+Examples:
+
+```javascript
+var version = exec('node --version', {silent:true}).output;
+
+var child = exec('some_long_running_process', {async:true});
+child.stdout.on('data', function(data) {
+  /* ... do something with data ... */
+});
+
+exec('some_long_running_process', function(code, output) {
+  console.log('Exit code:', code);
+  console.log('Program output:', output);
+});
+```
+
+Executes the given `command` _synchronously_, unless otherwise specified.
+When in synchronous mode returns the object `{ code:..., output:... }`, containing the program's
+`output` (stdout + stderr)  and its exit `code`. Otherwise returns the child process object, and
+the `callback` gets the arguments `(code, output)`.
+
+**Note:** For long-lived processes, it's best to run `exec()` asynchronously as
+the current synchronous implementation uses a lot of CPU. This should be getting
+fixed soon.
+
+
+### chmod(octal_mode || octal_string, file)
+### chmod(symbolic_mode, file)
+
+Available options:
+
++ `-v`: output a diagnostic for every file processed
++ `-c`: like verbose but report only when a change is made
++ `-R`: change files and directories recursively
+
+Examples:
+
+```javascript
+chmod(755, '/Users/brandon');
+chmod('755', '/Users/brandon'); // same as above
+chmod('u+x', '/Users/brandon');
+```
+
+Alters the permissions of a file or directory by either specifying the
+absolute permissions in octal form or expressing the changes in symbols.
+This command tries to mimic the POSIX behavior as much as possible.
+Notable exceptions:
+
++ In symbolic modes, 'a-r' and '-r' are identical.  No consideration is
+  given to the umask.
++ There is no "quiet" option since default behavior is to run silent.
+
+
+## Non-Unix commands
+
+
+### tempdir()
+
+Examples:
+
+```javascript
+var tmp = tempdir(); // "/tmp" for most *nix platforms
+```
+
+Searches and returns string containing a writeable, platform-dependent temporary directory.
+Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir).
+
+
+### error()
+Tests if error occurred in the last command. Returns `null` if no error occurred,
+otherwise returns string explaining the error
+
+
+## Configuration
+
+
+### config.silent
+Example:
+
+```javascript
+var silentState = config.silent; // save old silent state
+config.silent = true;
+/* ... */
+config.silent = silentState; // restore old silent state
+```
+
+Suppresses all command output if `true`, except for `echo()` calls.
+Default is `false`.
+
+### config.fatal
+Example:
+
+```javascript
+config.fatal = true;
+cp('this_file_does_not_exist', '/dev/null'); // dies here
+/* more commands... */
+```
+
+If `true` the script will die on errors. Default is `false`.

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/bin/shjs
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/bin/shjs b/node_modules/ios-sim/node_modules/shelljs/bin/shjs
new file mode 100755
index 0000000..d239a7a
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/bin/shjs
@@ -0,0 +1,51 @@
+#!/usr/bin/env node
+require('../global');
+
+if (process.argv.length < 3) {
+  console.log('ShellJS: missing argument (script name)');
+  console.log();
+  process.exit(1);
+}
+
+var args,
+  scriptName = process.argv[2];
+env['NODE_PATH'] = __dirname + '/../..';
+
+if (!scriptName.match(/\.js/) && !scriptName.match(/\.coffee/)) {
+  if (test('-f', scriptName + '.js'))
+    scriptName += '.js';
+  if (test('-f', scriptName + '.coffee'))
+    scriptName += '.coffee';
+}
+
+if (!test('-f', scriptName)) {
+  console.log('ShellJS: script not found ('+scriptName+')');
+  console.log();
+  process.exit(1);
+}
+
+args = process.argv.slice(3);
+
+for (var i = 0, l = args.length; i < l; i++) {
+  if (args[i][0] !== "-"){
+    args[i] = '"' + args[i] + '"'; // fixes arguments with multiple words
+  }
+}
+
+if (scriptName.match(/\.coffee$/)) {
+  //
+  // CoffeeScript
+  //
+  if (which('coffee')) {
+    exec('coffee ' + scriptName + ' ' + args.join(' '), { async: true });
+  } else {
+    console.log('ShellJS: CoffeeScript interpreter not found');
+    console.log();
+    process.exit(1);
+  }
+} else {
+  //
+  // JavaScript
+  //
+  exec('node ' + scriptName + ' ' + args.join(' '), { async: true });
+}

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/global.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/global.js b/node_modules/ios-sim/node_modules/shelljs/global.js
new file mode 100644
index 0000000..97f0033
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/global.js
@@ -0,0 +1,3 @@
+var shell = require('./shell.js');
+for (var cmd in shell)
+  global[cmd] = shell[cmd];

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/make.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/make.js b/node_modules/ios-sim/node_modules/shelljs/make.js
new file mode 100644
index 0000000..53e5e81
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/make.js
@@ -0,0 +1,47 @@
+require('./global');
+
+global.config.fatal = true;
+global.target = {};
+
+// This ensures we only execute the script targets after the entire script has
+// been evaluated
+var args = process.argv.slice(2);
+setTimeout(function() {
+  var t;
+
+  if (args.length === 1 && args[0] === '--help') {
+    console.log('Available targets:');
+    for (t in global.target)
+      console.log('  ' + t);
+    return;
+  }
+
+  // Wrap targets to prevent duplicate execution
+  for (t in global.target) {
+    (function(t, oldTarget){
+
+      // Wrap it
+      global.target[t] = function(force) {
+        if (oldTarget.done && !force)
+          return;
+        oldTarget.done = true;
+        return oldTarget.apply(oldTarget, arguments);
+      };
+
+    })(t, global.target[t]);
+  }
+
+  // Execute desired targets
+  if (args.length > 0) {
+    args.forEach(function(arg) {
+      if (arg in global.target)
+        global.target[arg]();
+      else {
+        console.log('no such target: ' + arg);
+      }
+    });
+  } else if ('all' in global.target) {
+    global.target.all();
+  }
+
+}, 0);

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/package.json
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/package.json b/node_modules/ios-sim/node_modules/shelljs/package.json
new file mode 100644
index 0000000..d6aea40
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/package.json
@@ -0,0 +1,93 @@
+{
+  "_args": [
+    [
+      {
+        "raw": "shelljs@^0.2.6",
+        "scope": null,
+        "escapedName": "shelljs",
+        "name": "shelljs",
+        "rawSpec": "^0.2.6",
+        "spec": ">=0.2.6 <0.3.0",
+        "type": "range"
+      },
+      "/Users/shazron/Documents/git/apache/cordova-ios/node_modules/ios-sim/node_modules/simctl"
+    ]
+  ],
+  "_from": "shelljs@>=0.2.6 <0.3.0",
+  "_id": "shelljs@0.2.6",
+  "_inCache": true,
+  "_location": "/ios-sim/shelljs",
+  "_npmUser": {
+    "name": "artur",
+    "email": "arturadib@gmail.com"
+  },
+  "_npmVersion": "1.3.8",
+  "_phantomChildren": {},
+  "_requested": {
+    "raw": "shelljs@^0.2.6",
+    "scope": null,
+    "escapedName": "shelljs",
+    "name": "shelljs",
+    "rawSpec": "^0.2.6",
+    "spec": ">=0.2.6 <0.3.0",
+    "type": "range"
+  },
+  "_requiredBy": [
+    "/ios-sim/simctl"
+  ],
+  "_resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.2.6.tgz",
+  "_shasum": "90492d72ffcc8159976baba62fb0f6884f0c3378",
+  "_shrinkwrap": null,
+  "_spec": "shelljs@^0.2.6",
+  "_where": "/Users/shazron/Documents/git/apache/cordova-ios/node_modules/ios-sim/node_modules/simctl",
+  "author": {
+    "name": "Artur Adib",
+    "email": "aadib@mozilla.com"
+  },
+  "bin": {
+    "shjs": "./bin/shjs"
+  },
+  "bugs": {
+    "url": "https://github.com/arturadib/shelljs/issues"
+  },
+  "dependencies": {},
+  "description": "Portable Unix shell commands for Node.js",
+  "devDependencies": {
+    "jshint": "~2.1.11"
+  },
+  "directories": {},
+  "dist": {
+    "shasum": "90492d72ffcc8159976baba62fb0f6884f0c3378",
+    "tarball": "https://registry.npmjs.org/shelljs/-/shelljs-0.2.6.tgz"
+  },
+  "engines": {
+    "node": ">=0.8.0"
+  },
+  "homepage": "http://github.com/arturadib/shelljs",
+  "keywords": [
+    "unix",
+    "shell",
+    "makefile",
+    "make",
+    "jake",
+    "synchronous"
+  ],
+  "main": "./shell.js",
+  "maintainers": [
+    {
+      "name": "artur",
+      "email": "arturadib@gmail.com"
+    }
+  ],
+  "name": "shelljs",
+  "optionalDependencies": {},
+  "readme": "ERROR: No README data found!",
+  "repository": {
+    "type": "git",
+    "url": "git://github.com/arturadib/shelljs.git"
+  },
+  "scripts": {
+    "test": "node scripts/run-tests"
+  },
+  "version": "0.2.6"
+}

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/scripts/generate-docs.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/scripts/generate-docs.js b/node_modules/ios-sim/node_modules/shelljs/scripts/generate-docs.js
new file mode 100755
index 0000000..532fed9
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/scripts/generate-docs.js
@@ -0,0 +1,21 @@
+#!/usr/bin/env node
+require('../global');
+
+echo('Appending docs to README.md');
+
+cd(__dirname + '/..');
+
+// Extract docs from shell.js
+var docs = grep('//@', 'shell.js');
+
+docs = docs.replace(/\/\/\@include (.+)/g, function(match, path) {
+  var file = path.match('.js$') ? path : path+'.js';
+  return grep('//@', file);
+});
+
+// Remove '//@'
+docs = docs.replace(/\/\/\@ ?/g, '');
+// Append docs to README
+sed('-i', /## Command reference(.|\n)*/, '## Command reference\n\n' + docs, 'README.md');
+
+echo('All done.');

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/scripts/run-tests.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/scripts/run-tests.js b/node_modules/ios-sim/node_modules/shelljs/scripts/run-tests.js
new file mode 100755
index 0000000..f9d31e0
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/scripts/run-tests.js
@@ -0,0 +1,50 @@
+#!/usr/bin/env node
+require('../global');
+
+var path = require('path');
+
+var failed = false;
+
+//
+// Lint
+//
+JSHINT_BIN = './node_modules/jshint/bin/jshint';
+cd(__dirname + '/..');
+
+if (!test('-f', JSHINT_BIN)) {
+  echo('JSHint not found. Run `npm install` in the root dir first.');
+  exit(1);
+}
+
+if (exec(JSHINT_BIN + ' *.js test/*.js').code !== 0) {
+  failed = true;
+  echo('*** JSHINT FAILED! (return code != 0)');
+  echo();
+} else {
+  echo('All JSHint tests passed');
+  echo();
+}
+
+//
+// Unit tests
+//
+cd(__dirname + '/../test');
+ls('*.js').forEach(function(file) {
+  echo('Running test:', file);
+  if (exec('node ' + file).code !== 123) { // 123 avoids false positives (e.g. premature exit)
+    failed = true;
+    echo('*** TEST FAILED! (missing exit code "123")');
+    echo();
+  }
+});
+
+if (failed) {
+  echo();
+  echo('*******************************************************');
+  echo('WARNING: Some tests did not pass!');
+  echo('*******************************************************');
+  exit(1);
+} else {
+  echo();
+  echo('All tests passed.');
+}

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/shell.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/shell.js b/node_modules/ios-sim/node_modules/shelljs/shell.js
new file mode 100644
index 0000000..e56c5de
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/shell.js
@@ -0,0 +1,153 @@
+//
+// ShellJS
+// Unix shell commands on top of Node's API
+//
+// Copyright (c) 2012 Artur Adib
+// http://github.com/arturadib/shelljs
+//
+
+var common = require('./src/common');
+
+
+//@
+//@ All commands run synchronously, unless otherwise stated.
+//@
+
+//@include ./src/cd
+var _cd = require('./src/cd');
+exports.cd = common.wrap('cd', _cd);
+
+//@include ./src/pwd
+var _pwd = require('./src/pwd');
+exports.pwd = common.wrap('pwd', _pwd);
+
+//@include ./src/ls
+var _ls = require('./src/ls');
+exports.ls = common.wrap('ls', _ls);
+
+//@include ./src/find
+var _find = require('./src/find');
+exports.find = common.wrap('find', _find);
+
+//@include ./src/cp
+var _cp = require('./src/cp');
+exports.cp = common.wrap('cp', _cp);
+
+//@include ./src/rm
+var _rm = require('./src/rm');
+exports.rm = common.wrap('rm', _rm);
+
+//@include ./src/mv
+var _mv = require('./src/mv');
+exports.mv = common.wrap('mv', _mv);
+
+//@include ./src/mkdir
+var _mkdir = require('./src/mkdir');
+exports.mkdir = common.wrap('mkdir', _mkdir);
+
+//@include ./src/test
+var _test = require('./src/test');
+exports.test = common.wrap('test', _test);
+
+//@include ./src/cat
+var _cat = require('./src/cat');
+exports.cat = common.wrap('cat', _cat);
+
+//@include ./src/to
+var _to = require('./src/to');
+String.prototype.to = common.wrap('to', _to);
+
+//@include ./src/toEnd
+var _toEnd = require('./src/toEnd');
+String.prototype.toEnd = common.wrap('toEnd', _toEnd);
+
+//@include ./src/sed
+var _sed = require('./src/sed');
+exports.sed = common.wrap('sed', _sed);
+
+//@include ./src/grep
+var _grep = require('./src/grep');
+exports.grep = common.wrap('grep', _grep);
+
+//@include ./src/which
+var _which = require('./src/which');
+exports.which = common.wrap('which', _which);
+
+//@include ./src/echo
+var _echo = require('./src/echo');
+exports.echo = _echo; // don't common.wrap() as it could parse '-options'
+
+//@include ./src/dirs
+var _dirs = require('./src/dirs').dirs;
+exports.dirs = common.wrap("dirs", _dirs);
+var _pushd = require('./src/dirs').pushd;
+exports.pushd = common.wrap('pushd', _pushd);
+var _popd = require('./src/dirs').popd;
+exports.popd = common.wrap("popd", _popd);
+
+//@
+//@ ### exit(code)
+//@ Exits the current process with the given exit code.
+exports.exit = process.exit;
+
+//@
+//@ ### env['VAR_NAME']
+//@ Object containing environment variables (both getter and setter). Shortcut to process.env.
+exports.env = process.env;
+
+//@include ./src/exec
+var _exec = require('./src/exec');
+exports.exec = common.wrap('exec', _exec, {notUnix:true});
+
+//@include ./src/chmod
+var _chmod = require('./src/chmod');
+exports.chmod = common.wrap('chmod', _chmod);
+
+
+
+//@
+//@ ## Non-Unix commands
+//@
+
+//@include ./src/tempdir
+var _tempDir = require('./src/tempdir');
+exports.tempdir = common.wrap('tempdir', _tempDir);
+
+
+//@include ./src/error
+var _error = require('./src/error');
+exports.error = _error;
+
+
+
+//@
+//@ ## Configuration
+//@
+
+exports.config = common.config;
+
+//@
+//@ ### config.silent
+//@ Example:
+//@
+//@ ```javascript
+//@ var silentState = config.silent; // save old silent state
+//@ config.silent = true;
+//@ /* ... */
+//@ config.silent = silentState; // restore old silent state
+//@ ```
+//@
+//@ Suppresses all command output if `true`, except for `echo()` calls.
+//@ Default is `false`.
+
+//@
+//@ ### config.fatal
+//@ Example:
+//@
+//@ ```javascript
+//@ config.fatal = true;
+//@ cp('this_file_does_not_exist', '/dev/null'); // dies here
+//@ /* more commands... */
+//@ ```
+//@
+//@ If `true` the script will die on errors. Default is `false`.

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/cat.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/cat.js b/node_modules/ios-sim/node_modules/shelljs/src/cat.js
new file mode 100644
index 0000000..f6f4d25
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/cat.js
@@ -0,0 +1,43 @@
+var common = require('./common');
+var fs = require('fs');
+
+//@
+//@ ### cat(file [, file ...])
+//@ ### cat(file_array)
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ var str = cat('file*.txt');
+//@ var str = cat('file1', 'file2');
+//@ var str = cat(['file1', 'file2']); // same as above
+//@ ```
+//@
+//@ Returns a string containing the given file, or a concatenated string
+//@ containing the files if more than one file is given (a new line character is
+//@ introduced between each file). Wildcard `*` accepted.
+function _cat(options, files) {
+  var cat = '';
+
+  if (!files)
+    common.error('no paths given');
+
+  if (typeof files === 'string')
+    files = [].slice.call(arguments, 1);
+  // if it's array leave it as it is
+
+  files = common.expand(files);
+
+  files.forEach(function(file) {
+    if (!fs.existsSync(file))
+      common.error('no such file or directory: ' + file);
+
+    cat += fs.readFileSync(file, 'utf8') + '\n';
+  });
+
+  if (cat[cat.length-1] === '\n')
+    cat = cat.substring(0, cat.length-1);
+
+  return common.ShellString(cat);
+}
+module.exports = _cat;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/cd.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/cd.js b/node_modules/ios-sim/node_modules/shelljs/src/cd.js
new file mode 100644
index 0000000..230f432
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/cd.js
@@ -0,0 +1,19 @@
+var fs = require('fs');
+var common = require('./common');
+
+//@
+//@ ### cd('dir')
+//@ Changes to directory `dir` for the duration of the script
+function _cd(options, dir) {
+  if (!dir)
+    common.error('directory not specified');
+
+  if (!fs.existsSync(dir))
+    common.error('no such file or directory: ' + dir);
+
+  if (!fs.statSync(dir).isDirectory())
+    common.error('not a directory: ' + dir);
+
+  process.chdir(dir);
+}
+module.exports = _cd;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/chmod.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/chmod.js b/node_modules/ios-sim/node_modules/shelljs/src/chmod.js
new file mode 100644
index 0000000..f288893
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/chmod.js
@@ -0,0 +1,208 @@
+var common = require('./common');
+var fs = require('fs');
+var path = require('path');
+
+var PERMS = (function (base) {
+  return {
+    OTHER_EXEC  : base.EXEC,
+    OTHER_WRITE : base.WRITE,
+    OTHER_READ  : base.READ,
+
+    GROUP_EXEC  : base.EXEC  << 3,
+    GROUP_WRITE : base.WRITE << 3,
+    GROUP_READ  : base.READ << 3,
+
+    OWNER_EXEC  : base.EXEC << 6,
+    OWNER_WRITE : base.WRITE << 6,
+    OWNER_READ  : base.READ << 6,
+
+    // Literal octal numbers are apparently not allowed in "strict" javascript.  Using parseInt is
+    // the preferred way, else a jshint warning is thrown.
+    STICKY      : parseInt('01000', 8),
+    SETGID      : parseInt('02000', 8),
+    SETUID      : parseInt('04000', 8),
+
+    TYPE_MASK   : parseInt('0770000', 8)
+  };
+})({
+  EXEC  : 1,
+  WRITE : 2,
+  READ  : 4
+});
+
+//@
+//@ ### chmod(octal_mode || octal_string, file)
+//@ ### chmod(symbolic_mode, file)
+//@
+//@ Available options:
+//@
+//@ + `-v`: output a diagnostic for every file processed//@
+//@ + `-c`: like verbose but report only when a change is made//@
+//@ + `-R`: change files and directories recursively//@
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ chmod(755, '/Users/brandon');
+//@ chmod('755', '/Users/brandon'); // same as above
+//@ chmod('u+x', '/Users/brandon');
+//@ ```
+//@
+//@ Alters the permissions of a file or directory by either specifying the
+//@ absolute permissions in octal form or expressing the changes in symbols.
+//@ This command tries to mimic the POSIX behavior as much as possible.
+//@ Notable exceptions:
+//@
+//@ + In symbolic modes, 'a-r' and '-r' are identical.  No consideration is
+//@   given to the umask.
+//@ + There is no "quiet" option since default behavior is to run silent.
+function _chmod(options, mode, filePattern) {
+  if (!filePattern) {
+    if (options.length > 0 && options.charAt(0) === '-') {
+      // Special case where the specified file permissions started with - to subtract perms, which
+      // get picked up by the option parser as command flags.
+      // If we are down by one argument and options starts with -, shift everything over.
+      filePattern = mode;
+      mode = options;
+      options = '';
+    }
+    else {
+      common.error('You must specify a file.');
+    }
+  }
+
+  options = common.parseOptions(options, {
+    'R': 'recursive',
+    'c': 'changes',
+    'v': 'verbose'
+  });
+
+  if (typeof filePattern === 'string') {
+    filePattern = [ filePattern ];
+  }
+
+  var files;
+
+  if (options.recursive) {
+    files = [];
+    common.expand(filePattern).forEach(function addFile(expandedFile) {
+      var stat = fs.lstatSync(expandedFile);
+
+      if (!stat.isSymbolicLink()) {
+        files.push(expandedFile);
+
+        if (stat.isDirectory()) {  // intentionally does not follow symlinks.
+          fs.readdirSync(expandedFile).forEach(function (child) {
+            addFile(expandedFile + '/' + child);
+          });
+        }
+      }
+    });
+  }
+  else {
+    files = common.expand(filePattern);
+  }
+
+  files.forEach(function innerChmod(file) {
+    file = path.resolve(file);
+    if (!fs.existsSync(file)) {
+      common.error('File not found: ' + file);
+    }
+
+    // When recursing, don't follow symlinks.
+    if (options.recursive && fs.lstatSync(file).isSymbolicLink()) {
+      return;
+    }
+
+    var perms = fs.statSync(file).mode;
+    var type = perms & PERMS.TYPE_MASK;
+
+    var newPerms = perms;
+
+    if (isNaN(parseInt(mode, 8))) {
+      // parse options
+      mode.split(',').forEach(function (symbolicMode) {
+        /*jshint regexdash:true */
+        var pattern = /([ugoa]*)([=\+-])([rwxXst]*)/i;
+        var matches = pattern.exec(symbolicMode);
+
+        if (matches) {
+          var applyTo = matches[1];
+          var operator = matches[2];
+          var change = matches[3];
+
+          var changeOwner = applyTo.indexOf('u') != -1 || applyTo === 'a' || applyTo === '';
+          var changeGroup = applyTo.indexOf('g') != -1 || applyTo === 'a' || applyTo === '';
+          var changeOther = applyTo.indexOf('o') != -1 || applyTo === 'a' || applyTo === '';
+
+          var changeRead   = change.indexOf('r') != -1;
+          var changeWrite  = change.indexOf('w') != -1;
+          var changeExec   = change.indexOf('x') != -1;
+          var changeSticky = change.indexOf('t') != -1;
+          var changeSetuid = change.indexOf('s') != -1;
+
+          var mask = 0;
+          if (changeOwner) {
+            mask |= (changeRead ? PERMS.OWNER_READ : 0) + (changeWrite ? PERMS.OWNER_WRITE : 0) + (changeExec ? PERMS.OWNER_EXEC : 0) + (changeSetuid ? PERMS.SETUID : 0);
+          }
+          if (changeGroup) {
+            mask |= (changeRead ? PERMS.GROUP_READ : 0) + (changeWrite ? PERMS.GROUP_WRITE : 0) + (changeExec ? PERMS.GROUP_EXEC : 0) + (changeSetuid ? PERMS.SETGID : 0);
+          }
+          if (changeOther) {
+            mask |= (changeRead ? PERMS.OTHER_READ : 0) + (changeWrite ? PERMS.OTHER_WRITE : 0) + (changeExec ? PERMS.OTHER_EXEC : 0);
+          }
+
+          // Sticky bit is special - it's not tied to user, group or other.
+          if (changeSticky) {
+            mask |= PERMS.STICKY;
+          }
+
+          switch (operator) {
+            case '+':
+              newPerms |= mask;
+              break;
+
+            case '-':
+              newPerms &= ~mask;
+              break;
+
+            case '=':
+              newPerms = type + mask;
+
+              // According to POSIX, when using = to explicitly set the permissions, setuid and setgid can never be cleared.
+              if (fs.statSync(file).isDirectory()) {
+                newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms;
+              }
+              break;
+          }
+
+          if (options.verbose) {
+            log(file + ' -> ' + newPerms.toString(8));
+          }
+
+          if (perms != newPerms) {
+            if (!options.verbose && options.changes) {
+              log(file + ' -> ' + newPerms.toString(8));
+            }
+            fs.chmodSync(file, newPerms);
+          }
+        }
+        else {
+          common.error('Invalid symbolic mode change: ' + symbolicMode);
+        }
+      });
+    }
+    else {
+      // they gave us a full number
+      newPerms = type + parseInt(mode, 8);
+
+      // POSIX rules are that setuid and setgid can only be added using numeric form, but not cleared.
+      if (fs.statSync(file).isDirectory()) {
+        newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms;
+      }
+
+      fs.chmodSync(file, newPerms);
+    }
+  });
+}
+module.exports = _chmod;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/common.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/common.js b/node_modules/ios-sim/node_modules/shelljs/src/common.js
new file mode 100644
index 0000000..fe20871
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/common.js
@@ -0,0 +1,189 @@
+var os = require('os');
+var fs = require('fs');
+var _ls = require('./ls');
+
+// Module globals
+var config = {
+  silent: false,
+  fatal: false
+};
+exports.config = config;
+
+var state = {
+  error: null,
+  currentCmd: 'shell.js',
+  tempDir: null
+};
+exports.state = state;
+
+var platform = os.type().match(/^Win/) ? 'win' : 'unix';
+exports.platform = platform;
+
+function log() {
+  if (!config.silent)
+    console.log.apply(this, arguments);
+}
+exports.log = log;
+
+// Shows error message. Throws unless _continue or config.fatal are true
+function error(msg, _continue) {
+  if (state.error === null)
+    state.error = '';
+  state.error += state.currentCmd + ': ' + msg + '\n';
+
+  if (msg.length > 0)
+    log(state.error);
+
+  if (config.fatal)
+    process.exit(1);
+
+  if (!_continue)
+    throw '';
+}
+exports.error = error;
+
+// In the future, when Proxies are default, we can add methods like `.to()` to primitive strings.
+// For now, this is a dummy function to bookmark places we need such strings
+function ShellString(str) {
+  return str;
+}
+exports.ShellString = ShellString;
+
+// Returns {'alice': true, 'bob': false} when passed a dictionary, e.g.:
+//   parseOptions('-a', {'a':'alice', 'b':'bob'});
+function parseOptions(str, map) {
+  if (!map)
+    error('parseOptions() internal error: no map given');
+
+  // All options are false by default
+  var options = {};
+  for (var letter in map)
+    options[map[letter]] = false;
+
+  if (!str)
+    return options; // defaults
+
+  if (typeof str !== 'string')
+    error('parseOptions() internal error: wrong str');
+
+  // e.g. match[1] = 'Rf' for str = '-Rf'
+  var match = str.match(/^\-(.+)/);
+  if (!match)
+    return options;
+
+  // e.g. chars = ['R', 'f']
+  var chars = match[1].split('');
+
+  chars.forEach(function(c) {
+    if (c in map)
+      options[map[c]] = true;
+    else
+      error('option not recognized: '+c);
+  });
+
+  return options;
+}
+exports.parseOptions = parseOptions;
+
+// Expands wildcards with matching (ie. existing) file names.
+// For example:
+//   expand(['file*.js']) = ['file1.js', 'file2.js', ...]
+//   (if the files 'file1.js', 'file2.js', etc, exist in the current dir)
+function expand(list) {
+  var expanded = [];
+  list.forEach(function(listEl) {
+    // Wildcard present?
+    if (listEl.search(/\*/) > -1) {
+      _ls('', listEl).forEach(function(file) {
+        expanded.push(file);
+      });
+    } else {
+      expanded.push(listEl);
+    }
+  });
+  return expanded;
+}
+exports.expand = expand;
+
+// Normalizes _unlinkSync() across platforms to match Unix behavior, i.e.
+// file can be unlinked even if it's read-only, see https://github.com/joyent/node/issues/3006
+function unlinkSync(file) {
+  try {
+    fs.unlinkSync(file);
+  } catch(e) {
+    // Try to override file permission
+    if (e.code === 'EPERM') {
+      fs.chmodSync(file, '0666');
+      fs.unlinkSync(file);
+    } else {
+      throw e;
+    }
+  }
+}
+exports.unlinkSync = unlinkSync;
+
+// e.g. 'shelljs_a5f185d0443ca...'
+function randomFileName() {
+  function randomHash(count) {
+    if (count === 1)
+      return parseInt(16*Math.random(), 10).toString(16);
+    else {
+      var hash = '';
+      for (var i=0; i<count; i++)
+        hash += randomHash(1);
+      return hash;
+    }
+  }
+
+  return 'shelljs_'+randomHash(20);
+}
+exports.randomFileName = randomFileName;
+
+// extend(target_obj, source_obj1 [, source_obj2 ...])
+// Shallow extend, e.g.:
+//    extend({A:1}, {b:2}, {c:3}) returns {A:1, b:2, c:3}
+function extend(target) {
+  var sources = [].slice.call(arguments, 1);
+  sources.forEach(function(source) {
+    for (var key in source)
+      target[key] = source[key];
+  });
+
+  return target;
+}
+exports.extend = extend;
+
+// Common wrapper for all Unix-like commands
+function wrap(cmd, fn, options) {
+  return function() {
+    var retValue = null;
+
+    state.currentCmd = cmd;
+    state.error = null;
+
+    try {
+      var args = [].slice.call(arguments, 0);
+
+      if (options && options.notUnix) {
+        retValue = fn.apply(this, args);
+      } else {
+        if (args.length === 0 || typeof args[0] !== 'string' || args[0][0] !== '-')
+          args.unshift(''); // only add dummy option if '-option' not already present
+        retValue = fn.apply(this, args);
+      }
+    } catch (e) {
+      if (!state.error) {
+        // If state.error hasn't been set it's an error thrown by Node, not us - probably a bug...
+        console.log('shell.js: internal error');
+        console.log(e.stack || e);
+        process.exit(1);
+      }
+      if (config.fatal)
+        throw e;
+    }
+
+    state.currentCmd = 'shell.js';
+    return retValue;
+  };
+} // wrap
+exports.wrap = wrap;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/cp.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/cp.js b/node_modules/ios-sim/node_modules/shelljs/src/cp.js
new file mode 100644
index 0000000..a1bc529
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/cp.js
@@ -0,0 +1,200 @@
+var fs = require('fs');
+var path = require('path');
+var common = require('./common');
+
+// Buffered file copy, synchronous
+// (Using readFileSync() + writeFileSync() could easily cause a memory overflow
+//  with large files)
+function copyFileSync(srcFile, destFile) {
+  if (!fs.existsSync(srcFile))
+    common.error('copyFileSync: no such file or directory: ' + srcFile);
+
+  var BUF_LENGTH = 64*1024,
+      buf = new Buffer(BUF_LENGTH),
+      bytesRead = BUF_LENGTH,
+      pos = 0,
+      fdr = null,
+      fdw = null;
+
+  try {
+    fdr = fs.openSync(srcFile, 'r');
+  } catch(e) {
+    common.error('copyFileSync: could not read src file ('+srcFile+')');
+  }
+
+  try {
+    fdw = fs.openSync(destFile, 'w');
+  } catch(e) {
+    common.error('copyFileSync: could not write to dest file (code='+e.code+'):'+destFile);
+  }
+
+  while (bytesRead === BUF_LENGTH) {
+    bytesRead = fs.readSync(fdr, buf, 0, BUF_LENGTH, pos);
+    fs.writeSync(fdw, buf, 0, bytesRead);
+    pos += bytesRead;
+  }
+
+  fs.closeSync(fdr);
+  fs.closeSync(fdw);
+
+  fs.chmodSync(destFile, fs.statSync(srcFile).mode);
+}
+
+// Recursively copies 'sourceDir' into 'destDir'
+// Adapted from https://github.com/ryanmcgrath/wrench-js
+//
+// Copyright (c) 2010 Ryan McGrath
+// Copyright (c) 2012 Artur Adib
+//
+// Licensed under the MIT License
+// http://www.opensource.org/licenses/mit-license.php
+function cpdirSyncRecursive(sourceDir, destDir, opts) {
+  if (!opts) opts = {};
+
+  /* Create the directory where all our junk is moving to; read the mode of the source directory and mirror it */
+  var checkDir = fs.statSync(sourceDir);
+  try {
+    fs.mkdirSync(destDir, checkDir.mode);
+  } catch (e) {
+    //if the directory already exists, that's okay
+    if (e.code !== 'EEXIST') throw e;
+  }
+
+  var files = fs.readdirSync(sourceDir);
+
+  for (var i = 0; i < files.length; i++) {
+    var srcFile = sourceDir + "/" + files[i];
+    var destFile = destDir + "/" + files[i];
+    var srcFileStat = fs.lstatSync(srcFile);
+
+    if (srcFileStat.isDirectory()) {
+      /* recursion this thing right on back. */
+      cpdirSyncRecursive(srcFile, destFile, opts);
+    } else if (srcFileStat.isSymbolicLink()) {
+      var symlinkFull = fs.readlinkSync(srcFile);
+      fs.symlinkSync(symlinkFull, destFile);
+    } else {
+      /* At this point, we've hit a file actually worth copying... so copy it on over. */
+      if (fs.existsSync(destFile) && !opts.force) {
+        common.log('skipping existing file: ' + files[i]);
+      } else {
+        copyFileSync(srcFile, destFile);
+      }
+    }
+
+  } // for files
+} // cpdirSyncRecursive
+
+
+//@
+//@ ### cp([options ,] source [,source ...], dest)
+//@ ### cp([options ,] source_array, dest)
+//@ Available options:
+//@
+//@ + `-f`: force
+//@ + `-r, -R`: recursive
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ cp('file1', 'dir1');
+//@ cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');
+//@ cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above
+//@ ```
+//@
+//@ Copies files. The wildcard `*` is accepted.
+function _cp(options, sources, dest) {
+  options = common.parseOptions(options, {
+    'f': 'force',
+    'R': 'recursive',
+    'r': 'recursive'
+  });
+
+  // Get sources, dest
+  if (arguments.length < 3) {
+    common.error('missing <source> and/or <dest>');
+  } else if (arguments.length > 3) {
+    sources = [].slice.call(arguments, 1, arguments.length - 1);
+    dest = arguments[arguments.length - 1];
+  } else if (typeof sources === 'string') {
+    sources = [sources];
+  } else if ('length' in sources) {
+    sources = sources; // no-op for array
+  } else {
+    common.error('invalid arguments');
+  }
+
+  var exists = fs.existsSync(dest),
+      stats = exists && fs.statSync(dest);
+
+  // Dest is not existing dir, but multiple sources given
+  if ((!exists || !stats.isDirectory()) && sources.length > 1)
+    common.error('dest is not a directory (too many sources)');
+
+  // Dest is an existing file, but no -f given
+  if (exists && stats.isFile() && !options.force)
+    common.error('dest file already exists: ' + dest);
+
+  if (options.recursive) {
+    // Recursive allows the shortcut syntax "sourcedir/" for "sourcedir/*"
+    // (see Github issue #15)
+    sources.forEach(function(src, i) {
+      if (src[src.length - 1] === '/')
+        sources[i] += '*';
+    });
+
+    // Create dest
+    try {
+      fs.mkdirSync(dest, parseInt('0777', 8));
+    } catch (e) {
+      // like Unix's cp, keep going even if we can't create dest dir
+    }
+  }
+
+  sources = common.expand(sources);
+
+  sources.forEach(function(src) {
+    if (!fs.existsSync(src)) {
+      common.error('no such file or directory: '+src, true);
+      return; // skip file
+    }
+
+    // If here, src exists
+    if (fs.statSync(src).isDirectory()) {
+      if (!options.recursive) {
+        // Non-Recursive
+        common.log(src + ' is a directory (not copied)');
+      } else {
+        // Recursive
+        // 'cp /a/source dest' should create 'source' in 'dest'
+        var newDest = path.join(dest, path.basename(src)),
+            checkDir = fs.statSync(src);
+        try {
+          fs.mkdirSync(newDest, checkDir.mode);
+        } catch (e) {
+          //if the directory already exists, that's okay
+          if (e.code !== 'EEXIST') throw e;
+        }
+
+        cpdirSyncRecursive(src, newDest, {force: options.force});
+      }
+      return; // done with dir
+    }
+
+    // If here, src is a file
+
+    // When copying to '/path/dir':
+    //    thisDest = '/path/dir/file1'
+    var thisDest = dest;
+    if (fs.existsSync(dest) && fs.statSync(dest).isDirectory())
+      thisDest = path.normalize(dest + '/' + path.basename(src));
+
+    if (fs.existsSync(thisDest) && !options.force) {
+      common.error('dest file already exists: ' + thisDest, true);
+      return; // skip file
+    }
+
+    copyFileSync(src, thisDest);
+  }); // forEach(src)
+}
+module.exports = _cp;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/dirs.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/dirs.js b/node_modules/ios-sim/node_modules/shelljs/src/dirs.js
new file mode 100644
index 0000000..58fae8b
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/dirs.js
@@ -0,0 +1,191 @@
+var common = require('./common');
+var _cd = require('./cd');
+var path = require('path');
+
+// Pushd/popd/dirs internals
+var _dirStack = [];
+
+function _isStackIndex(index) {
+  return (/^[\-+]\d+$/).test(index);
+}
+
+function _parseStackIndex(index) {
+  if (_isStackIndex(index)) {
+    if (Math.abs(index) < _dirStack.length + 1) { // +1 for pwd
+      return (/^-/).test(index) ? Number(index) - 1 : Number(index);
+    } else {
+      common.error(index + ': directory stack index out of range');
+    }
+  } else {
+    common.error(index + ': invalid number');
+  }
+}
+
+function _actualDirStack() {
+  return [process.cwd()].concat(_dirStack);
+}
+
+//@
+//@ ### pushd([options,] [dir | '-N' | '+N'])
+//@
+//@ Available options:
+//@
+//@ + `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated.
+//@
+//@ Arguments:
+//@
+//@ + `dir`: Makes the current working directory be the top of the stack, and then executes the equivalent of `cd dir`.
+//@ + `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
+//@ + `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ // process.cwd() === '/usr'
+//@ pushd('/etc'); // Returns /etc /usr
+//@ pushd('+1');   // Returns /usr /etc
+//@ ```
+//@
+//@ Save the current directory on the top of the directory stack and then cd to `dir`. With no arguments, pushd exchanges the top two directories. Returns an array of paths in the stack.
+function _pushd(options, dir) {
+  if (_isStackIndex(options)) {
+    dir = options;
+    options = '';
+  }
+
+  options = common.parseOptions(options, {
+    'n' : 'no-cd'
+  });
+
+  var dirs = _actualDirStack();
+
+  if (dir === '+0') {
+    return dirs; // +0 is a noop
+  } else if (!dir) {
+    if (dirs.length > 1) {
+      dirs = dirs.splice(1, 1).concat(dirs);
+    } else {
+      return common.error('no other directory');
+    }
+  } else if (_isStackIndex(dir)) {
+    var n = _parseStackIndex(dir);
+    dirs = dirs.slice(n).concat(dirs.slice(0, n));
+  } else {
+    if (options['no-cd']) {
+      dirs.splice(1, 0, dir);
+    } else {
+      dirs.unshift(dir);
+    }
+  }
+
+  if (options['no-cd']) {
+    dirs = dirs.slice(1);
+  } else {
+    dir = path.resolve(dirs.shift());
+    _cd('', dir);
+  }
+
+  _dirStack = dirs;
+  return _dirs('');
+}
+exports.pushd = _pushd;
+
+//@
+//@ ### popd([options,] ['-N' | '+N'])
+//@
+//@ Available options:
+//@
+//@ + `-n`: Suppresses the normal change of directory when removing directories from the stack, so that only the stack is manipulated.
+//@
+//@ Arguments:
+//@
+//@ + `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.
+//@ + `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ echo(process.cwd()); // '/usr'
+//@ pushd('/etc');       // '/etc /usr'
+//@ echo(process.cwd()); // '/etc'
+//@ popd();              // '/usr'
+//@ echo(process.cwd()); // '/usr'
+//@ ```
+//@
+//@ When no arguments are given, popd removes the top directory from the stack and performs a cd to the new top directory. The elements are numbered from 0 starting at the first directory listed with dirs; i.e., popd is equivalent to popd +0. Returns an array of paths in the stack.
+function _popd(options, index) {
+  if (_isStackIndex(options)) {
+    index = options;
+    options = '';
+  }
+
+  options = common.parseOptions(options, {
+    'n' : 'no-cd'
+  });
+
+  if (!_dirStack.length) {
+    return common.error('directory stack empty');
+  }
+
+  index = _parseStackIndex(index || '+0');
+
+  if (options['no-cd'] || index > 0 || _dirStack.length + index === 0) {
+    index = index > 0 ? index - 1 : index;
+    _dirStack.splice(index, 1);
+  } else {
+    var dir = path.resolve(_dirStack.shift());
+    _cd('', dir);
+  }
+
+  return _dirs('');
+}
+exports.popd = _popd;
+
+//@
+//@ ### dirs([options | '+N' | '-N'])
+//@
+//@ Available options:
+//@
+//@ + `-c`: Clears the directory stack by deleting all of the elements.
+//@
+//@ Arguments:
+//@
+//@ + `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.
+//@ + `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.
+//@
+//@ Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if +N or -N was specified.
+//@
+//@ See also: pushd, popd
+function _dirs(options, index) {
+  if (_isStackIndex(options)) {
+    index = options;
+    options = '';
+  }
+
+  options = common.parseOptions(options, {
+    'c' : 'clear'
+  });
+
+  if (options['clear']) {
+    _dirStack = [];
+    return _dirStack;
+  }
+
+  var stack = _actualDirStack();
+
+  if (index) {
+    index = _parseStackIndex(index);
+
+    if (index < 0) {
+      index = stack.length + index;
+    }
+
+    common.log(stack[index]);
+    return stack[index];
+  }
+
+  common.log(stack.join(' '));
+
+  return stack;
+}
+exports.dirs = _dirs;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/echo.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/echo.js b/node_modules/ios-sim/node_modules/shelljs/src/echo.js
new file mode 100644
index 0000000..760ea84
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/echo.js
@@ -0,0 +1,20 @@
+var common = require('./common');
+
+//@
+//@ ### echo(string [,string ...])
+//@
+//@ Examples:
+//@
+//@ ```javascript
+//@ echo('hello world');
+//@ var str = echo('hello world');
+//@ ```
+//@
+//@ Prints string to stdout, and returns string with additional utility methods
+//@ like `.to()`.
+function _echo() {
+  var messages = [].slice.call(arguments, 0);
+  console.log.apply(this, messages);
+  return common.ShellString(messages.join(' '));
+}
+module.exports = _echo;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4490abf2/node_modules/ios-sim/node_modules/shelljs/src/error.js
----------------------------------------------------------------------
diff --git a/node_modules/ios-sim/node_modules/shelljs/src/error.js b/node_modules/ios-sim/node_modules/shelljs/src/error.js
new file mode 100644
index 0000000..cca3efb
--- /dev/null
+++ b/node_modules/ios-sim/node_modules/shelljs/src/error.js
@@ -0,0 +1,10 @@
+var common = require('./common');
+
+//@
+//@ ### error()
+//@ Tests if error occurred in the last command. Returns `null` if no error occurred,
+//@ otherwise returns string explaining the error
+function error() {
+  return common.state.error;
+};
+module.exports = error;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message