From: Jean Privat Date: Mon, 24 Aug 2015 19:46:40 +0000 (-0400) Subject: loader: projects might have a ini file associated X-Git-Tag: v0.7.8~69^2~8 X-Git-Url: http://nitlanguage.org loader: projects might have a ini file associated Signed-off-by: Jean Privat --- diff --git a/src/loader.nit b/src/loader.nit index 75ad359..53b2234 100644 --- a/src/loader.nit +++ b/src/loader.nit @@ -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]