| 89 | } |
| 90 | |
| 91 | void MakeJob::start() |
| 92 | { |
| 93 | ProjectBaseItem* it = item(); |
| 94 | qCDebug(KDEV_MAKEBUILDER) << "Building with make" << m_command << m_overrideTargets.join(QLatin1Char(' ')); |
| 95 | if (!it) |
| 96 | { |
| 97 | setError(ItemNoLongerValidError); |
| 98 | setErrorText(i18n("Build item no longer available")); |
| 99 | emitResult(); |
| 100 | return; |
| 101 | } |
| 102 | |
| 103 | if( it->type() == KDevelop::ProjectBaseItem::File ) { |
| 104 | setError(IncorrectItemError); |
| 105 | setErrorText(i18n("Internal error: cannot build a file item")); |
| 106 | emitResult(); |
| 107 | return; |
| 108 | } |
| 109 | |
| 110 | setStandardToolView(IOutputView::BuildView); |
| 111 | setBehaviours(KDevelop::IOutputView::AllowUserClose | KDevelop::IOutputView::AutoScroll); |
| 112 | |
| 113 | OutputExecuteJob::start(); |
| 114 | } |
| 115 | |
| 116 | KDevelop::ProjectBaseItem * MakeJob::item() const |
| 117 | { |
no test coverage detected