File tree 1 file changed +2
-2
lines changed
arduino-core/src/processing/app/debug
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 29
29
import java .nio .file .Files ;
30
30
import java .nio .file .Path ;
31
31
import java .nio .file .Paths ;
32
+ import java .nio .file .StandardCopyOption ;
32
33
import java .util .*;
33
34
import java .util .stream .Stream ;
34
35
@@ -1416,11 +1417,10 @@ private void copyAdditionalFilesToBuildFolderSavingOriginalFolderStructure(Sketc
1416
1417
throw new RunnerException (e );
1417
1418
}
1418
1419
otherFilesStream .map ((path ) -> new Pair <>(path , Paths .get (buildPath , sketchPath .relativize (path ).toString ())))
1419
- .filter ((pair ) -> !Files .exists (pair .value ))
1420
1420
.forEach ((pair ) -> {
1421
1421
try {
1422
1422
Files .createDirectories (pair .value .getParent ());
1423
- Files .copy (pair .key , pair .value );
1423
+ Files .copy (pair .key , pair .value , StandardCopyOption . REPLACE_EXISTING );
1424
1424
} catch (IOException e ) {
1425
1425
e .printStackTrace ();
1426
1426
throw new RuntimeException (I18n .format (_ ("Problem moving {0} to the build folder" ), sketchPath .relativize (pair .key ).toString ()));
You can’t perform that action at this time.
0 commit comments