diff options
author | eutarass | 2009-04-20 23:49:11 +0000 |
---|---|---|
committer | eutarass | 2009-04-20 23:49:11 +0000 |
commit | 808a9d17719c7612afe551aea5796a481653a6ab (patch) | |
tree | 17d59ca26d18136ce50c09c8772c53ebd3d61339 /plugins/org.eclipse.tm.tcf.debug.ui | |
parent | 851bca5c584001206952e2bfcec8f3ae1a38f6b3 (diff) | |
download | org.eclipse.tcf-808a9d17719c7612afe551aea5796a481653a6ab.tar.gz org.eclipse.tcf-808a9d17719c7612afe551aea5796a481653a6ab.tar.xz org.eclipse.tcf-808a9d17719c7612afe551aea5796a481653a6ab.zip |
Updated files on TCF update site
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug.ui')
-rw-r--r-- | plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/setup/WizardLogPage.java | 46 |
1 files changed, 35 insertions, 11 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/setup/WizardLogPage.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/setup/WizardLogPage.java index 687e6bd37..8f14cd77e 100644 --- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/setup/WizardLogPage.java +++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/setup/WizardLogPage.java @@ -149,18 +149,42 @@ class WizardLogPage extends WizardPage implements Runnable { } if (url == null) throw new Exception("Unsupported target OS or CPU"); - send("uudecode", true); - send("begin-base64 644 " + fnm, true); - InputStream inp = url.openStream(); - byte[] buf = new byte[0x100 * 3]; - for (;;) { - int len = inp.read(buf); - if (len < 0) break; - send(new String(Base64.toBase64(buf, 0, len)), false); - } - send("====", true); + send("which base64", true); s = waitPrompt(); - if (s.length() > 0) throw new Exception(s); + if (s.indexOf(':') < 0) { + send("base64 -d >" + fnm, true); + InputStream inp = url.openStream(); + byte[] buf = new byte[0x100 * 3]; + for (;;) { + int len = inp.read(buf); + if (len < 0) break; + send(new String(Base64.toBase64(buf, 0, len)), false); + } + send("\004", true); + s = waitPrompt(); + if (s.length() > 0) throw new Exception(s); + } + else { + send("which uudecode", true); + s = waitPrompt(); + if (s.indexOf(':') < 0) { + send("uudecode", true); + send("begin-base64 644 " + fnm, true); + InputStream inp = url.openStream(); + byte[] buf = new byte[0x100 * 3]; + for (;;) { + int len = inp.read(buf); + if (len < 0) break; + send(new String(Base64.toBase64(buf, 0, len)), false); + } + send("====", true); + s = waitPrompt(); + if (s.length() > 0) throw new Exception(s); + } + else { + throw new Exception("No base64 or uudecode commands available"); + } + } send("rpm -e tcf-agent", true); waitPrompt(); send("rpm -i " + fnm, true); |