Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-09-22 11:04:00 -0400
committerUwe Stieber2012-09-22 11:04:00 -0400
commitbd7ea3854de6b5c022c2437de42ae14245bcd682 (patch)
tree7f224e41b59aba91e60fd46eb48526e0686a2785 /target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core
parentce006c80cfc25066b0d136386813c6ac7ba3017a (diff)
downloadorg.eclipse.tcf-bd7ea3854de6b5c022c2437de42ae14245bcd682.tar.gz
org.eclipse.tcf-bd7ea3854de6b5c022c2437de42ae14245bcd682.tar.xz
org.eclipse.tcf-bd7ea3854de6b5c022c2437de42ae14245bcd682.zip
Target Explorer: Allow to force the use of the IProcesses service despite the availability of IProcessesV1 via -DprocessLauncher.force.IProcesses=true
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
index 1a58c5901..b1b1eefba 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/launcher/ProcessLauncher.java
@@ -410,9 +410,13 @@ public class ProcessLauncher extends PlatformObject implements IProcessLauncher
return;
}
+ // Check if the user wants to force the use of the IProcesses service
+ String property = System.getProperty("processLauncher.force.IProcesses"); //$NON-NLS-1$
+ boolean forceIProcesses = property != null ? Boolean.parseBoolean(property) : false;
+
// Get the process and streams services. Try the V1 processes service first
// before falling back to the standard processes service.
- svcProcesses = channel.getRemoteService(IProcessesV1.class);
+ if (!forceIProcesses) svcProcesses = channel.getRemoteService(IProcessesV1.class);
if (svcProcesses == null) svcProcesses = channel.getRemoteService(IProcesses.class);
if (svcProcesses == null) {
IStatus status = new Status(IStatus.ERROR, CoreBundleActivator.getUniqueIdentifier(),

Back to the top