very good Jon : ) -- *Daniel Dias dos Santos* Java Developer SouJava & JCP Member GitHub: https://github.com/Daniel-Dos Linkedin: www.linkedin.com/in/danieldiasjava Twitter: http://twitter.com/danieldiasjava
Em qua., 3 de jun. de 2020 às 13:05, Jonathan Gallimore < [email protected]> escreveu: > I should clarify, the output I pasted is from these commands: > > java -jar ~/dev/jkta/target/jkta-0.11-SNAPSHOT-shaded.jar usage dir . > > jars.tsv > java -jar ~/dev/jkta/target/jkta-0.11-SNAPSHOT-shaded.jar usage dir > --include-strings=true . > jars.strings.tsv > > and the first 2 commands provide the data down to the class level for the > individual jars. > > Jon > > On Wed, Jun 3, 2020 at 5:03 PM Jonathan Gallimore < > [email protected]> wrote: > > > Just wanted to follow up with some details on how I'm getting the numbers > > below. I'm using this tool: https://github.com/tomitribe/jkta > > > > Once TomEE is built, I'm extracting the zip, changing to the lib folder, > > and running the following commands: > > > > for f in *.jar; do java -jar > > ~/dev/jkta/target/jkta-0.11-SNAPSHOT-shaded.jar usage jar $f > $f.tsv; > done > > for f in *.jar; do java -jar > > ~/dev/jkta/target/jkta-0.11-SNAPSHOT-shaded.jar usage jar > > --include-strings=true $f > $f.strings.tsv; done > > java -jar ~/dev/jkta/target/jkta-0.11-SNAPSHOT-shaded.jar usage dir . > > > jars.tsv > > java -jar ~/dev/jkta/target/jkta-0.11-SNAPSHOT-shaded.jar usage dir > > --include-strings=true . > jars.strings.tsv > > > > The goal to see what the gaps are from the transformation process and > > close those gaps. > > > > Jon > > > > On Wed, Jun 3, 2020 at 4:36 PM Jonathan Gallimore < > > [email protected]> wrote: > > > >> HI folks > >> > >> I've been working on doing this translation on the bytecode of the built > >> artifacts. This is done as part of the Maven build, and the "jakartaee9" > >> artifacts are installed as part of the tomee/apache-tomee module. > >> > >> After running a scan of javax references afterwards, we have the > >> following javax counts: > >> > >> Path javax uses total > >> ./openejb-core-8.0.3-SNAPSHOT.jar 895 > >> ./cxf-core-3.3.6.jar 2 > >> ./catalina.jar 125 > >> ./cxf-rt-bindings-soap-3.3.6.jar 430 > >> ./opensaml-xmlsec-api-3.3.1.jar 2 > >> ./saaj-impl-1.5.1.jar 2110 > >> ./opensaml-soap-api-3.3.1.jar 5 > >> ./jakarta.faces-2.3.14.jar 36 > >> ./openejb-client-8.0.3-SNAPSHOT.jar 230 > >> ./openejb-webservices-8.0.3-SNAPSHOT.jar 139 > >> ./java-support-7.3.0.jar 12 > >> ./cxf-rt-frontend-jaxws-3.3.6.jar 2223 > >> ./opensaml-saml-impl-3.3.1.jar 7 > >> ./cxf-rt-ws-security-3.3.6.jar 285 > >> ./javaee-api-8.0-4.jar 1948 > >> ./opensaml-core-3.3.1.jar 5 > >> ./cxf-rt-ws-addr-3.3.6.jar 10 > >> ./eclipselink-2.7.4.jar 268 > >> ./opensaml-profile-api-3.3.1.jar 1 > >> ./tomee-common-8.0.3-SNAPSHOT.jar 12 > >> ./opensaml-saml-api-3.3.1.jar 7 > >> ./openejb-cxf-8.0.3-SNAPSHOT.jar 70 > >> > >> And including string references: > >> > >> Path javax uses total > >> ./servlet-api.jar 26 > >> ./jakarta.activation-1.2.1.jar 2 > >> ./jsp-api.jar 13 > >> ./bval-jsr-2.0.3.jar 2 > >> ./taglibs-standard-impl-1.2.5.jar 17 > >> ./openejb-core-8.0.3-SNAPSHOT.jar 943 > >> ./cxf-core-3.3.6.jar 52 > >> ./catalina.jar 262 > >> ./cxf-rt-security-saml-3.3.6.jar 7 > >> ./cxf-rt-bindings-soap-3.3.6.jar 435 > >> ./taglibs-standard-jstlel-1.2.5.jar 1 > >> ./opensaml-xmlsec-api-3.3.1.jar 2 > >> ./opensaml-security-api-3.3.1.jar 2 > >> ./jakarta.xml.bind-api-2.3.2.jar 5 > >> ./taglibs-standard-spec-1.2.5.jar 11 > >> ./openejb-jee-8.0.3-SNAPSHOT.jar 1 > >> ./openwebbeans-impl-2.0.12.jar 7 > >> ./saaj-impl-1.5.1.jar 2123 > >> ./opensaml-soap-api-3.3.1.jar 5 > >> ./jasper.jar 36 > >> ./jakarta.faces-2.3.14.jar 201 > >> ./openejb-client-8.0.3-SNAPSHOT.jar 231 > >> ./tomcat-util-scan.jar 1 > >> ./openjpa-3.1.0.jar 80 > >> ./openejb-webservices-8.0.3-SNAPSHOT.jar 151 > >> ./cxf-rt-rs-security-oauth2-3.3.6.jar 1 > >> ./java-support-7.3.0.jar 12 > >> ./cxf-rt-frontend-jaxws-3.3.6.jar 2301 > >> ./cxf-rt-transports-http-3.3.6.jar 10 > >> ./opensaml-saml-impl-3.3.1.jar 7 > >> ./catalina-ssi.jar 4 > >> ./cxf-rt-ws-security-3.3.6.jar 300 > >> ./javaee-api-8.0-4.jar 2003 > >> ./tomee-catalina-8.0.3-SNAPSHOT.jar 2 > >> ./opensaml-core-3.3.1.jar 5 > >> ./cxf-rt-wsdl-3.3.6.jar 4 > >> ./cxf-rt-ws-addr-3.3.6.jar 14 > >> ./eclipselink-2.7.4.jar 447 > >> ./opensaml-profile-api-3.3.1.jar 1 > >> ./tomee-common-8.0.3-SNAPSHOT.jar 12 > >> ./tomcat-coyote.jar 23 > >> ./opensaml-saml-api-3.3.1.jar 7 > >> ./cxf-rt-frontend-jaxrs-3.3.6.jar 3 > >> ./openejb-cxf-8.0.3-SNAPSHOT.jar 70 > >> > >> Ideally, we want to get these down to 0. I have excluded jars that have > 0 > >> references already. > >> > >> I'm currently digging into the references that haven't been converted in > >> the openejb-core jar, and it looks like stuff under javax.enterprise > hasn't > >> shifted over, suggesting an issue with my rules for the transformation > >> that. Going to try and work through some of these with bigger numbers > and > >> see what I can do. > >> > >> Jon > >> > >> >
