|
|
@ -118,8 +118,8 @@ public class Decompiler { |
|
|
|
String classPath = System.getProperty("java.class.path"); |
|
|
|
String classPath = System.getProperty("java.class.path"); |
|
|
|
File destDir = null; |
|
|
|
File destDir = null; |
|
|
|
ZipOutputStream destZip = null; |
|
|
|
ZipOutputStream destZip = null; |
|
|
|
int importPackageLimit = 3; |
|
|
|
int importPackageLimit = ImportHandler.DEFAULT_PACKAGE_LIMIT; |
|
|
|
int importClassLimit = 3; |
|
|
|
int importClassLimit = ImportHandler.DEFAULT_CLASS_LIMIT;; |
|
|
|
GlobalOptions.err.println(GlobalOptions.copyright); |
|
|
|
GlobalOptions.err.println(GlobalOptions.copyright); |
|
|
|
for (i=0; i<params.length && params[i].startsWith("-"); i++) { |
|
|
|
for (i=0; i<params.length && params[i].startsWith("-"); i++) { |
|
|
|
if (params[i].equals("-v")) |
|
|
|
if (params[i].equals("-v")) |
|
|
@ -200,8 +200,8 @@ public class Decompiler { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ClassInfo.setClassPath(classPath); |
|
|
|
ClassInfo.setClassPath(classPath); |
|
|
|
ImportHandler imports = new ImportHandler(importClassLimit, |
|
|
|
ImportHandler imports = new ImportHandler(importPackageLimit, |
|
|
|
importPackageLimit); |
|
|
|
importClassLimit); |
|
|
|
TabbedPrintWriter writer = null; |
|
|
|
TabbedPrintWriter writer = null; |
|
|
|
if (destDir == null) |
|
|
|
if (destDir == null) |
|
|
|
writer = new TabbedPrintWriter(System.out, imports); |
|
|
|
writer = new TabbedPrintWriter(System.out, imports); |
|
|
|