Skip to content

Instantly share code, notes, and snippets.

@djberg96
Created June 28, 2012 16:48
Show Gist options
  • Save djberg96/3012443 to your computer and use it in GitHub Desktop.
Save djberg96/3012443 to your computer and use it in GitHub Desktop.
Trouble with JRuby and Rake::TestTask#loader option
C:\Users\djberge\Repositories\win32-sound>jruby -S rake --trace
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
c:/jruby/bin/jruby.exe -w -I"lib" "test/test*.rb"
Error opening script file: C:/Users/djberge/Repositories/win32-sound/test/test*.rb (The fi
lename, directory name, or volume label syntax is incorrect)
rake aborted!
Command failed with status (1): [c:/jruby/bin/jruby.exe -w -I"lib" "test/t...]
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `create_shell_ru
nner'
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:220:in `call'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:43:in `sh'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:82:in `ruby'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:43:in `ruby'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/testtask.rb:99:in `define'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in `verbose'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/testtask.rb:98:in `define'
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:220:in `call'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
org/jruby/RubyArray.java:1615:in `each'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_cha
in'
c:/jruby/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_cha
in'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites
'
org/jruby/RubyArray.java:1615:in `each'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites
'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_cha
in'
c:/jruby/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_cha
in'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
org/jruby/RubyArray.java:1615:in `each'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exce
ption_handling'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exce
ption_handling'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
c:/jruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33:in `(root)'
org/jruby/RubyKernel.java:1058:in `load'
c:/jruby/bin/rake:23:in `(root)'
Tasks: TOP => default => test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment