Fix update script to clobber cordova.js file (missing -f)

This commit is contained in:
Andrew Grieve 2013-09-19 15:47:49 -04:00
parent 734d4d3147
commit 4441215e4c

View File

@ -65,14 +65,14 @@ function ensureJarIsBuilt(version, target_api) {
}
function copyJsAndJar(projectPath, version) {
shell.cp(path.join(ROOT, 'framework', 'assets', 'www', 'cordova.js'), path.join(projectPath, 'assets', 'www', 'cordova.js'));
shell.cp('-f', path.join(ROOT, 'framework', 'assets', 'www', 'cordova.js'), path.join(projectPath, 'assets', 'www', 'cordova.js'));
// 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));
});
});
shell.cp(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'));
}
function copyScripts(projectPath) {