Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgibly2006-08-01 04:36:08 -0400
committersgibly2006-08-01 04:36:08 -0400
commit08e759ff1d140a217165a0eb3034184e2b50a4d8 (patch)
tree2c63e1ed245f9841522d8feccce662ffc330d8cd
parent837542ebe422afc444cb09e7dafe57d3e1ce1915 (diff)
downloadorg.eclipse.pdt-08e759ff1d140a217165a0eb3034184e2b50a4d8.tar.gz
org.eclipse.pdt-08e759ff1d140a217165a0eb3034184e2b50a4d8.tar.xz
org.eclipse.pdt-08e759ff1d140a217165a0eb3034184e2b50a4d8.zip
Add .exe extension to the PHP binary path contributed via EP if we are on Windows (Michael).
-rw-r--r--plugins/org.eclipse.php.debug.core/src/org/eclipse/php/debug/core/preferences/PHPexes.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/debug/core/preferences/PHPexes.java b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/debug/core/preferences/PHPexes.java
index a92fb9c01..b97461f91 100644
--- a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/debug/core/preferences/PHPexes.java
+++ b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/debug/core/preferences/PHPexes.java
@@ -157,6 +157,10 @@ public class PHPexes {
String location = element.getAttribute(LOCATION_ATTRIBUTE);
String version = element.getAttribute(VERSION_ATTRIBUTE);
boolean isDefault = "true".equalsIgnoreCase(element.getAttribute(DEFAULT_ATTRIBUTE));
+
+ if(isWindows) {
+ location = location + ".exe"; //$NON-NLS-1$
+ }
String pluginId = element.getDeclaringExtension().getNamespaceIdentifier();
URL url = FileLocator.find(Platform.getBundle(pluginId), new Path(location), new HashMap());

Back to the top