public class CompilerJavaUtil extends Object
| 构造器和说明 |
|---|
CompilerJavaUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static File |
clean(File file)
清理文件夹
|
static boolean |
complier(File src,
File out,
DiagnosticListener<? super JavaFileObject> diagnostics)
编译
|
static boolean |
complier(URLClassLoader loader,
File src,
File out,
DiagnosticListener<? super JavaFileObject> diagnostics)
编译
|
static void |
delete(File file)
删除文件
|
public static boolean complier(File src, File out, DiagnosticListener<? super JavaFileObject> diagnostics) throws IOException
src - 源文件out - 输文件diagnostics - 诊断监听IOException - IO异常是抛出public static boolean complier(URLClassLoader loader, File src, File out, DiagnosticListener<? super JavaFileObject> diagnostics) throws IOException
loader - 类加载器src - 源文件out - 输文件diagnostics - 诊断程序监听IOException - IO异常是抛出public static File clean(File file) throws IOException
file - 要清理的文件夹IOException - IO异常是抛出public static void delete(File file) throws IOException
file - 要清理的文件IOException - IO异常是抛出Copyright © 2022. All rights reserved.