def _execute_engine(self): workdir = self._context.options.for_global_scope().pants_workdir if not workdir.endswith('.pants.d'): self._context.log.error( 'Pants working directory should end with \'.pants.d\', currently it is {}\n' .format(workdir)) return 1 unknown_goals = [ goal.name for goal in self._goals if not goal.ordered_task_names() ] if unknown_goals: self._context.log.error('Unknown goal(s): {}\n'.format( ' '.join(unknown_goals))) return 1 engine = RoundEngine() sorted_goal_infos = engine.sort_goals(self._context, self._goals) RunTracker.global_instance().set_sorted_goal_infos(sorted_goal_infos) result = engine.execute(self._context, self._goals) if self._context.invalidation_report: self._context.invalidation_report.report() return result
def _execute_engine(self): engine = RoundEngine() sorted_goal_infos = engine.sort_goals(self._context, self._goals) RunTracker.global_instance().set_sorted_goal_infos(sorted_goal_infos) result = engine.execute(self._context, self._goals) if self._context.invalidation_report: self._context.invalidation_report.report() return result
def _execute_engine(self): workdir = self._context.options.for_global_scope().pants_workdir if not workdir.endswith('.pants.d'): self._context.log.error('Pants working directory should end with \'.pants.d\', currently it is {}\n' .format(workdir)) return 1 unknown_goals = [goal.name for goal in self._goals if not goal.ordered_task_names()] if unknown_goals: self._context.log.error('Unknown goal(s): {}\n'.format(' '.join(unknown_goals))) return 1 engine = RoundEngine() sorted_goal_infos = engine.sort_goals(self._context, self._goals) RunTracker.global_instance().set_sorted_goal_infos(sorted_goal_infos) result = engine.execute(self._context, self._goals) if self._context.invalidation_report: self._context.invalidation_report.report() return result