1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-26 20:54:22 +01:00

Add symlink support for Windows

Fixes https://github.com/arduino/Arduino/issues/6893
This commit is contained in:
Martino Facchin 2017-12-07 15:56:37 +01:00
parent cabd626f0a
commit 831c9bba2a

View File

@ -213,6 +213,8 @@ public class Platform extends processing.app.Platform {
} }
public void symlink(File something, File somewhere) throws IOException, InterruptedException { 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 @Override