Skip to content

Commit

Permalink
Merge pull request #530 from Bl3nd/bcv-issue-529
Browse files Browse the repository at this point in the history
FernFlower destination fix
  • Loading branch information
Konloch authored Feb 16, 2025
2 parents dc5945a + 1f09e90 commit 856f30b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,12 @@ public void decompileToZip(String sourceJar, String zipName)
{
final File destination = new File(zipName);
File tempInputJarFile = new File(sourceJar);
File tempOutputJar = new File(TEMP_DIRECTORY + FS + "temp" + FS + tempInputJarFile.getName());
File tempOutputJar = new File(TEMP_DIRECTORY + "temp" + FS + tempInputJarFile.getName());
tempOutputJar.getParentFile().mkdirs();

try
{
ConsoleDecompiler.main(generateMainMethod(tempInputJarFile.getAbsolutePath(), TEMP_DIRECTORY + "./temp/"));
ConsoleDecompiler.main(generateMainMethod(tempInputJarFile.getAbsolutePath(), TEMP_DIRECTORY + "temp"));
}
catch (StackOverflowError | Exception ignored)
{
Expand Down

0 comments on commit 856f30b

Please sign in to comment.