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.

Change-Id: Idce714da9c1d6ac7a67dc174d5b30bf619534c53
diff --git a/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/spawner/Spawner.java b/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/spawner/Spawner.java
index 0f49b5e..c8598b0 100644
--- a/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/spawner/Spawner.java
+++ b/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/spawner/Spawner.java
@@ -72,6 +72,10 @@
 	InputStream err;
 	private PTY fPty;
 
+	/**
+	 * @deprecated Do not use this method it splits command line arguments on whitespace with no regard to quoting rules. See Bug 573677
+	 */
+	@Deprecated
 	public Spawner(String command, boolean bNoRedirect) throws IOException {
 		StringTokenizer tokenizer = new StringTokenizer(command);
 		String[] cmdarray = new String[tokenizer.countTokens()];
@@ -104,7 +108,9 @@
 
 	/**
 	 * Executes the specified string command in a separate process.
-	 **/
+	 * @deprecated Do not use this method it splits command line arguments on whitespace with no regard to quoting rules. See Bug 573677
+	 */
+	@Deprecated
 	protected Spawner(String command) throws IOException {
 		this(command, null);
 	}
@@ -127,7 +133,9 @@
 	/**
 	 * Executes the specified string command in a separate process with the specified
 	 * environment.
-	 **/
+	 * @deprecated Do not use this method it splits command line arguments on whitespace with no regard to quoting rules. See Bug 573677
+	 */
+	@Deprecated
 	protected Spawner(String cmd, String[] envp) throws IOException {
 		this(cmd, envp, null);
 	}
@@ -135,7 +143,9 @@
 	/**
 	 * Executes the specified string command in a separate process with the specified
 	 * environment and working directory.
-	 **/
+	 * @deprecated Do not use this method it splits command line arguments on whitespace with no regard to quoting rules. See Bug 573677
+	 */
+	@Deprecated
 	protected Spawner(String command, String[] envp, File dir) throws IOException {
 		StringTokenizer tokenizer = new StringTokenizer(command);
 		String[] cmdarray = new String[tokenizer.countTokens()];