feat():测试

yuan
yuan 2024-09-03 12:20:17 +08:00
parent d477fc9662
commit 5720b4c59a
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class SourceCodeCompiler {
// //执行编译任务
// task.call();
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
int results = compiler.run(null, null, null, "/home");
int results = compiler.run(null, null, null, "/home/"+file[0].getAbsolutePath());
System.out.println((results == 0)?"编译成功":"编译失败");
}catch (Exception e){
log.error(e);