To compile and run the tests with MRI:
$ gem install hoe rake-compiler racc rexical
$ rake
To compile and run the tests with JRuby
$ gem install racc rexical
$ jgem install hoe rake-compiler
$ jruby -S rake
To package the MRI gem:
$ rake package
To package the JRuby gem:
$ jruby -S rake package
I'll work to remove the dependency on C Ruby for the JRuby build
process, but it isn't really high on my priority list.
--
Aaron Patterson
http://tenderlovemaking.com/
This looks simple and consistent to CRuby version.
I confirmed this worked with JRuby.
>
> To package the MRI gem:
>
> $ rake package
>
> To package the JRuby gem:
>
> $ jruby -S rake package
But, this seems not to work.
cp tmp/java/nokogiri/nokogiri.jar lib/nokogiri.jar
rake aborted!
Don't know how to build task 'pkg/nokogiri-1.5.0.beta.3-java'
(See full trace by running task with --trace)
https://gist.github.com/799442 is the output with --trace option
-Yoko
>
> I'll work to remove the dependency on C Ruby for the JRuby build
> process, but it isn't really high on my priority list.
>
> --
> Aaron Patterson
> http://tenderlovemaking.com/
>
> --
> You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
> To post to this group, send email to nokogi...@googlegroups.com.
> To unsubscribe from this group, send email to nokogiri-tal...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nokogiri-talk?hl=en.
>
>
What version of hoe are you using? It may be a bug in hoe, and we
need to require a newer version.
I updated hoe to 2.8.0, but no difference.
I'm suspecting the gem name. I have nokogiri-1.5.0.beta.3.gem, but the
error message says 'pkg/nokogiri-1.5.0.beta.3-java'
Maybe, the suffix "-java" should be deleted.
-Yoko
>
> --
> Aaron Patterson
> http://tenderlovemaking.com/
>
Sorry, I forgot to push a commit. It should work now. :-)
Aaron, it still doesn't work.
I freshly cloned out and tried rake. It was worse. Somewhat rake
expects nokogiri.jar is created in lib/nokogiri/nokogiri.jar, but
actually, nokogiri.jar was created in lib/nokogiri.jar. I wonder you
have old nokogiri.jar in your lib/nokogiri/nokogiri.jar. The file size
of released version of nokogiri.jar is not the same as freshly
compiled one.
Maybe something is different from your repo and mine. Every time I run
rake, I get the warning, WARNING: Could not perform some
cross-compiling: No MinGW tools or unknown setup platform? Do you see
this warning?
-Yoko
>
> --
> Aaron Patterson
> http://tenderlovemaking.com/
>
Oops, I'm really sorry. I just pushed again. Please try the latest master.
> Maybe something is different from your repo and mine. Every time I run
> rake, I get the warning, WARNING: Could not perform some
> cross-compiling: No MinGW tools or unknown setup platform? Do you see
> this warning?
I don't get that warning, but I have the cross compile toolchain
installed. If you don't install cross compile tools, then you'll see
that warning. But if you don't need to cross compile, then don't
worry about it.
Thanks. Now, "jruby -S rake" worked. But, "jruby -S rake package"
still doesn't work.
jruby -S rake package
(in /Users/yoko/Works/nokogiri/package-test/nokogiri)
warning: couldn't activate the debugging plugin, skipping
warning: couldn't activate the git plugin, skipping
warning: couldn't activate the gemspec plugin, skipping
WARNING: Could not perform some cross-compiling: No MinGW tools or
unknown setup platform?
cp tmp/java/nokogiri/nokogiri.jar lib/nokogiri/nokogiri.jar
rake aborted!
Don't know how to build task 'pkg/nokogiri-1.5.0.beta.4-java'
(See full trace by running task with --trace)
This task worked with CRuby, though.
>
>> Maybe something is different from your repo and mine. Every time I run
>> rake, I get the warning, WARNING: Could not perform some
>> cross-compiling: No MinGW tools or unknown setup platform? Do you see
>> this warning?
>
> I don't get that warning, but I have the cross compile toolchain
> installed. If you don't install cross compile tools, then you'll see
> that warning. But if you don't need to cross compile, then don't
> worry about it.
I understood. I'll ignore this warning.
-Yoko
>
> --
> Aaron Patterson
> http://tenderlovemaking.com/
>
Sorry this keeps breaking for you Yoko. I *think* rake-compiler
defines the 'pkg/nokogiri-1.5.0.beta.4-java' task. I'm running:
[apatterson@higgins ~]$ gem list rake-compiler hoe
*** LOCAL GEMS ***
rake-compiler (0.7.1, 0.7.0)
[apatterson@higgins ~]$ gem list hoe
*** LOCAL GEMS ***
hoe (2.8.0, 2.6.2, 2.6.0)
hoe-debugging (1.0.1)
hoe-gemspec (1.0.0)
hoe-git (1.3.0)
hoe-seattlerb (1.2.2)
[apatterson@higgins ~]$
What versions do you have?
I'm going to write what caused this problem for people who are
watching this thread.
The difference between Aaron's and my environment was JRuby's version.
I was using JRuby 1.6.0RC1, but Aaron was not. When I switched to
JRuby 1.5.5, rake package worked fine. It is JRuby's regression. I
filed this issue, http://jira.codehaus.org/browse/JRUBY-5438
For sure, JRuby 1.6.0RC1 is fine to *use* Nokogiri as well as compile it.
-Yoko
>
> --
> Aaron Patterson
> http://tenderlovemaking.com/
>