Commit d381a7e0 by Consultor Vertigo

testes com ajustes da dependência

parent 31041d15
......@@ -56,36 +56,63 @@ Export-Package: mprj.doerj.caderno.constants
@dom-2.3.0-jaxb-1.0.6.jar,\
@slf4j-log4j12-1.7.25.jar,\
@slf4j-api-1.7.26.jar,\
@docx4j-MOXy-JAXBContext-6.0.0.jar
@docx4j-MOXy-JAXBContext-6.0.0.jar,\
@org.eclipse.persistence.core-*.jar,\
@org.eclipse.persistence.asm-*.jar,\
@org.eclipse.persistence.moxy-*.jar,\
@xmlgraphics-commons-*.jar,\
@xalan-*.jar,\
@serializer-*.jar
Import-Package: \
!com.google.*,\
!com.google.appengine,\
com.liferay.portal.kernel.*,\
com.liferay.portal.configuration.*,\
javax.portlet.*,\
javax.servlet.http.*,\
javax.servlet.*,\
javax.xml.*,\
!org.apache.curator.*,\
org.xml.sax.*,\
org.w3c.dom.*,\
org.slf4j.*
Import-Package: \
!com.google.*,\
!com.google.appengine,\
!javax.xml.stream.*,\
!org.apache.curator.*,\
!com.caucho.*,\
!com.fasterxml.*,\
!com.github.*,\
!com.ibm.*,\
!com.jcraft.*,\
!com.opencsv.*,\
!com.squareup.*,\
!com.sun.mail.*,\
!com.sun.net.*,\
!com.sun.xml.*,\
!com.sun.codemodel.*,\
!com.sun.org.apache.*,\
!com.sun.tools.xjc.*,\
!com.zaxxer.*,\
!javax.activation.*,\
!javax.faces.*,\
!joptsimple.*,\
!libcore.io.*,\
!net.engio.*,\
!org.antlr.*,\
!org.apache.avalon.*,\
!org.apache.hadoop.*,\
!org.apache.hc.*,\
!org.apache.htrace.*,\
!org.apache.http.*,\
!org.apache.jute.*,\
!org.apache.log.*,\
!org.apache.zookeeper.*,\
!org.apache.xml.resolver.*,\
!org.apache.xml.dtm.*,\
!org.aspectj.*,\
!org.brotli.*,\
!org.checkerframework.*,\
!org.codehaus.jackson.*,\
!org.docx4j.org.xhtmlrenderer.*,\
!javax.enterprise.*,\
!javax.persistence.*,\
!javax.resource.*,\
!org.eclipse.persistence.jpa.*,\
!org.eclipse.persistence.internal.libraries.antlr.runtime.*,\
!org.joda.*,\
!org.plutext.jaxb.svg11.*,\
!org.tukaani.*,\
!org.w3c.*,\
*
......@@ -79,8 +79,14 @@ dependencies {
compileOnly group: 'sax', name: 'sax', version: '2.0.1'
compileOnly group: 'org.w3c', name: 'dom', version: '2.3.0-jaxb-1.0.6'
compileOnly group: 'org.slf4j', name: 'slf4j-api', version: '1.7.26'
compileOnly group: 'org.eclipse.persistence', name: 'org.eclipse.persistence.moxy', version: '2.7.7'
compileOnly group: 'org.eclipse.persistence', name: 'org.eclipse.persistence.core', version: '2.7.7'
compileOnly group: 'org.eclipse.persistence', name: 'org.eclipse.persistence.asm', version: '2.7.7'
compileOnly group: 'org.apache.xmlgraphics', name: 'xmlgraphics-commons', version: '2.4'
compileOnly group: 'xalan', name: 'xalan', version: '2.7.2'
compileOnly group: 'xalan', name: 'serializer', version: '2.7.2'
compileOnly group: 'org.docx4j.org.apache', name: 'xalan-serializer', version: '8.0.0'
compileOnly group: 'org.docx4j.org.apache', name: 'xalan-interpretive', version: '8.0.0'
cssBuilder group: "com.liferay", name: "com.liferay.css.builder", version: "3.0.2"
}
......@@ -92,6 +98,6 @@ repositories {
}
liferay{
liferayHome="C:/Projetos/mprj/opt/deploy"
liferayHome="/home/henrique/projetos/MPRJ/DXP7.2/implementacao/opt/deploy"
deployDir=file("${liferayHome}/")
}
\ No newline at end of file
......@@ -7,42 +7,29 @@ import com.liferay.portal.kernel.util.WebKeys;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Locale;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.CacheControl;
import javax.portlet.ClientDataRequest;
import javax.portlet.PortletContext;
import javax.portlet.PortletPreferences;
import javax.portlet.PortletRequest;
import javax.portlet.PortletResponse;
import javax.portlet.PortletURL;
import javax.portlet.ResourceRequest;
import javax.portlet.ResourceResponse;
import javax.portlet.ResourceURL;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import org.docx4j.XmlUtils;
import org.docx4j.openpackaging.Base;
import org.docx4j.openpackaging.exceptions.Docx4JException;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.WordprocessingML.HeaderPart;
import org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart;
import org.json.JSONArray;
import org.json.JSONObject;
import org.w3c.dom.DOMException;
import org.w3c.dom.Element;
public class GeraCaderno {
......@@ -67,6 +54,10 @@ public class GeraCaderno {
CadernoUtil util = new CadernoUtil();
MainDocumentPart currentDocumentPart = null;
System.out.println("Iniciando teste do JAXBContext...");
JAXBContext.newInstance("org.docx4j.openpackaging.contenttype");
System.out.println("Finalizado teste do JAXBContext.");
//WordprocessingMLPackage templatePackage = WordprocessingMLPackage.load(new File(templateCaderno.toString()));
//WordprocessingMLPackage templatePackage = WordprocessingMLPackage.load(new File(templateCaderno));
WordprocessingMLPackage templatePackage = WordprocessingMLPackage.load(templateCaderno);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment