mirror of https://github.com/sbt/sbt.git
Merge pull request #5972 from eatkins/symlink-target
Check if target is directory before creating
This commit is contained in:
commit
8e4ec1697b
|
|
@ -287,8 +287,8 @@ public class BootServerSocket implements AutoCloseable {
|
||||||
final Path base = configuration.baseDirectory().toPath().toRealPath();
|
final Path base = configuration.baseDirectory().toPath().toRealPath();
|
||||||
final Path target = base.resolve("project").resolve("target");
|
final Path target = base.resolve("project").resolve("target");
|
||||||
if (!isWindows) {
|
if (!isWindows) {
|
||||||
|
if (!Files.isDirectory(target)) Files.createDirectories(target);
|
||||||
socketFile = Paths.get(socketLocation(base));
|
socketFile = Paths.get(socketLocation(base));
|
||||||
Files.createDirectories(target);
|
|
||||||
} else {
|
} else {
|
||||||
socketFile = null;
|
socketFile = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue