From 831c9bba2ac64133a0d5c7b476113ea38b11b25f Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 7 Dec 2017 15:56:37 +0100 Subject: [PATCH] Add symlink support for Windows Fixes https://github.com/arduino/Arduino/issues/6893 --- arduino-core/src/processing/app/windows/Platform.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arduino-core/src/processing/app/windows/Platform.java b/arduino-core/src/processing/app/windows/Platform.java index 6d344444f..95666d3b6 100644 --- a/arduino-core/src/processing/app/windows/Platform.java +++ b/arduino-core/src/processing/app/windows/Platform.java @@ -213,6 +213,8 @@ public class Platform extends processing.app.Platform { } public void symlink(File something, File somewhere) throws IOException, InterruptedException { + Process process = Runtime.getRuntime().exec(new String[]{"mklink", somewhere.getAbsolutePath(), something.toString()}, null, somewhere.getParentFile()); + process.waitFor(); } @Override