mirror of https://github.com/sbt/sbt.git
Oneline mkGeneratedRoot
This commit is contained in:
parent
ccdd77a94f
commit
d997fe8043
|
|
@ -296,17 +296,10 @@ object Project extends ProjectExtra {
|
||||||
aggregate: Seq[ProjectReference]
|
aggregate: Seq[ProjectReference]
|
||||||
): Project = {
|
): Project = {
|
||||||
validProjectID(id).foreach(errMsg => sys.error(s"Invalid project ID: $errMsg"))
|
validProjectID(id).foreach(errMsg => sys.error(s"Invalid project ID: $errMsg"))
|
||||||
new ProjectDef[ProjectReference](
|
val plugins = Plugins.empty
|
||||||
id,
|
val origin = ProjectOrigin.GenericRoot
|
||||||
base,
|
new ProjectDef(id, base, aggregate, Nil, Nil, Nil, plugins, Nil, origin) with Project
|
||||||
aggregate,
|
with GeneratedRootProject
|
||||||
Nil,
|
|
||||||
Nil,
|
|
||||||
Nil,
|
|
||||||
Plugins.empty,
|
|
||||||
Nil,
|
|
||||||
ProjectOrigin.GenericRoot
|
|
||||||
) with Project with GeneratedRootProject
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns None if `id` is a valid Project ID or Some containing the parser error message if it is not.*/
|
/** Returns None if `id` is a valid Project ID or Some containing the parser error message if it is not.*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue