|
From: Markus B. <mba...@us...> - 2005-09-18 10:36:16
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.core.tests/src/org/rubypeople/rdt/debug/core/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6381/src/org/rubypeople/rdt/debug/core/tests Modified Files: TC_DebuggerCommunicationTest.java Log Message: avoid quotes in-I arguments for the ruby interpreter Index: TC_DebuggerCommunicationTest.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.core.tests/src/org/rubypeople/rdt/debug/core/tests/TC_DebuggerCommunicationTest.java,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** TC_DebuggerCommunicationTest.java 16 Sep 2005 20:53:04 -0000 1.32 --- TC_DebuggerCommunicationTest.java 18 Sep 2005 10:36:08 -0000 1.33 *************** *** 143,147 **** public void startRubyProcess() throws Exception { ! String cmd = TC_DebuggerCommunicationTest.RUBY_INTERPRETER + " -I " + createIncludeDir() + " -I" + getTmpDir().replace('\\', '/') + " -reclipseDebugVerbose.rb " + getRubyTestFilename(); System.out.println("Starting: " + cmd); process = Runtime.getRuntime().exec(cmd); --- 143,147 ---- public void startRubyProcess() throws Exception { ! String cmd = TC_DebuggerCommunicationTest.RUBY_INTERPRETER + " -I" + createIncludeDir() + " -I" + getTmpDir().replace('\\', '/') + " -reclipseDebugVerbose.rb " + getRubyTestFilename(); System.out.println("Starting: " + cmd); process = Runtime.getRuntime().exec(cmd); *************** *** 164,168 **** includeDir += "../../org.rubypeople.rdt.launching/ruby" ; } ! return '"' + includeDir + '"'; } --- 164,174 ---- includeDir += "../../org.rubypeople.rdt.launching/ruby" ; } ! // the ruby interpreter on linux does not like quotes, so we use them only if really necessary ! if (includeDir.indexOf(" ") == -1) { ! return includeDir ; ! } ! else { ! return '"' + includeDir + '"'; ! } } |