| CODENOTIFIER | HelpYou are not signed inSign in |
Project: RadRails1.0
Revision: 14447
Author: cwilliams
Date: 26 Jun 2008 16:27:38
Changes:Possible fix for ROR-821 - Can't run all tests anymore
Looks like we were setting the "jruby.script" System property to the full executable path rather than just the filename.
Which when executing the Kernel system method to launch other ruby processes was resulting in a badly built path to execute the same script the current ruby file is executing under (basically we'd give full path to the bin dir, then append full path to file inside bin dir)
| ... | ...@@ -195,7 +195,7 @@ | |
| 195 | 195 | string.add("-Djruby.shell=\"cmd.exe\""); |
| 196 | 196 | else |
| 197 | 197 | string.add("-Djruby.shell=/bin/sh"); |
| 198 | string.add("-Djruby.script=\"" + exe.getAbsolutePath() + "\""); | |
| 198 | string.add("-Djruby.script=\"" + exe.getName() + "\""); | |
| 199 | 199 | string.add("org.jruby.Main"); |
| 200 | 200 | return string; |
| 201 | 201 | } |