CB-4961: shell.js returns the full path on ls, rebuilding the full path isn't really needed

This commit is contained in:
Joe Bowser 2013-09-30 16:01:42 -07:00
parent 5592765f04
commit 133c2dc902

View File

@ -69,7 +69,8 @@ function copyJsAndJar(projectPath, version) {
// Don't fail if there are no old jars. // Don't fail if there are no old jars.
setShellFatal(false, function() { setShellFatal(false, function() {
shell.ls(path.join(projectPath, 'libs', 'cordova-*.jar')).forEach(function(oldJar) { 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')); shell.cp('-f', path.join(ROOT, 'framework', 'cordova-' + version + '.jar'), path.join(projectPath, 'libs', 'cordova-' + version + '.jar'));