MCPcopy Create free account
hub / github.com/KDE/kdevelop / script

Method script

plugins/executescript/executescriptplugin.cpp:47–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47QUrl ExecuteScriptPlugin::script(ILaunchConfiguration* cfg, QString& err) const
48{
49 QUrl script;
50
51 if( !cfg )
52 {
53 return script;
54 }
55 KConfigGroup grp = cfg->config();
56 script = grp.readEntry( ExecuteScriptPlugin::executableEntry, QUrl() );
57
58 // Do not pass err to splitLocalFileLaunchConfigurationEntry(), because it may be nonempty from the beginning.
59 QString initiallyEmptyErrorMessage;
60 splitLocalFileLaunchConfigurationEntry(
61 *cfg, script, LaunchConfigurationEntryName{"script path", i18nc("path to a script", "script path")},
62 initiallyEmptyErrorMessage);
63 if (initiallyEmptyErrorMessage.isEmpty()) {
64 return script;
65 }
66
67 err = std::move(initiallyEmptyErrorMessage);
68 return {};
69}
70
71QString ExecuteScriptPlugin::remoteHost(ILaunchConfiguration* cfg, QString& err) const
72{

Callers 1

ScriptAppJobMethod · 0.80

Calls 5

readEntryMethod · 0.80
QUrlClass · 0.70
configMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected