+ cur_project = Project.Project.getProjectByHash( BuilderApplication.opt_compile_project);
+
+ if (cur_project == null) {
+ GLib.error("invalid project %s, use --list-projects to show project ids",BuilderApplication.opt_compile_project);
+ }
+ cur_project.scanDirs();
+
+
+ }
+
+ if (BuilderApplication.opt_list_files) {
+ if (cur_project == null) {
+ GLib.error("missing project, use --project to select which project");
+ }
+ print("Files for %s\n %s\n", cur_project.name, cur_project.listAllFilesToString());
+ GLib.Process.exit(Posix.EXIT_SUCCESS);
+ }
+
+ if (BuilderApplication.opt_bjs_compile != null) {
+ if (cur_project == null) {
+ GLib.error("missing project, use --project to select which project");
+ }
+ var file = cur_project.getByName(BuilderApplication.opt_bjs_compile);
+ if (file == null) {
+ GLib.error("missing file %s in project %s", BuilderApplication.opt_bjs_compile, cur_project.name);
+ }