|
From: David C. <dc...@us...> - 2005-09-22 00:50:11
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4195/src/org/rubypeople/rdt/internal/ui/infoviews Modified Files: RIView.java Log Message: Changed exec to use alternate exec call. Index: RIView.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/infoviews/RIView.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** RIView.java 21 Sep 2005 21:06:32 -0000 1.9 --- RIView.java 22 Sep 2005 00:50:02 -0000 1.10 *************** *** 239,244 **** } } ! protected String getArgString() { ! return "--no-pager -l "; } }; --- 239,248 ---- } } ! ! protected List getArgList() { ! List args = new ArrayList(); ! args.add("--no-pager"); ! args.add("-l"); ! return args; } }; *************** *** 289,294 **** private RubyInvoker invoker = new RubyInvoker() { ! protected String getArgString() { ! return "--no-pager -f html " + searchValue; } --- 293,303 ---- private RubyInvoker invoker = new RubyInvoker() { ! protected List getArgList() { ! ArrayList args = new ArrayList(); ! args.add("--no-pager"); ! args.add("-f"); ! args.add("html"); ! args.add(searchValue); ! return args; } *************** *** 337,341 **** private abstract class RubyInvoker { ! protected abstract String getArgString(); protected abstract void handleOutput(Process process); protected void beforeInvoke(){} --- 346,350 ---- private abstract class RubyInvoker { ! protected abstract List getArgList(); protected abstract void handleOutput(Process process); protected void beforeInvoke(){} *************** *** 360,364 **** try { ! final Process p = RubyRuntime.getDefault().getSelectedInterpreter().exec("\"" + riPath.toString() + "\" " + getArgString(), null); handleOutput(p); } catch (CoreException coreException) { --- 369,375 ---- try { ! List args = getArgList(); ! args.add(0, riPath.toString()); ! final Process p = RubyRuntime.getDefault().getSelectedInterpreter().exec(args, null); handleOutput(p); } catch (CoreException coreException) { |