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:
parent
cabd626f0a
commit
831c9bba2a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user