loader/ini: the project name is `project.name` not just `name`
authorJean Privat <jean@pryen.org>
Thu, 27 Aug 2015 17:42:46 +0000 (13:42 -0400)
committerJean Privat <jean@pryen.org>
Thu, 27 Aug 2015 19:51:34 +0000 (15:51 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index 56d0164..ae0315e 100644 (file)
@@ -446,7 +446,8 @@ redef class ModelBuilder
                var mgroup
                if parent == null then
                        # no parent, thus new project
-                       if ini != null and ini.has_key("name") then pn = ini["name"]
+                       var namekey = "project.name"
+                       if ini != null and ini.has_key(namekey) then pn = ini[namekey]
                        var mproject = new MProject(pn, model)
                        mgroup = new MGroup(pn, mproject, null) # same name for the root group
                        mproject.root = mgroup