src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Main.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc

src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Main.java

Print this page




 608         if (options.debug) {
 609             log.print(message);
 610             log.flush();
 611         }
 612     }
 613 
 614     public void printlnDebug(String message) {
 615         if (options.debug) {
 616             log.println(message);
 617             log.flush();
 618         }
 619     }
 620 
 621     public void printError(String message) {
 622         log.println("Error: " + message);
 623         log.flush();
 624     }
 625 
 626     private void reportError(Throwable e) {
 627         log.println("Error: " + e.getMessage());

 628         e.printStackTrace(log);

 629         log.flush();
 630     }
 631 
 632     private void reportError(String key, Object... args) {
 633         printError(MessageFormat.format(key, args));
 634     }
 635 
 636     private void warning(String key, Object... args) {
 637         log.println("Warning: " + MessageFormat.format(key, args));
 638         log.flush();
 639     }
 640 
 641     private void showUsage() {
 642         log.println("Usage: " + PROGNAME + " <options> list");
 643         log.println("use --help for a list of possible options");
 644     }
 645 
 646     private void showHelp() {
 647         log.println("Usage: " + PROGNAME + " <options> list");
 648         log.println();




 608         if (options.debug) {
 609             log.print(message);
 610             log.flush();
 611         }
 612     }
 613 
 614     public void printlnDebug(String message) {
 615         if (options.debug) {
 616             log.println(message);
 617             log.flush();
 618         }
 619     }
 620 
 621     public void printError(String message) {
 622         log.println("Error: " + message);
 623         log.flush();
 624     }
 625 
 626     private void reportError(Throwable e) {
 627         log.println("Error: " + e.getMessage());
 628         if (options.info) {
 629             e.printStackTrace(log);
 630         }
 631         log.flush();
 632     }
 633 
 634     private void reportError(String key, Object... args) {
 635         printError(MessageFormat.format(key, args));
 636     }
 637 
 638     private void warning(String key, Object... args) {
 639         log.println("Warning: " + MessageFormat.format(key, args));
 640         log.flush();
 641     }
 642 
 643     private void showUsage() {
 644         log.println("Usage: " + PROGNAME + " <options> list");
 645         log.println("use --help for a list of possible options");
 646     }
 647 
 648     private void showHelp() {
 649         log.println("Usage: " + PROGNAME + " <options> list");
 650         log.println();


src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Main.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File