home *** CD-ROM | disk | FTP | other *** search
- !!include "Library\jdkUtilities.script"
- !!Script
- // @Modified build 611 cm20020409 - added support for ReplaceEnvironmentVariables
-
- var gOptions = getMapFile("JDKToolsStandardOptions");
- var helpers = getMapFile("ApplicationHelpers");
- var gOutput = getOutput();
-
- function DoCommand()
- {
- var file = chooseFile("Choose class file to dump", "Class files (*.class)", "*.class");
- if (file && file.exists)
- {
- var directory = helpers.lookup("jdk-bin_directory");
-
- var javahCommand = directory.path + "\\javap.exe";
-
- javahCommand += " -l -c " + GetClasspathArgument(file.path) + " " + Java.getClassName(file.path);
-
- javahCommand = ReplaceEnvironmentVariables(javahCommand); //cm20020409
- if (gOptions.lookup("showCommandLine",false)==true)
- {
- gOutput.writeLine("Command line: " + javahCommand);
- }
-
- var javah = newTool();
- javah.run(javahCommand);
-
- gOutput.writeLine("Finished");
- }
- }
-
- !!/Script
-
-