java-decompiler / jd-gui

A standalone Java Decompiler GUI
GNU General Public License v3.0
14.07k stars 2.39k forks source link

[feature-request] CLI for saving all sources #16

Closed Lekensteyn closed 9 years ago

Lekensteyn commented 9 years ago

First of all, thank you for your work on jd-gui!

My primary use case of jd-gui is decompilation of Android jar files to readable source code for auditing purposes. The Save All Sources option is already a gem, but it is quite repetive work.

Would it be possible to add a CLI entry point/option for this option?

Proposed options:

Some other projects that wraps around a jd interface (linked from Stackoverflow):

fdeandao commented 9 years ago

+1 The others projects dont works for you?

Lekensteyn commented 9 years ago

I haven't tried those. In the past I also looked into using the other interfaces (eclipse?) to convert sources, but now that the sources are open it should be easier to implement it.

Btw, the current code is tightly coupled with the GUI interfaces, so this requires a bit of effort (I suspended it after a day).

TaylorSMarks commented 9 years ago

My problem with those other projects is that it looks like they require you to build them yourself. I want to just get the jar and start running it from the command line.

emmanue1 commented 9 years ago

Create a simple CLI looks simple, nevertheless, before create a new project, have you try this one?

https://github.com/fesh0r/fernflower

java -jar fernflower.jar [-<option>=<value>]* [<source>]+ <destination>