From: Jean Privat Date: Fri, 5 Dec 2014 03:36:04 +0000 (-0500) Subject: nitls: visit group for relevant outputs X-Git-Tag: v0.7~75^2~7 X-Git-Url: http://nitlanguage.org nitls: visit group for relevant outputs Signed-off-by: Jean Privat --- diff --git a/src/nitls.nit b/src/nitls.nit index 3e6126a..366c4fc 100644 --- a/src/nitls.nit +++ b/src/nitls.nit @@ -172,17 +172,26 @@ if sum == 0 then end end +# Identify all relevant files for a in files do + var g = mb.get_mgroup(a) var mp = mb.identify_file(a) - tc.check_errors - if mp != null and not opt_paths.value then + if g != null and not opt_project.value then + mb.visit_group(g) + end +end + +# Load modules to get more informations +for mp in mb.identified_files.values do + if mp == null then continue + if not opt_paths.value or opt_depends.value then var mm = mb.load_module(mp.filepath) if mm != null and opt_depends.value then mb.build_module_importation(mm) end - tc.check_errors end end +#tc.check_errors var ot = new ProjTree(tc)