mirror of https://github.com/sbt/sbt.git
This commit is contained in:
parent
6f14de514b
commit
6493707d2f
|
|
@ -1411,9 +1411,12 @@ private[sbt] object Load {
|
||||||
val extraSbtFiles: Seq[VirtualFile] =
|
val extraSbtFiles: Seq[VirtualFile] =
|
||||||
if (isMetaBuildContext(context)) s.get(BasicKeys.extraMetaSbtFiles).getOrElse(Nil)
|
if (isMetaBuildContext(context)) s.get(BasicKeys.extraMetaSbtFiles).getOrElse(Nil)
|
||||||
else Nil
|
else Nil
|
||||||
if (hasDefinition(dir) || extraSbtFiles.nonEmpty)
|
if (hasDefinition(dir) || extraSbtFiles.nonEmpty) {
|
||||||
|
if (extraSbtFiles.nonEmpty && !dir.exists()) {
|
||||||
|
IO.createDirectory(dir)
|
||||||
|
}
|
||||||
buildPlugins(dir, s, enableSbtPlugin(activateGlobalPlugin(config)))
|
buildPlugins(dir, s, enableSbtPlugin(activateGlobalPlugin(config)))
|
||||||
else
|
} else
|
||||||
noPlugins(dir, config)
|
noPlugins(dir, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue