public static String quote(String s){
  s=s.replaceAll("\"","\\\\\"");
  return '"' + s + '"';
}

public static String quote ( String s ) { s = s . replaceAll ( "\"" , "\\\\\"" ) ; return '"' + s + '"' ; }
note : the policy for quoting must match the unquoting policy used by eclipse ' s debugplugin . argumentprocessor .
