This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release24.09 by this push:
     new 25b27902c8 Fixed: sets org.asciidoctor.jvm plugins to version "4.0.5"
25b27902c8 is described below

commit 25b27902c88c72633d57af66aa28b21ebf95cfc8
Author: Jacques Le Roux <[email protected]>
AuthorDate: Fri May 15 12:16:52 2026 +0200

    Fixed: sets org.asciidoctor.jvm plugins to version "4.0.5"
    
    I tested on Linux but committed from Windows where I forgot to uncomment in
    AsciidoctorTask in order for PDF files to be generated.
    
    Conflicts handled by hand
---
 build.gradle | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/build.gradle b/build.gradle
index eca3fa6f4f..d6414875f2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -503,20 +503,20 @@ tasks.withType(AsciidoctorTask) { task ->
         jvm {
             
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']
-//        }
+    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']
+        }
          //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)
 //        backends = ['html5']
-//    }
+    }
     attributes \
         'doctype': 'book',
         'revnumber': getCurrentGitBranch(),

Reply via email to