diff --git a/bin/lib/create.js b/bin/lib/create.js index 1cd5cc6e..8d597ea1 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -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) {