Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
doerj-caderno-dxp-7.2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
diogo.souza
doerj-caderno-dxp-7.2
Commits
d381a7e0
Commit
d381a7e0
authored
Oct 16, 2020
by
Consultor Vertigo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testes com ajustes da dependência
parent
31041d15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
48 deletions
+73
-48
GeraCaderno.class
bin/main/mprj/doerj/caderno/util/GeraCaderno.class
+0
-0
bnd.bnd
bnd.bnd
+58
-31
build.gradle
build.gradle
+10
-3
GeraCaderno.java
src/main/java/mprj/doerj/caderno/util/GeraCaderno.java
+5
-14
No files found.
bin/main/mprj/doerj/caderno/util/GeraCaderno.class
View file @
d381a7e0
No preview for this file type
bnd.bnd
View file @
d381a7e0
...
@@ -56,36 +56,63 @@ Export-Package: mprj.doerj.caderno.constants
...
@@ -56,36 +56,63 @@ Export-Package: mprj.doerj.caderno.constants
@dom-2.3.0-jaxb-1.0.6.jar,\
@dom-2.3.0-jaxb-1.0.6.jar,\
@slf4j-log4j12-1.7.25.jar,\
@slf4j-log4j12-1.7.25.jar,\
@slf4j-api-1.7.26.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.*,\
*
build.gradle
View file @
d381a7e0
...
@@ -79,8 +79,14 @@ dependencies {
...
@@ -79,8 +79,14 @@ dependencies {
compileOnly
group:
'sax'
,
name:
'sax'
,
version:
'2.0.1'
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.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.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"
cssBuilder
group:
"com.liferay"
,
name:
"com.liferay.css.builder"
,
version:
"3.0.2"
}
}
...
@@ -92,6 +98,6 @@ repositories {
...
@@ -92,6 +98,6 @@ repositories {
}
}
liferay
{
liferay
{
liferayHome
=
"
C:/Projetos/mprj
/opt/deploy"
liferayHome
=
"
/home/henrique/projetos/MPRJ/DXP7.2/implementacao
/opt/deploy"
deployDir
=
file
(
"${liferayHome}/"
)
deployDir
=
file
(
"${liferayHome}/"
)
}
}
\ No newline at end of file
src/main/java/mprj/doerj/caderno/util/GeraCaderno.java
View file @
d381a7e0
...
@@ -7,42 +7,29 @@ import com.liferay.portal.kernel.util.WebKeys;
...
@@ -7,42 +7,29 @@ import com.liferay.portal.kernel.util.WebKeys;
import
java.io.File
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
import
java.io.PrintWriter
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Locale
;
import
javax.portlet.ActionRequest
;
import
javax.portlet.ActionRequest
;
import
javax.portlet.ActionResponse
;
import
javax.portlet.ActionResponse
;
import
javax.portlet.CacheControl
;
import
javax.portlet.ClientDataRequest
;
import
javax.portlet.PortletContext
;
import
javax.portlet.PortletContext
;
import
javax.portlet.PortletPreferences
;
import
javax.portlet.PortletPreferences
;
import
javax.portlet.PortletRequest
;
import
javax.portlet.PortletRequest
;
import
javax.portlet.PortletResponse
;
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.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.xml.bind.JAXBContext
;
import
javax.xml.bind.JAXBException
;
import
javax.xml.bind.JAXBException
;
import
org.docx4j.XmlUtils
;
import
org.docx4j.openpackaging.Base
;
import
org.docx4j.openpackaging.exceptions.Docx4JException
;
import
org.docx4j.openpackaging.exceptions.Docx4JException
;
import
org.docx4j.openpackaging.packages.WordprocessingMLPackage
;
import
org.docx4j.openpackaging.packages.WordprocessingMLPackage
;
import
org.docx4j.openpackaging.parts.WordprocessingML.HeaderPart
;
import
org.docx4j.openpackaging.parts.WordprocessingML.HeaderPart
;
import
org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart
;
import
org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart
;
import
org.json.JSONArray
;
import
org.json.JSONArray
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
org.w3c.dom.DOMException
;
import
org.w3c.dom.Element
;
public
class
GeraCaderno
{
public
class
GeraCaderno
{
...
@@ -67,6 +54,10 @@ public class GeraCaderno {
...
@@ -67,6 +54,10 @@ public class GeraCaderno {
CadernoUtil
util
=
new
CadernoUtil
();
CadernoUtil
util
=
new
CadernoUtil
();
MainDocumentPart
currentDocumentPart
=
null
;
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.toString()));
//WordprocessingMLPackage templatePackage = WordprocessingMLPackage.load(new File(templateCaderno));
//WordprocessingMLPackage templatePackage = WordprocessingMLPackage.load(new File(templateCaderno));
WordprocessingMLPackage
templatePackage
=
WordprocessingMLPackage
.
load
(
templateCaderno
);
WordprocessingMLPackage
templatePackage
=
WordprocessingMLPackage
.
load
(
templateCaderno
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment