|
From: David C. <dc...@us...> - 2005-07-29 23:58:24
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29701/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: Fix launching of debugger by using fully qualified path. Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** RubyCore.java 30 Mar 2005 01:57:05 -0000 1.8 --- RubyCore.java 29 Jul 2005 23:58:14 -0000 1.9 *************** *** 250,255 **** if (prefixLength == -1) { throw new RuntimeException("Location of launching bundle does not contain @: " + location); } String pluginDir = location.substring(prefixLength + 1); ! if (!new File(pluginDir).exists()) { throw new RuntimeException("Expected directory of eclipseDebug.rb does not exist: " + pluginDir); } ! return pluginDir; } --- 250,256 ---- if (prefixLength == -1) { throw new RuntimeException("Location of launching bundle does not contain @: " + location); } String pluginDir = location.substring(prefixLength + 1); ! File pluginDirFile = new File(pluginDir); ! if (!pluginDirFile.exists()) { throw new RuntimeException("Expected directory of eclipseDebug.rb does not exist: " + pluginDir); } ! return pluginDirFile.getAbsolutePath()+"/"; } |