Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2007-09-18 11:24:35 -0400
committerDoug Schaefer2007-09-18 11:24:35 -0400
commit8b988eb1547049e59c946ec0f068f403d1b79bd8 (patch)
tree50cb75005e8d39971590ca651d142a0c58afe9f7 /build/org.eclipse.cdt.managedbuilder.core.tests
parentc46d827e899dfe36c79018c40153eb8e24b1b41b (diff)
downloadorg.eclipse.cdt-8b988eb1547049e59c946ec0f068f403d1b79bd8.tar.gz
org.eclipse.cdt-8b988eb1547049e59c946ec0f068f403d1b79bd8.tar.xz
org.eclipse.cdt-8b988eb1547049e59c946ec0f068f403d1b79bd8.zip
Stop using the Spawner when you don't need interrupt(). CygPath has been hanging when the underlying utility failed. Bug 156315 is once case of this.
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.core.tests')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/DiffUtil.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/DiffUtil.java b/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/DiffUtil.java
index 5223edcc48..383c1fe336 100644
--- a/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/DiffUtil.java
+++ b/build/org.eclipse.cdt.managedbuilder.core.tests/suite/org/eclipse/cdt/managedbuilder/testplugin/DiffUtil.java
@@ -16,8 +16,6 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
-import org.eclipse.cdt.utils.spawner.ProcessFactory;
-
public class DiffUtil {
private static final String DIFF_CMD = "diff -ub";
private static DiffUtil fInstance;
@@ -75,7 +73,7 @@ public class DiffUtil {
private InputStream invokeDiff(String location1, String location2){
try {
- Process p = ProcessFactory.getFactory().exec(createCommand(location1, location2));
+ Process p = Runtime.getRuntime().exec(createCommand(location1, location2));
return p.getInputStream();
} catch (IOException e) {
// TODO Auto-generated catch block

Back to the top