From 133c2dc90252bb725fdd8518614fdcbb4abe2468 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Mon, 30 Sep 2013 16:01:42 -0700 Subject: [PATCH] CB-4961: shell.js returns the full path on ls, rebuilding the full path isn't really needed --- bin/lib/create.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index 9c6e86c6..445ede66 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -69,7 +69,8 @@ function copyJsAndJar(projectPath, version) { // Don't fail if there are no old jars. setShellFatal(false, function() { shell.ls(path.join(projectPath, 'libs', 'cordova-*.jar')).forEach(function(oldJar) { - shell.rm('-f', path.join(projectPath, 'libs', oldJar)); + console.log("Deleting " + oldJar); + shell.rm('-f', path.join(oldJar)); }); }); shell.cp('-f', path.join(ROOT, 'framework', 'cordova-' + version + '.jar'), path.join(projectPath, 'libs', 'cordova-' + version + '.jar'));