diff --git a/.jvmopts b/.jvmopts new file mode 100644 index 000000000000..655bc221d6f7 --- /dev/null +++ b/.jvmopts @@ -0,0 +1,3 @@ +-Xss1m +-Xms512m +-Xmx1200m diff --git a/project/Build.scala b/project/Build.scala index fea9b5496547..c1858f385687 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -3,7 +3,7 @@ import sbt._ import complete.DefaultParsers._ import java.io.{File, RandomAccessFile} import java.nio.channels.FileLock -import java.nio.file.Files +import java.nio.file.{ Files, FileSystemException } import java.util.Calendar import scala.reflect.io.Path @@ -407,7 +407,7 @@ object Build { Files.createSymbolicLink(/*link = */ dst.toPath, /*existing = */src.toPath) } } catch { - case e: UnsupportedOperationException => + case _: UnsupportedOperationException | _: FileSystemException => // If the OS doesn't support symbolic links, copy the directory instead. sbt.IO.copy(pairs, overwrite = true, preserveLastModified = true) }