Thanks a lot.
Seems there is no rawr1.3 gem from rubyforge. I'm not sure how to update my local rawr1.2 to 1.3 manually. Would you please point out some directions?
I simply comment out the "Rawr::JRubyRelease.get 'stable', 'lib/java'" in \jruby-1.1.6\lib\ruby\gems\1.8\gems\rawr-1.2\bin\rawr to avoid download jruby-complete.jar
Thank you. You are so warmhearted.
Thanks a lot.
Seems there is no rawr1.3 gem from rubyforge. I'm not sure how to update my local rawr1.2 to 1.3 manually. Would you please point out some directions?
I simply comment out the "Rawr::JRubyRelease.get 'stable', 'lib/java'" in \jruby-1.1.6\lib\ruby\gems\1.8\gems\rawr-1.2\bin\rawr to avoid download jruby-complete.jar
Thanks, I will try it this evening.
Since this is my last working day with PHP, I must cleanup some unfinished work first. Wish I can get a new full time soho job with JRuby or ruby. It seems more interesting than PHP.
Thanks again.
I cannot create the gem file on my windows 2008 server system. Got the error:
Z:\dev\myworks\java\jruby\rawr\mainline>jruby -S rake gem --trace
(in Z:/dev/myworks/java/jruby/rawr/mainline)
rake aborted!
undefined method `gem' for main:Object
Z:/dev/myworks/java/jruby/rawr/mainline/rakefile:5
Z:/dev/myworks/java/jruby/rawr/mainline/rakefile:2349:in `load'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2349:in `raw_load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1985:in `load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1984:in `load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1969:in `run'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1967:in `run'
Z:\dev\java\jruby\jruby-1.1.6\bin\..\bin\rake:32
I'm new to JRuby. Can only wait for your new version of gem now.
Is there what special test need on windows platform? Maybe I can help a little.
Thanks for your help.
Yes, I have already added require 'rubygems' to the top of the rakefile yesterday when I trying to make the gem file. But still got some error msg. I cannot figure it out. I saw the lib/rawr_version.rb, it's 1.3.1 version. May it because of my java is amd64-java? Detailed below:
Z:\dev\myworks\java\jruby\rawr\mainline>jruby -v
jruby 1.1.6 (ruby 1.8.6 patchlevel 114) (2008-12-17 rev 8388) [amd64-java]
Z:\dev\myworks\java\jruby\rawr\mainline>jruby -S gem list
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
ActiveRecord-JDBC (0.5)
activerecord-jdbc-adapter (0.9)
activerecord-jdbcmysql-adapter (0.9)
activeresource (2.2.2)
activesupport (2.2.2)
BlueCloth (1.0.0)
capistrano (2.5.4)
capistrano-ext (1.2.1)
cgi_multipart_eof_fix (2.5.0)
facets (2.5.0)
gem_plugin (0.2.3)
highline (1.5.0)
hpricot (0.6.164)
httparty (0.3.1)
jdbc-mysql (5.0.4)
jruby-openssl (0.3)
mongrel (1.1.5)
mongrel_jcluster (0.0.1)
monkeybars (1.0.1)
net-scp (1.0.2)
net-sftp (2.0.2)
net-ssh (2.0.10)
net-ssh-gateway (1.0.1)
profligacy (1.0)
rails (2.2.2)
rake (0.8.3)
rawr (1.2)
rdoc (2.4.1)
RedCloth (4.1.1)
rspec (1.1.11)
rubyzip (0.9.1)
sources (0.0.1)
twitter (0.4.2)
warbler (0.9.12)
Z:\dev\myworks\java\jruby\rawr\mainline>jruby -S rake gem --trace
(in Z:/dev/myworks/java/jruby/rawr/mainline)
rake aborted!
wrong # of arguments(11 for 1)
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:87:in `include_class'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:87:in `java_import'
tasks/setup.rb:116
tasks/setup.rb:9:in `load'
Z:/dev/myworks/java/jruby/rawr/mainline/rakefile:9
Z:/dev/myworks/java/jruby/rawr/mainline/rakefile:2349:in `load'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2349:in `raw_load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1985:in `load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1984:in `load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1969:in `run'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1967:in `run'
Z:\dev\java\jruby\jruby-1.1.6\bin\..\bin\rake:32
Z:\dev\myworks\java\jruby\rawr\mainline>
Thanks for your patience. I want to do something what I really interested in. I would be very happy if I can help a little.
Yes, I have already added require 'rubygems' to the top of the rakefile yesterday when I trying to make the gem file. But still got some error msg. I cannot figure it out. I saw the lib/rawr_version.rb, it's 1.3.1 version. May it because of my java is amd64-java? Detailed below:
Z:\dev\myworks\java\jruby\rawr\mainline>jruby -v
jruby 1.1.6 (ruby 1.8.6 patchlevel 114) (2008-12-17 rev 8388) [amd64-java]
Still failed with the latest file: Detailed below with --trace output:
Seems died on making pkg/rawr-1.3.1.tgz...
.......(lines of output omitted)....
** Invoke test/unit/spec_helpers.rb (not_needed)
** Invoke test/unit/web_bundler_spec.rb (not_needed)
** Execute pkg/rawr-1.3.1.tgz
cd pkg
env
rake aborted!
Command failed with status (127): [env...]
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:971:in `sh'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:984:in `call'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:984:in `sh'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1076:in `sh'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake/packagetask.rb:125:in `define'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/1.8/fileutils.rb:121:in `chdir'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/1.8/fileutils.rb:121:in `cd'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1076:in `chdir'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake/packagetask.rb:124:in `define'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:617:in `call'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:617:in `execute'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:612:in `each'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:612:in `execute'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:578:in `invoke_with_call_chain'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:571:in `invoke_with_call_chain'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:588:in `invoke_prerequisites'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:585:in `each'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:585:in `invoke_prerequisites'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:577:in `invoke_with_call_chain'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:571:in `invoke_with_call_chain'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:588:in `invoke_prerequisites'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:585:in `each'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:585:in `invoke_prerequisites'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:577:in `invoke_with_call_chain'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:571:in `invoke_with_call_chain'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:564:in `invoke'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2019:in `invoke_task'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1997:in `top_level'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1997:in `each'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1997:in `top_level'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1991:in `top_level'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1970:in `run'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1967:in `run'
Z:\dev\java\jruby\jruby-1.1.6\bin\..\bin\rake:32
Z:\dev\myworks\java\jruby\rawr\mainline>
Still failed with the latest file: Detailed below with --trace output:
Seems died on making pkg/rawr-1.3.1.tgz...
.......(lines of output omitted)....
** Invoke test/unit/spec_helpers.rb (not_needed)
** Invoke test/unit/web_bundler_spec.rb (not_needed)
** Execute pkg/rawr-1.3.1.tgz
cd pkg
env
Still not work on my windows 2008 server....Error msg below: I have already added an empty jruby_fetch.rb to the root of the demo project.
Z:\dev\myworks\java\jruby\hello>jruby -S rake rawr:jar --trace
(in Z:/dev/myworks/java/jruby/hello)
rake aborted!
no such file to load -- rawr
Z:/dev/myworks/java/jruby/hello/rakefile:1:in `require'
Z:/dev/myworks/java/jruby/hello/rakefile:1
Z:/dev/myworks/java/jruby/hello/rakefile:2349:in `load'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2349:in `raw_load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1985:in `load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1984:in `load_rakefile'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1969:in `run'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:2036:in `standard_exception_handling'
Z:/dev/java/jruby/jruby-1.1.6/bin/../lib/ruby/site_ruby/1.8/rake.rb:1967:in `run'
Z:\dev\java\jruby\jruby-1.1.6\bin\..\bin\rake:32
Z:\dev\myworks\java\jruby\hello>
Still not work on my windows 2008 server....Error msg below: I have already added an empty jruby_fetch.rb to the root of the demo project.
Z:\dev\myworks\java\jruby\hello>jruby -S rake rawr:jar --trace
(in Z:/dev/myworks/java/jruby/hello)
rake aborted!
no such file to load -- rawr
Yes, I unistalled all the rawr(both 1.2 and 1.3.1), then rename that gem to rawr-1.3.1.gem and installed again. But still the same error. See the gem list below.
Z:\dev\myworks\java\jruby\hello>jruby -S gem list -l rawr
*** LOCAL GEMS ***
rawr (1.3.1)
Z:\dev\myworks\java\jruby\hello>jruby -S rake rawr:jar
(in Z:/dev/myworks/java/jruby/hello)
rake aborted!
no such file to load -- rawr
Z:/dev/myworks/java/jruby/hello/rakefile:1:in `require'(See full trace by running task with --trace)
Yes, it's begin to work now by adding require 'rubygems' to the beginning of my project's Rakefile. But still not successfully. Detailed below. Seems died on ** Execute rawr:compile_ruby_classes. Thanks for your patient directions.
I think you can push require 'rubygems' on top of require 'rawr', isn't it?
Z:\dev\myworks\java\jruby\hello>jruby -S rake rawr:jar --trace
Does git now have the rb file compilation changes?
Still seems to hit one file at a time after rawr:clean
--
James Britt
www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
Late-ish morning.
I just pulled again and got "already up to date"
Great. This time it really worked. But your gem file seems lost lib/command.rb. I just add it to the gems lib. Then it works well now.
Thanks.
By the way, when I git pull. I saw there is a lib/compiler.rb file in the output of the git pull. But I cannot find this file in lib/. What's the reason I cannot see it?
Fast forward
lib/command.rb | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
lib/compiler.rb | 5 ----
2 files changed, 68 insertions(+), 5 deletions(-)
Thanks again.
Great. This time it really worked. But your gem file seems lost lib/command.rb. I just add it to the gems lib. Then it works well now.
Thanks.
By the way, when I git pull. I saw there is a lib/compiler.rb file in the output of the git pull. But I cannot find this file in lib/. What's the reason I cannot see it?
Fast forward
lib/command.rb | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
lib/compiler.rb | 5 ----
2 files changed, 68 insertions(+), 5 deletions(-)
It was. I just did a git pull, and a reinstall of the gem and it's much
faster now. Less than a minute.
Thanks.