Oneline mkGeneratedRoot

This commit is contained in:
Dale Wijnand 2017-10-04 13:38:25 +01:00
parent ccdd77a94f
commit d997fe8043
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 4 additions and 11 deletions

View File

@ -296,17 +296,10 @@ object Project extends ProjectExtra {
aggregate: Seq[ProjectReference]
): Project = {
validProjectID(id).foreach(errMsg => sys.error(s"Invalid project ID: $errMsg"))
new ProjectDef[ProjectReference](
id,
base,
aggregate,
Nil,
Nil,
Nil,
Plugins.empty,
Nil,
ProjectOrigin.GenericRoot
) with Project with GeneratedRootProject
val plugins = Plugins.empty
val origin = ProjectOrigin.GenericRoot
new ProjectDef(id, base, aggregate, Nil, Nil, Nil, plugins, Nil, origin) with Project
with GeneratedRootProject
}
/** Returns None if `id` is a valid Project ID or Some containing the parser error message if it is not.*/