|
From: <caw...@us...> - 2007-03-06 23:34:26
|
Revision: 2100
http://svn.sourceforge.net/rubyeclipse/?rev=2100&view=rev
Author: cawilliams
Date: 2007-03-06 15:34:22 -0800 (Tue, 06 Mar 2007)
Log Message:
-----------
more tweaking to the stdout/stderr sync stuff - need to set $0 to the first argument in addition to 'load'ing it (otherwise common idiom of "if __FILE__ == $0" doesn't work)
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-03-06 23:33:26 UTC (rev 2099)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMRunner.java 2007-03-06 23:34:22 UTC (rev 2100)
@@ -201,7 +201,7 @@
arguments.add("-e");
arguments.add("STDERR.sync=true");
arguments.add("-e");
- arguments.add("load(ARGV.shift)");
+ arguments.add("load($0=ARGV.shift)");
String[] lp= config.getLoadPath();
if (lp.length > 0) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|