Fixed: Create a PoC for a documentation system for OFBiz based on Asciidoc

(OFBIZ-9873)

At r1831619 we committed a workaround to "turn off PDF in windows for now"

I have found a real solution for this bug which prevents to check PDF results in 
Windows because the PDF were not generated there.

I found this solution at 
https://github.com/asciidoctor/asciidoctorj-pdf/issues/8. 
After reading https://github.com/asciidoctor/asciidoctor-pdf/issues/850 
I checked it also works on Linux.

It uses the last version of jruby-complete.

I guess the gradle-versions-plugin should be able to warn us when an upgrade of 
jruby-complete is available like it does for junitReport.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847890 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2018-12-01 12:30:50 +00:00
parent a8ae48be7b
commit 426df38d97
2 changed files with 31 additions and 6 deletions
@@ -0,0 +1,27 @@
package org.apache.ofbiz.base.util.test;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import org.apache.ofbiz.base.util.UtilXml;
public class ServerTableEntryTest {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
FileInputStream fis=new FileInputStream("C:\\payload_ofbiz.txt");
Reader reader=new InputStreamReader(fis);
int temp=-1;
StringBuilder sb=new StringBuilder();
while((temp=reader.read())!=-1) {
sb.append((char)temp);
temp=-1;
}
String str=sb.toString();
//System.out.println(str);
fis.close();
UtilXml.fromXml(str);
}
}