Skip to content

Commit a690958

Browse files
committed
Improved: fix a PDF generation issue with Buildbot too now
Before only Windows was concerned, it seems we have no choice when using Builbot we now get this issue: Caused by: org.jruby.exceptions.LoadError: (LoadError) no such file to load -- asciidoctor-pdf at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017) at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85) at RUBY.<main>(<script>:1) So we only generate HTML5. I guess I'll need to do the same for all AsciidoctorTaskS...
1 parent 87bd371 commit a690958

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

build.gradle

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,18 @@ tasks.withType(AsciidoctorTask) { task ->
558558
jvmArgs("--add-opens","java.base/sun.nio.ch=ALL-UNNAMED","--add-opens","java.base/java.io=ALL-UNNAMED")
559559
}
560560
outputOptions {
561-
// I hate we have to do this - but JRuby (asciidoctorj-pdf) and Windows don't mix well
562-
if (System.properties['os.name'].toLowerCase().contains('windows')) {
563-
backends = ['html5']
564-
} else {
565-
backends = ['html5', 'pdf']
566-
}
561+
// // I hate we have to do this - but JRuby (asciidoctorj-pdf) and Windows don't mix well
562+
// if (System.properties['os.name'].toLowerCase().contains('windows')) {
563+
// backends = ['html5']
564+
// } else {
565+
// backends = ['html5', 'pdf']
566+
// }
567+
//It seems we have no choice when using Builbot we get this issue:
568+
// Caused by: org.jruby.exceptions.LoadError: (LoadError) no such file to load -- asciidoctor-pdf
569+
// at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)
570+
// at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)
571+
// at RUBY.<main>(<script>:1)
572+
// backends = ['html5']
567573
}
568574
attributes \
569575
'doctype': 'book',

0 commit comments

Comments
 (0)