mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
CB-4961: shell.js returns the full path on ls, rebuilding the full path isn't really needed
This commit is contained in:
parent
5592765f04
commit
133c2dc902
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user