Storyyeller / Krakatau

Java decompiler, assembler, and disassembler
GNU General Public License v3.0
1.95k stars 219 forks source link

support * glob pattern in v2 #206

Open Kreijstal opened 2 months ago

Kreijstal commented 2 months ago

I have a directory full of .j files, and I had to make a makefile, but couldn't krakatau simply handle it by itself? krak2 asm *.j --out=../build ?

Storyyeller commented 2 months ago

Would the desired behavior be to pass in a directory name and assemble all the .j files found in that directory recursively?

Kreijstal commented 2 months ago

would it keep the directory structure? sure

Storyyeller commented 2 months ago

would it keep the directory structure? sure

The output is based on the name of the class, not the path of the original file. It doesn't make sense otherwise, especially because you can also have multiple classes defined in one .j file.

Anyway, I'm open to trying to implement this, but it will likely be a long time before I have the time to work on it.

Kreijstal commented 2 months ago

That's okay, I didn't know many classes could fit in one j file, I just use a makefile