{"id":13797346,"url":"https://github.com/thoqbk/code-collection","last_synced_at":"2025-05-13T02:32:18.542Z","repository":{"id":84564199,"uuid":"48228189","full_name":"thoqbk/code-collection","owner":"thoqbk","description":"A shell script tool for decompiling multiple jar files and re-arranging source code","archived":false,"fork":false,"pushed_at":"2023-10-09T15:03:42.000Z","size":3909,"stargazers_count":10,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T11:41:06.443Z","etag":null,"topics":["decompile","jar","java"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoqbk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-18T10:05:01.000Z","updated_at":"2022-08-17T10:06:29.000Z","dependencies_parsed_at":"2024-08-03T23:08:32.444Z","dependency_job_id":"a23597cb-7359-4cad-bdcc-842720eaf875","html_url":"https://github.com/thoqbk/code-collection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoqbk%2Fcode-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoqbk%2Fcode-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoqbk%2Fcode-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoqbk%2Fcode-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoqbk","download_url":"https://codeload.github.com/thoqbk/code-collection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253859805,"owners_count":21975176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decompile","jar","java"],"created_at":"2024-08-03T23:01:28.228Z","updated_at":"2025-05-13T02:32:18.083Z","avatar_url":"https://github.com/thoqbk.png","language":"Shell","funding_links":[],"categories":["\u003ca id=\"8c5a692b5d26527ef346687e047c5c21\"\u003e\u003c/a\u003e收集"],"sub_categories":[],"readme":"# code-collection\n\n## How to use\n\nCheckout project, open the terminal and change directory to code-collection directory by typing:\n\n```\ncd /full-path/to/code-collection\n```\n\nRun `extract-jars.sh` to decompile all jar and war files which are stored in a sepcific directory\n```\nbash extract-jars.sh\n```\nFor example, to decompile all java libaries in .m2/repository/com and save source code in directory all-com-library-source-code\n\n![extract jars](https://github.com/thoqbk/code-collection/blob/master/resource/extract-jars.png)\n\nAfter decompiling all library files, we can collect all specific files (`.html`, `.js` file, for example) by using tool `collect.sh`\n\nFor example, to collect all `.html` file from source code directory and store them in `all-html-files`directory:\n\n![collect](https://github.com/thoqbk/code-collection/blob/master/resource/collect.png)\n\nNote that: \n\n1. If set `max depth of the destination directory` to `-1`, the structure of destination directory (`all-html-files`) will be keep the same with the `all-com-library-source-code` directory.\n\n2. If set `max depth of the destination` directory to `0`, all found files will be store in `all-html-files` directory. If a file name has already existed, it will be suffix by a number (ex: `package-1.html`)\n\n\n## System requirements\n1. JDK 1.7 + (for java and jar command)\n2. Bash 3.0+\n\n## Author and contact\n[Tho](https://github.com/thoqbk/)\n\nEmail: thoqbk@gmail.com\n\n## License\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoqbk%2Fcode-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoqbk%2Fcode-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoqbk%2Fcode-collection/lists"}