how to use JBoss Tattletale tool?

匿名 (未验证) 提交于 2019-12-03 03:10:03

问题:

I need to reduce the size of JAR file in my project which is 9.17MB,I have already reduced it to 6.31MB by removing all the logger statements and dead code.I also have checked each JAR file individually by removing it and compiling it.With which I have removed upto 6 files.

Now I want to reduce the size of JAR file upto 2 to 3 MB, and I have decided to use the tool JBoss Tattletale,

Has anybody used it before? and If yes then please provide me the steps to install and run it. BTW I have already downloaded that tool from www.jboss.org website.

Thanks in advance!

回答1:

First you need to download the tool from the website. Or you can go directly to their sourceforge project location and download the latest version.

After you have downloaded it and unpacked, run from the terminal:

$ java -Xmx512m -jar tattletale.jar ~/Java/workspaces/mycoolprojects/projectX output-projectx 

assuming that the location to you project is ~/Java/workspaces/mycoolprojects/projectX, and that you want the generated report to be stored in folder called output-projectx

Best, Nikola



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!