equal
deleted
inserted
replaced
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 } |