|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jdt.core.compiler.batch.BatchCompiler
public final class BatchCompiler
A public API for invoking the Eclipse Compiler for Java. E.g.
BatchCompiler.compile("C:\\mySources\\X.java -d C:\\myOutput", new PrintWriter(System.out), new PrintWriter(System.err), null);
| 方法摘要 | |
|---|---|
static boolean |
compile(String[] commandLineArguments,
PrintWriter outWriter,
PrintWriter errWriter,
CompilationProgress progress)
Invokes the Eclipse Compiler for Java with the given command line arguments, using the given writers to print messages, and reporting progress to the given compilation progress. |
static boolean |
compile(String commandLine,
PrintWriter outWriter,
PrintWriter errWriter,
CompilationProgress progress)
Invokes the Eclipse Compiler for Java with the given command line arguments, using the given writers to print messages, and reporting progress to the given compilation progress. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static boolean compile(String commandLine,
PrintWriter outWriter,
PrintWriter errWriter,
CompilationProgress progress)
Reasons for a compilation failing to complete successfully include:
The specification of the command line arguments is defined by running the batch compiler's help
BatchCompiler.compile("-help", new PrintWriter(System.out), new PrintWriter(System.err), null);
commandLine - the command line arguments passed to the compileroutWriter - the writer used to print standard messageserrWriter - the writer used to print error messagesprogress - the object to report progress to and to provide cancellation, or null if no progress is needed
public static boolean compile(String[] commandLineArguments,
PrintWriter outWriter,
PrintWriter errWriter,
CompilationProgress progress)
Reasons for a compilation failing to complete successfully include:
The specification of the command line arguments is defined by running the batch compiler's help
BatchCompiler.compile("-help", new PrintWriter(System.out), new PrintWriter(System.err), null);
Note that a true returned value indicates that no errors were reported, no runtime exceptions
occurred and that the compilation was not canceled.
commandLineArguments - the command line arguments passed to the compileroutWriter - the writer used to print standard messageserrWriter - the writer used to print error messagesprogress - the object to report progress to and to provide cancellation, or null if no progress is needed
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||