diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2017-12-07 17:56:37 +0300 |
---|---|---|
committer | Martino Facchin <m.facchin@arduino.cc> | 2020-04-07 15:09:06 +0300 |
commit | 831c9bba2ac64133a0d5c7b476113ea38b11b25f (patch) | |
tree | d080b8e1a3bbb6d7190e061c9ce97ec51dd626b0 | |
parent | cabd626f0a88a3a179825135a403cc16d2af4930 (diff) |
Add symlink support for Windows
Fixes https://github.com/arduino/Arduino/issues/6893
-rw-r--r-- | arduino-core/src/processing/app/windows/Platform.java | 2 |
1 files changed, 2 insertions, 0 deletions
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 |