Method Usage Finder from JarFile - RAKESHSHAH1977/rshah Wiki

Original URL: https://github.com/RAKESHSHAH1977/rshah/wiki/Method-Usage-Finder-from-JarFile

Introduction

This tools is designed with an idea of finding usage of the jar in the source code. F For e.g. soap.jar is now deprecated jar and we want to update with the latest version of the jar. Now the first doubt comes, how to ensure things will work fine after updating the jar. So we need to identify the usage of each class and its method in the source code. This tool precisely does the job.

How to use

This tool can do job command line as well as the GUI(Swing). Simply download the latest jar and executes following command java -jar jarusage.jar

To use this tool command line use following command

java -jar jarusageclt.jar -src.dir <java_source_folder> -jar.file <jarfile location> Output follows.

Started Searching Java Source Folder:-\dev-teamsite\main\javautils\src\javautil\sharedutils Jar File:-\workspace\libraries\jars\commons-lang3-3.8.1.jar Collecting Files from Source - Keep Patience ------- Total Files are 175 Total Time taken 214 miliseconds Usage of class: org.apache.commons.lang3.StringUtils follows. 10: "org.apache.commons.lang3.StringUtils" is found in c:\dev-teamsite\main\javautils\src\javautil\sharedutils\com\interwoven\sharedutils100\http\BaseRequestBuilder.java Usage of class:org.apache.commons.lang3.StringUtils ends. Method usage of class:org.apache.commons.lang3.StringUtils follows. +++++ 53: "StringUtils.isNotBlank(" is found in c:\dev-teamsite\main\javautils\src\javautil\sharedutils\com\interwoven\sharedutils100\http\BaseRequestBuilder.java Method usage of org.apache.commons.lang3.StringUtils ends. ++++++++++++++++++++++++++++++++++++++++++++++++++ Usage of class: org.apache.commons.lang3.ArrayUtils follows. 61: "org.apache.commons.lang3.ArrayUtils" is found in c:\dev-teamsite\main\javautils\src\javautil\sharedutils\com\interwoven\sharedutils100\mail\Mailer.java Usage of class:org.apache.commons.lang3.ArrayUtils ends. Method usage of class:org.apache.commons.lang3.ArrayUtils follows. +++++ 153: "ArrayUtils.isEmpty(" is found in c:\dev-teamsite\main\javautils\src\javautil\sharedutils\com\interwoven\sharedutils100\mail\Mailer.java Method usage of org.apache.commons.lang3.ArrayUtils ends. ++++++++++++++++++++++++++++++++++++++++++++++++++ . . . ++++++++++++++++++++++++++++++++++++++++++++++++++ Usage of class: org.apache.commons.lang3.StringUtils follows. 35: "org.apache.commons.lang3.StringUtils" is found in c:\dev-teamsite\main\javautils\src\javautil\sharedutils\com\interwoven\sharedutils100\xml\Log4jConfigXml.java Usage of class:org.apache.commons.lang3.StringUtils ends. Method usage of class:org.apache.commons.lang3.StringUtils follows. +++++ 186: "StringUtils.isBlank(" is found in c:\dev-teamsite\main\javautils\src\javautil\sharedutils\com\interwoven\sharedutils100\xml\Log4jConfigXml.java Method usage of org.apache.commons.lang3.StringUtils ends. ++++++++++++++++++++++++++++++++++++++++++++++++++ Search Completed for 175 in 1676 miliseconds Total time Consumed 1890 miliseconds