Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Lekensteyn opened this issue May 4, 2015 · 4 comments
Closed

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

Lekensteyn opened this issue May 4, 2015 · 4 comments

Comments

@Lekensteyn
Copy link

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:

  • -z some-src.zip: writes the sources for given jar(s?) to some-src.zip
  • -d dir: writes the sources for given jar(s?) into a directory.

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

@fdeandao
Copy link

fdeandao commented May 8, 2015

+1
The others projects dont works for you?

@Lekensteyn
Copy link
Author

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
Copy link

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
Copy link
Collaborator

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants