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.
1 parent 9c335b1 commit 882221cCopy full SHA for 882221c
src/main/java/org/codehaus/plexus/archiver/AbstractUnArchiver.java
@@ -38,6 +38,8 @@
38
import org.slf4j.Logger;
39
import org.slf4j.LoggerFactory;
40
41
+import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
42
+
43
// TODO there should really be constructors which take the source file.
44
45
/**
@@ -327,7 +329,7 @@ protected void extractFile(
327
329
if (targetFileName.exists()) {
328
330
targetFileName.delete();
331
}
- Files.copy(compressedInputStream, targetFileName.toPath());
332
+ Files.copy(compressedInputStream, targetFileName.toPath(), REPLACE_EXISTING);
333
334
335
targetFileName.setLastModified(entryDate.getTime());
0 commit comments