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 5223edcc485..383c1fe3369 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 diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/CygPath.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/CygPath.java index 94723cd59a9..1670fd37e59 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/CygPath.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/CygPath.java @@ -16,7 +16,6 @@ import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; -import org.eclipse.cdt.utils.spawner.ProcessFactory; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Platform; @@ -33,7 +32,7 @@ public class CygPath { // Don't run this on non-windows platforms throw new IOException("Not Windows"); //$NON-NLS-1$ String[] args = {command, "--windows", "--file", "-"}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - cygpath = ProcessFactory.getFactory().exec(args); + cygpath = Runtime.getRuntime().exec(args); stdin = new BufferedWriter(new OutputStreamWriter(cygpath.getOutputStream())); stdout = new BufferedReader(new InputStreamReader(cygpath.getInputStream())); try { @@ -81,7 +80,7 @@ public class CygPath { Process cygPath = null; BufferedReader reader = null; try { - cygPath = ProcessFactory.getFactory().exec(new String[]{"cygpath", "-w", path}); //$NON-NLS-1$ //$NON-NLS-2$ + cygPath = Runtime.getRuntime().exec(new String[]{"cygpath", "-w", path}); //$NON-NLS-1$ //$NON-NLS-2$ reader = new BufferedReader(new InputStreamReader(cygPath.getInputStream())); String newPath = reader.readLine(); IPath ipath;