Skip to content

Commit 17b7834

Browse files
committed
added missing "REPLACE_EXISTING" option to copy command
1 parent ae61979 commit 17b7834

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dsf-maven/dsf-maven-plugin/src/main/java/dev/dsf/maven/bundle/BundleGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import java.nio.file.FileVisitor;
1010
import java.nio.file.Files;
1111
import java.nio.file.Path;
12+
import java.nio.file.StandardCopyOption;
1213
import java.util.ArrayList;
1314
import java.util.Comparator;
1415
import java.util.List;
@@ -120,7 +121,7 @@ public void generateAndSaveBundle() throws MojoFailureException
120121
logger.info("Bundle saved at {}", relativeToProjectDir(bundleFilename));
121122

122123
Path target = projectBuildDirectory.resolve("classes/fhir/" + BUNDLE_FILENAME);
123-
Files.copy(bundleFilename, target);
124+
Files.copy(bundleFilename, target, StandardCopyOption.REPLACE_EXISTING);
124125
logger.info("Bundle copied to {}", relativeToProjectDir(target));
125126
}
126127
catch (IOException | TransformerException e)

0 commit comments

Comments
 (0)