| 183 | } |
| 184 | |
| 185 | void BuildProjectTool::scheduleProjectRun(ProjectExplorer::Project *project, |
| 186 | const QString &projectName, |
| 187 | QString &result) |
| 188 | { |
| 189 | auto *target = project->activeTarget(); |
| 190 | if (!target) { |
| 191 | result += QString("\n\nError: No active target found for the project."); |
| 192 | return; |
| 193 | } |
| 194 | |
| 195 | auto *runConfig = target->activeRunConfiguration(); |
| 196 | if (!runConfig) { |
| 197 | result += QString("\n\nError: No active run configuration found for the project."); |
| 198 | return; |
| 199 | } |
| 200 | |
| 201 | QString runConfigName = runConfig->displayName(); |
| 202 | result += QString("\n\nProject '%1' will be started with run configuration '%2'.") |
| 203 | .arg(projectName, runConfigName); |
| 204 | |
| 205 | ProjectExplorer::ProjectExplorerPlugin::runProject(project, Utils::Id(ProjectExplorer::Constants::NORMAL_RUN_MODE)); |
| 206 | } |
| 207 | |
| 208 | QString BuildProjectTool::collectBuildResults( |
| 209 | bool success, const QString &projectName, bool isRebuild) |
nothing calls this directly
no test coverage detected