|
From: <caw...@us...> - 2007-09-14 21:31:58
|
Revision: 3187
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3187&view=rev
Author: cawilliams
Date: 2007-09-14 14:31:57 -0700 (Fri, 14 Sep 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMRunner.java
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMRunner.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMRunner.java 2007-09-14 21:30:48 UTC (rev 3186)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMRunner.java 2007-09-14 21:31:57 UTC (rev 3187)
@@ -167,10 +167,12 @@
}
// HACK FIXME This is just to allow for jruby!
String path = installLocation + "bin" + File.separatorChar + "j" + command; //$NON-NLS-1$ //$NON-NLS-2$
- exe = new File(path + ".bat"); //$NON-NLS-1$
- if (fileExists(exe)){
- string.add(exe.getAbsolutePath());
- return string;
+ if (Platform.getOS().equals(Platform.OS_WIN32)) {
+ exe = new File(path + ".bat"); //$NON-NLS-1$
+ if (fileExists(exe)){
+ string.add(exe.getAbsolutePath());
+ return string;
+ }
}
exe = new File(path);
if (fileExists(exe)){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|