KiCad PCB EDA Suite
|
#include <jobs_runner.h>
Public Member Functions | |
JOBS_RUNNER (KIWAY *aKiway, JOBSET *aJobsFile, PROJECT *aProject, REPORTER *aReporter=nullptr) | |
bool | RunJobsAllDestinations (bool aBail=false) |
bool | RunJobsForDestination (JOBSET_DESTINATION *aDestination, bool aBail=false) |
Private Member Functions | |
int | runSpecialExecute (const JOBSET_JOB *aJob, PROJECT *aProject) |
int | runSpecialCopyFiles (const JOBSET_JOB *aJob, PROJECT *aProject) |
Private Attributes | |
KIWAY * | m_kiway |
JOBSET * | m_jobsFile |
REPORTER * | m_reporter |
PROJECT * | m_project |
Definition at line 30 of file jobs_runner.h.
JOBS_RUNNER::JOBS_RUNNER | ( | KIWAY * | aKiway, |
JOBSET * | aJobsFile, | ||
PROJECT * | aProject, | ||
REPORTER * | aReporter = nullptr |
||
) |
Definition at line 37 of file jobs_runner.cpp.
References NULL_REPORTER::GetInstance(), and m_reporter.
bool JOBS_RUNNER::RunJobsAllDestinations | ( | bool | aBail = false | ) |
Definition at line 51 of file jobs_runner.cpp.
References JOBSET::GetDestinations(), m_jobsFile, and RunJobsForDestination().
Referenced by CLI::JOBSET_RUN_COMMAND::doPerform(), and PANEL_JOBSET::OnGenerateAllDestinationsClick().
bool JOBS_RUNNER::RunJobsForDestination | ( | JOBSET_DESTINATION * | aDestination, |
bool | aBail = false |
||
) |
Definition at line 166 of file jobs_runner.cpp.
References _, CLI::EXIT_CODES::ERR_RC_VIOLATIONS, NULL_REPORTER::GetInstance(), JOBSET::GetJobsForDestination(), JOB_REGISTRY::GetKifaceType(), JOBS_OUTPUT_HANDLER::HandleOutputs(), KIWAY::KIWAY_FACE_COUNT, JOBSET_DESTINATION::m_id, m_jobsFile, m_kiway, JOBSET_DESTINATION::m_lastRunReporters, JOBSET_DESTINATION::m_lastRunSuccess, JOBSET_DESTINATION::m_lastRunSuccessMap, JOBSET_DESTINATION::m_outputHandler, m_project, m_reporter, name, JOBS_OUTPUT_HANDLER::OutputPrecheck(), KIWAY::ProcessJob(), REPORTER::Report(), RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, runSpecialCopyFiles(), runSpecialExecute(), and CLI::EXIT_CODES::SUCCESS.
Referenced by CLI::JOBSET_RUN_COMMAND::doPerform(), PANEL_DESTINATION::OnGenerate(), and RunJobsAllDestinations().
|
private |
Definition at line 105 of file jobs_runner.cpp.
References CopyFilesOrDirectory(), CLI::EXIT_CODES::ERR_ARGS, CLI::EXIT_CODES::ERR_UNKNOWN, ExpandEnvVarSubstitutions(), JOBSET::GetDestinations(), JOB::GetFullOutputPath(), PROJECT::GetProjectPath(), JOB_SPECIAL_COPYFILES::m_dest, JOB_SPECIAL_COPYFILES::m_generateErrorOnNoCopy, JOBSET_JOB::m_job, m_jobsFile, JOB_SPECIAL_COPYFILES::m_source, and CLI::EXIT_CODES::OK.
Referenced by RunJobsForDestination().
|
private |
Definition at line 62 of file jobs_runner.cpp.
References CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT, ExpandEnvVarSubstitutions(), JOB::GetConfiguredOutputPath(), JOB::GetFullOutputPath(), JOB_SPECIAL_EXECUTE::m_command, JOBSET_JOB::m_id, JOB_SPECIAL_EXECUTE::m_ignoreExitcode, JOBSET_JOB::m_job, m_project, JOB_SPECIAL_EXECUTE::m_recordOutput, CLI::EXIT_CODES::OK, process, and JOB::SetConfiguredOutputPath().
Referenced by RunJobsForDestination().
|
private |
Definition at line 45 of file jobs_runner.h.
Referenced by RunJobsAllDestinations(), RunJobsForDestination(), and runSpecialCopyFiles().
|
private |
Definition at line 44 of file jobs_runner.h.
Referenced by RunJobsForDestination().
|
private |
Definition at line 47 of file jobs_runner.h.
Referenced by RunJobsForDestination(), and runSpecialExecute().
|
private |
Definition at line 46 of file jobs_runner.h.
Referenced by JOBS_RUNNER(), and RunJobsForDestination().