|
From: <caw...@us...> - 2007-07-19 19:56:58
|
Revision: 2804
http://svn.sourceforge.net/rubyeclipse/?rev=2804&view=rev
Author: cawilliams
Date: 2007-07-19 12:56:35 -0700 (Thu, 19 Jul 2007)
Log Message:
-----------
fix test
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-07-19 19:07:17 UTC (rev 2803)
+++ trunk/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launching/TC_RunnerLaunching.java 2007-07-19 19:56:35 UTC (rev 2804)
@@ -90,6 +90,9 @@
buffer.append(new Path(StandardVMDebugger.getDirectoryOfRubyDebuggerFile()).toOSString());
if (Platform.getOS().equals(Platform.OS_WIN32))
buffer.append("\"");
+ }
+ addSyncArgs(buffer);
+ if (debug) {
buffer.append(" -r");
buffer.append(debugFile);
buffer.append(" -rclassic-debug");
@@ -103,6 +106,16 @@
return buffer.toString();
}
+ private void addSyncArgs(StringBuffer buffer) {
+ buffer.append(" -I ");
+ if (Platform.getOS().equals(Platform.OS_WIN32))
+ buffer.append("\"");
+ buffer.append(LaunchingPlugin.getFileInPlugin(new Path("ruby/sync.rb")).getParent());
+ if (Platform.getOS().equals(Platform.OS_WIN32))
+ buffer.append("\"");
+ buffer.append(" -rsync.rb");
+ }
+
public void testDebugEnabled() throws Exception {
// check if debugging is enabled in plugin.xml
ILaunchConfigurationType launchConfigurationType = getLaunchManager().getLaunchConfigurationType(IRubyLaunchConfigurationConstants.ID_RUBY_APPLICATION);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|