mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 573677: Mark methods that don't handle commands well as deprecated
Some of these commands work "by accident" on Windows, but there are lots
of special/corner cases that may not. On Linux they almost certainly
never do the correct thing when spaces are in arguments.
(follow up for 1557c2c4f5
)
Change-Id: I126d60423b0e4ff6d9d240d7de2c1a4905763415
This commit is contained in:
parent
a6e6be0457
commit
1ac907184b
3 changed files with 14 additions and 2 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: org.eclipse.cdt.core.native;singleton:=true
|
||||
Bundle-Version: 6.1.200.qualifier
|
||||
Bundle-Version: 6.1.300.qualifier
|
||||
Bundle-Activator: org.eclipse.cdt.internal.core.natives.CNativePlugin
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Localization: plugin
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<version>6.1.200-SNAPSHOT</version>
|
||||
<version>6.1.300-SNAPSHOT</version>
|
||||
<artifactId>org.eclipse.cdt.core.native</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
|
||||
|
|
|
@ -58,6 +58,10 @@ public class ProcessFactory {
|
|||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Do not use this method it splits command line arguments on whitespace with no regard to quoting rules. See Bug 573677
|
||||
*/
|
||||
@Deprecated
|
||||
public Process exec(String cmd) throws IOException {
|
||||
cmd = modifyCmdIfFlatpak(cmd);
|
||||
if (hasSpawner)
|
||||
|
@ -79,6 +83,10 @@ public class ProcessFactory {
|
|||
return runtime.exec(cmdarray, envp);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Do not use this method it splits command line arguments on whitespace with no regard to quoting rules. See Bug 573677
|
||||
*/
|
||||
@Deprecated
|
||||
public Process exec(String cmd, String[] envp) throws IOException {
|
||||
cmd = modifyCmdIfFlatpak(cmd);
|
||||
if (hasSpawner)
|
||||
|
@ -86,6 +94,10 @@ public class ProcessFactory {
|
|||
return runtime.exec(cmd, envp);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Do not use this method it splits command line arguments on whitespace with no regard to quoting rules. See Bug 573677
|
||||
*/
|
||||
@Deprecated
|
||||
public Process exec(String cmd, String[] envp, File dir) throws IOException {
|
||||
cmd = modifyCmdIfFlatpak(cmd);
|
||||
if (hasSpawner)
|
||||
|
|
Loading…
Add table
Reference in a new issue