Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[CB-4901] Removed custom modified wrench + wrench bump to 1.4.4
Reviewed by Jeffrey Heifitz <jheifitz@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
  • Loading branch information
jkeshavarzi authored and bryanhiggins committed Sep 24, 2013
1 parent 95c4540 commit 880fc9be1aa3c56b2d7c96331960c950e16452db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 91 deletions.
@@ -60,21 +60,18 @@ function unzip(from, to) {

function copyDirContents(from, to) {
var files = wrench.readdirSyncRecursive(from),
bbwpignore,
bbwpignoreFile = path.join(from, conf.BBWP_IGNORE_FILENAME),
toBeIgnored = [];
bbwpignore,
ignoreFiles = conf.BBWP_IGNORE_FILENAME;

if (fs.existsSync(bbwpignoreFile)) {
bbwpignore = new BBWPignore(bbwpignoreFile, files);

bbwpignore.matchedFiles.forEach(function (i) {
toBeIgnored.push(from + "/" + i);
});
toBeIgnored.push(from + "/" + conf.BBWP_IGNORE_FILENAME); //add the .bbwpignore file to the ignore list
bbwpignore.matchedFiles.push(conf.BBWP_IGNORE_FILENAME); //add the .bbwpignore file to the ignore list
ignoreFiles = bbwpignore.matchedFiles.join("|");
}
wrench.copyDirSyncRecursive(from, to, {preserve: true}, function (file) {
return toBeIgnored.indexOf(file) === -1;
});


wrench.copyDirSyncRecursive(from, to, {preserve: true, whitelist: false, filter: new RegExp(ignoreFiles, "g")});
}

function prepare(session) {
@@ -14,8 +14,6 @@
* limitations under the License.
*/

require('./../third_party/wrench/wrench');

var path = require("path"),
wrench = require("wrench"),
cmdline = require("./cmdline"),

This file was deleted.

@@ -24,7 +24,7 @@
"zip": "0.0.6",
"xml2js": "0.1.13",
"validator": "0.4.1",
"wrench": "1.3.9",
"wrench": "1.4.4",
"shelljs":"0.1.3",
"elementtree": "0.1.5",
"prompt": "0.2.11",

0 comments on commit 880fc9b

Please sign in to comment.