feat():测试
parent
d477fc9662
commit
5720b4c59a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue