langtools/src/share/classes/com/sun/tools/javac/Main.java
changeset 10638 c8e9604cf151
parent 8032 e1aa25ccdabb
child 16303 b5dca0b42963
equal deleted inserted replaced
10637:2ea5fbb913ac 10638:c8e9604cf151
    71      * javac, see the man page for details.
    71      * javac, see the man page for details.
    72      */
    72      */
    73     public static int compile(String[] args) {
    73     public static int compile(String[] args) {
    74         com.sun.tools.javac.main.Main compiler =
    74         com.sun.tools.javac.main.Main compiler =
    75             new com.sun.tools.javac.main.Main("javac");
    75             new com.sun.tools.javac.main.Main("javac");
    76         return compiler.compile(args);
    76         return compiler.compile(args).exitCode;
    77     }
    77     }
    78 
    78 
    79 
    79 
    80 
    80 
    81     /** Programmatic interface to the Java Programming Language
    81     /** Programmatic interface to the Java Programming Language
    89      * javac, see the man page for details.
    89      * javac, see the man page for details.
    90      */
    90      */
    91     public static int compile(String[] args, PrintWriter out) {
    91     public static int compile(String[] args, PrintWriter out) {
    92         com.sun.tools.javac.main.Main compiler =
    92         com.sun.tools.javac.main.Main compiler =
    93             new com.sun.tools.javac.main.Main("javac", out);
    93             new com.sun.tools.javac.main.Main("javac", out);
    94         return compiler.compile(args);
    94         return compiler.compile(args).exitCode;
    95     }
    95     }
    96 }
    96 }