|
From: <caw...@us...> - 2007-07-19 16:20:08
|
Revision: 2799
http://svn.sourceforge.net/rubyeclipse/?rev=2799&view=rev
Author: cawilliams
Date: 2007-07-19 09:19:59 -0700 (Thu, 19 Jul 2007)
Log Message:
-----------
check vmInstallLocation to see if "bin" is in it already. If so, don't add "bin" in path to rdebug-ide
Modified Paths:
--------------
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RDebugVMDebugger.java
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RDebugVMDebugger.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RDebugVMDebugger.java 2007-07-19 15:41:22 UTC (rev 2798)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RDebugVMDebugger.java 2007-07-19 16:19:59 UTC (rev 2799)
@@ -53,7 +53,11 @@
}
public static String findRDebugExecutable(File vmInstallLocation) {
- return vmInstallLocation + File.separator + "bin" + File.separator + RDEBUG_EXECUTABLE;
+ String path = vmInstallLocation.getAbsolutePath();
+ if (!vmInstallLocation.getName().equals("bin")) {
+ path += File.separator + "bin";
+ }
+ return path + File.separator + RDEBUG_EXECUTABLE;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|