This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new a690958f3d Improved: fix a PDF generation issue with Buildbot too now
a690958f3d is described below
commit a690958f3d06ecf3436a5bc8288a78c76f89bb60
Author: Jacques Le Roux <[email protected]>
AuthorDate: Thu Sep 25 10:15:09 2025 +0200
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...
---
build.gradle | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/build.gradle b/build.gradle
index 7c3dbae539..818a1fc78e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -558,12 +558,18 @@ tasks.withType(AsciidoctorTask) { task ->
jvmArgs("--add-opens","java.base/sun.nio.ch=ALL-UNNAMED","--add-opens","java.base/java.io=ALL-UNNAMED")
}
outputOptions {
- // I hate we have to do this - but JRuby (asciidoctorj-pdf) and
Windows don't mix well
- if (System.properties['os.name'].toLowerCase().contains('windows')) {
- backends = ['html5']
- } else {
- backends = ['html5', 'pdf']
- }
+// // I hate we have to do this - but JRuby (asciidoctorj-pdf) and
Windows don't mix well
+// if (System.properties['os.name'].toLowerCase().contains('windows')) {
+// backends = ['html5']
+// } else {
+// backends = ['html5', 'pdf']
+// }
+ //It seems we have no choice when using Builbot we 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)
+// backends = ['html5']
}
attributes \
'doctype': 'book',