|
From: <caw...@us...> - 2007-02-23 20:18:12
|
Revision: 2023
http://svn.sourceforge.net/rubyeclipse/?rev=2023&view=rev
Author: cawilliams
Date: 2007-02-23 12:18:11 -0800 (Fri, 23 Feb 2007)
Log Message:
-----------
another try to get this test working on the build machine (and this win32 machine)
Modified Paths:
--------------
trunk/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launching/TC_RunnerLaunching.java
Modified: trunk/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launching/TC_RunnerLaunching.java
===================================================================
--- trunk/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launching/TC_RunnerLaunching.java 2007-02-23 19:57:57 UTC (rev 2022)
+++ trunk/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launching/TC_RunnerLaunching.java 2007-02-23 20:18:11 UTC (rev 2023)
@@ -12,6 +12,7 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
@@ -34,7 +35,7 @@
private final static String PROJECT_NAME = "Simple Project";
private final static String RUBY_LIB_DIR = "someRubyDir"; // dir inside
- // project
+ // project
private final static String RUBY_FILE_NAME = "rubyFile.rb";
private final static String INTERPRETER_ARGUMENTS = "interpreter Arguments";
private final static String PROGRAM_ARGUMENTS = "programArguments";
@@ -86,12 +87,15 @@
buffer.append(project.getLocation().toOSString());
buffer.append("\"");
if (debug) {
- buffer.append(" -I \"");
+ buffer.append(" -I ");
+ if (Platform.getOS().equals(Platform.OS_WIN32))
+ buffer.append("\"");
buffer.append(new Path(StandardVMDebugger.getDirectoryOfRubyDebuggerFile()).toOSString());
- buffer.append("\"");
+ if (Platform.getOS().equals(Platform.OS_WIN32))
+ buffer.append("\"");
buffer.append(" -r");
buffer.append(debugFile);
- buffer.append(" -rclassic-debug");
+ buffer.append(" -rclassic-debug");
}
buffer.append(" -- ");
buffer.append(RUBY_LIB_DIR);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|