Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Pontes2011-09-19 05:52:10 -0400
committerAnithra P Janakiraman2011-09-19 05:53:14 -0400
commit104be8caedb2f54a28a716d86803beb817101ea1 (patch)
tree63387b37b18fd143b9952e7c0925e995fdcb75ad /systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun
parent57f4406257bd1f361a7bc2ebf1fa67d338220761 (diff)
downloadorg.eclipse.linuxtools-104be8caedb2f54a28a716d86803beb817101ea1.tar.gz
org.eclipse.linuxtools-104be8caedb2f54a28a716d86803beb817101ea1.tar.xz
org.eclipse.linuxtools-104be8caedb2f54a28a716d86803beb817101ea1.zip
Fix Bug #351477
When SystemTap script is run with 'run w/Graph' option and the connection to remote host fails the wizard to continue with creation of graph appears in spite of the error message/failure https://bugs.eclipse.org/bugs/show_bug.cgi?id=351477 * systemtap/org.eclipse.linuxtools.systemtap.ui.consolelog/src/org/eclipse/linuxtools/systemtap/ui/consolelog/ScpClient.java * systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun/src/org/eclipse/linuxtools/systemtap/ui/graphicalrun/actions/RunScriptChartAction.java
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun')
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun/src/org/eclipse/linuxtools/systemtap/ui/graphicalrun/actions/RunScriptChartAction.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun/src/org/eclipse/linuxtools/systemtap/ui/graphicalrun/actions/RunScriptChartAction.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun/src/org/eclipse/linuxtools/systemtap/ui/graphicalrun/actions/RunScriptChartAction.java
index 3ee2175e31..19db18b746 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun/src/org/eclipse/linuxtools/systemtap/ui/graphicalrun/actions/RunScriptChartAction.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.graphicalrun/src/org/eclipse/linuxtools/systemtap/ui/graphicalrun/actions/RunScriptChartAction.java
@@ -81,15 +81,13 @@ public class RunScriptChartAction extends RunScriptAction implements IWorkbenchW
serverfileName = fileName.substring(fileName.lastIndexOf('/')+1);
tmpfileName="/tmp/"+ serverfileName;
scpclient.transfer(fileName,tmpfileName);
- }catch(Exception e){e.printStackTrace();}
-
- String[] script = buildScript();
-
- String[] envVars = getEnvironmentVariables();
-
-
+ }catch(Exception e){ continueRun = false;}
+ String[] script = null;
+
+ if(continueRun) script = buildScript();
if(continueRun) {
//createClientSession();
+ String[] envVars = getEnvironmentVariables();
ScriptConsole console = ScriptConsole.getInstance(serverfileName);
console.run(script, envVars, new PasswordPrompt(IDESessionSettings.password), new StapErrorParser());

Back to the top