We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5979a87 + 4099231 commit 2f30b59Copy full SHA for 2f30b59
src/main/java/org/skife/waffles/ReallyExecutableJarMojo.java
@@ -34,6 +34,7 @@
34
import java.nio.file.Files;
35
import java.nio.file.Path;
36
import java.nio.file.Paths;
37
+import java.nio.file.StandardCopyOption;
38
import java.util.ArrayList;
39
import java.util.Arrays;
40
import java.util.List;
@@ -143,7 +144,7 @@ public void execute() throws MojoExecutionException {
143
144
File file = files.get(0);
145
File dir = file.getParentFile();
146
File exec = new File(dir, programFile);
- Files.copy(file.toPath(), exec.toPath());
147
+ Files.copy(file.toPath(), exec.toPath(), StandardCopyOption.REPLACE_EXISTING);
148
makeExecutable(exec);
149
if (attachProgramFile) {
150
projectHelper.attachArtifact(project, programFileType, exec);
0 commit comments