Esempio n. 1
0
 public static string extractJarIntoTempFolder(this API_Jad jad, string jarFile)
 {
     if (jarFile.extension(".jar"))
     {
         var targetFolder  = jad.JadDecompilations;
         var extractFolder = targetFolder.pathCombine(jarFile.fileName().safeFileName().replace(".", "_")).createDir();
         if (extractFolder.folderExists().isFalse() || extractFolder.files(true).empty())
         {
             "Extracting Classes from Jar: {0}".info(jarFile);
             jarFile.unzip(extractFolder);
         }
         return(extractFolder);
     }
     return(null);
 }
Esempio n. 2
0
 public static string decompile(this API_Jad jad, string classFile)
 {
     return(jad.execute("-p \"{0}\"".format(classFile)));
 }
Esempio n. 3
0
 public static string help(this API_Jad jad)
 {
     return(jad.execute(""));
 }