| 814 | } |
| 815 | |
| 816 | std::optional<ProjectBuildStep> ProjectBuildManager::getCurrentRunConfig() { |
| 817 | if ( hasBuildConfig() ) { |
| 818 | auto build = getCurrentBuild(); |
| 819 | if ( build != nullptr && build->hasRun() ) { |
| 820 | for ( const auto& crun : build->mRun ) { |
| 821 | if ( crun->name == mConfig.runName || mConfig.runName.empty() ) { |
| 822 | ProjectBuildCommand res( build->replaceVars( *crun.get() ) ); |
| 823 | replaceDynamicVars( res ); |
| 824 | return res; |
| 825 | } |
| 826 | } |
| 827 | } |
| 828 | } |
| 829 | return {}; |
| 830 | } |
| 831 | |
| 832 | void ProjectBuildManager::runConfig( StatusAppOutputController* saoc ) { |
| 833 | if ( !isRunningApp() && !getBuilds().empty() ) { |
no test coverage detected