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 ec9741443b
commit b858a4a5d7

View File

@ -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'));