You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2025/09/25 14:42:42 UTC
(ofbiz-framework) 01/03: Improved: fix a PDF generation issue with Buildbot too now
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit 87c8b3685cc1d5fe73fc57b836998fe3a1176832
Author: Jacques Le Roux <ja...@les7arts.com>
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 ab84d79111..f944d0139a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -493,12 +493,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',