loader: projects might have a ini file associated
authorJean Privat <jean@pryen.org>
Mon, 24 Aug 2015 19:46:40 +0000 (15:46 -0400)
committerJean Privat <jean@pryen.org>
Wed, 26 Aug 2015 12:05:58 +0000 (08:05 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index 75ad359..53b2234 100644 (file)
@@ -18,6 +18,7 @@
 module loader
 
 import modelbuilder_base
+import ini
 
 redef class ToolContext
        # Option --path
@@ -918,6 +919,15 @@ class ModulePath
        redef fun to_s do return filepath
 end
 
+redef class MProject
+       # The associated `.ini` file, if any
+       #
+       # The `ini` file is given as is and might contain invalid or missing information.
+       #
+       # Some projects, like stand-alone projects or virtual projects have no `ini` file associated.
+       var ini: nullable ConfigTree = null
+end
+
 redef class MGroup
        # Modules paths associated with the group
        var module_paths = new Array[ModulePath]