Checkout project, open the terminal and change directory to code-collection directory by typing:
cd /full-path/to/code-collection
Run extract-jars.sh to decompile all jar and war files which are stored in a sepcific directory
bash extract-jars.sh
For example, to decompile all java libaries in .m2/repository/com and save source code in directory all-com-library-source-code
After decompiling all library files, we can collect all specific files (.html, .js file, for example) by using tool collect.sh
For example, to collect all .html file from source code directory and store them in all-html-filesdirectory:
Note that:
-
If set
max depth of the destination directoryto-1, the structure of destination directory (all-html-files) will be keep the same with theall-com-library-source-codedirectory. -
If set
max depth of the destinationdirectory to0, all found files will be store inall-html-filesdirectory. If a file name has already existed, it will be suffix by a number (ex:package-1.html)
- JDK 1.7 + (for java and jar command)
- Bash 3.0+
Email: thoqbk@gmail.com
The MIT License (MIT)

