Skip to content

Commit ef8d4fd

Browse files
committed
Use Files.copy
1 parent 1b00b77 commit ef8d4fd

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

build.sbt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def writeBinary(
6464
debug: Boolean
6565
): File = {
6666

67+
import java.nio.file.*
68+
6769
val name = platform match {
6870
case None => "app"
6971
case Some(target) =>
@@ -77,7 +79,12 @@ def writeBinary(
7779

7880
val dest = destinationDir / name
7981

80-
IO.copyFile(source, dest, CopyOptions.apply(true, true, true))
82+
Files.copy(
83+
source.toPath(),
84+
dest.toPath(),
85+
StandardCopyOption.COPY_ATTRIBUTES,
86+
StandardCopyOption.REPLACE_EXISTING,
87+
)
8188

8289
import scala.sys.process.*
8390

0 commit comments

Comments
 (0)