Skip to content

Problems with external gems on Windows #73

@rockyallen

Description

@rockyallen

I want to use asciidoctor-bibtex with asciidoctor-ant, so I have put the dependencies in a local folder and tried:

 <asciidoctor:convert ...
    safemode="unsafe"
    gemPaths="${basedir}/gems/">
    <attribute key="bibtex-file" value="${basedir}/shared/references.bib"/>
    <require name="bibtex-ruby-4.4.7"/>
    <require name="citeproc-1.0.9"/>
    <require name="citeproc-ruby-1.1.10"/>
    <require name="csl-1.5.0"/>
    <require name="csl-styles-1.0.1.8"/>
    <require name="latex-decode-0.3.1"/>
    <require name="namae-1.0.1"/>
    <require name="asciidoctor-bibtex-0.3.1"/>
  </asciidoctor:convert>

Which gives:

org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- bibtex-ruby-4.4.7
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:961)
at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
at RUBY.

(<script>:1)

I tried a few variations with the same result:

  • gempaths with and without the terminal /
  • leaving the version numbers off the require lines
  • giving the full file names in the require lines
  • putting the gem files explicitly into gempaths (like a Java classapth)

Any thoughts?

This is probably due to me not knowing Ruby. A working example in the manual might help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions