Author: taher
Date: Tue May 15 10:33:37 2018
New Revision: 1831619
URL: http://svn.apache.org/viewvc?rev=1831619&view=rev
Log:
Fixed: bugs with asciidoctor PDF generation in Windows
(OFBIZ-9873)
We are facing multiple issues in PDF generation in windows. Most of these bugs
are related to incompatible transitive dependencies and some JRuby libraries.
>From researching it seems that most of these bugs should be resolved in
>upcoming
releases of asciidoctor and hence this workaround might be resolved in the
future by upgrading asciidoctor.
Thanks: Jacques Le Roux for reporting and testing
Modified:
ofbiz/ofbiz-framework/trunk/build.gradle
Modified: ofbiz/ofbiz-framework/trunk/build.gradle
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?rev=1831619&r1=1831618&r2=1831619&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/build.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/build.gradle Tue May 15 10:33:37 2018
@@ -31,8 +31,6 @@ buildscript {
classpath 'at.bxm.gradleplugins:gradle-svntools-plugin:latest.release'
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16'
- // asciidoctorj-pdf bug workaround - override jruby. See OFBIZ-9873
- classpath 'org.jruby:jruby-complete:9.1.13.0'
}
}
apply plugin: 'java'
@@ -487,7 +485,12 @@ task createTenant(group: ofbizServer, de
// ========== Documentation tasks ==========
tasks.withType(AsciidoctorTask) { task ->
- backends 'html5', 'pdf'
+ // bug workaround - see OFBIZ-9873
+ if (os.contains('windows')) {
+ backends 'html5'
+ } else {
+ backends 'html5', 'pdf'
+ }
attributes \
'doctype': 'book',
'experimental': '',